Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

A Python script that computes contexts of difference between two ontologies

Notifications You must be signed in to change notification settings

ychalier/difference-context

Repository files navigation

[DK914] Context of difference

The aim of this project is to propose a formal definition of the contextual difference relation between 2 URIs. A context of difference can be a subgraph of the instances description of the URIs. Then develop a tool that can extract these subgraphs for each pair of URIS.

links

todo list

  1. OWL parser using an OWL API for Python
  2. Difference subgraph computation, for a given pair of entities
    • use a maximum depth of exploration
    • only work on matching relations
    • (optimization) explore nodes only once as far as possible
  3. Main process structure (using multiprocessing)
  4. User interface to nicely plot the generated context subgraphs
  5. Evaluation
    • computation time
    • what relations are

virtual environment

The following setup is done for Python v3.5.2.

initial setup

If not done already, install the virtualenv package from Python. You should be able to do it with:

pip3 install virtualenv

However, some distributions may require the installation of a dedicated package (sudo apt-get install python3-virtualenv or equivalent). See what's best for yourself.

From the root directory of this repository, initiate the virtual environment with the following command:

virtualenv venv

That will create a local folder venv/ that will contain the Python installation. If anything goes wrong, delete this folder and retry the procedure.

usage

Active it with

source venv/bin/activate

Install the packages from requirements.txt with

pip install -r requirements.txt

OWL API

About

A Python script that computes contexts of difference between two ontologies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published