Tool that links an ontologys classes to a fitting definition from DBPedia. This tool was made for the AAU KNOX super project, specifically the medical preprocessing layer.
- SPARQLWrapper
- To install use:
pip install SPARQLWrapper
- To install use:
Running the tool:
SmartLinker.py INPUT_PATH
Here INPUT_PATH
is the path to the ontology file you want to link.
When the tool has run, a new file titled Linked_'INPUT_PATH'
will be created next to the original file. This is the linked ontology.
IMPORTANT:
Make sure the input ontology has a newline between the class definition and the rdf:type.
Ex:
:Hospital
rdf:type owl:Class ;
If this is NOT the case, you can utilize the -i
flag (Example in Optional Flags section).
-h
- Describes how to use the tool, and what flags exist.
-i
- Use this flag if your owl:class is on the same line as the class definition.
Ex::Hospital rdf:type owl:Class ;
- Use this flag if your owl:class is on the same line as the class definition.