Skip to content

Knox-AAU/OBSOLETE_KnowledgeLayer_MIMIC_SmartLinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

KNOX-SmartLinker

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.

Dependencies

  • SPARQLWrapper
    • To install use: pip install SPARQLWrapper

Usage

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).

Optional Flags

  • -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 ;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages