termMed / rf2-to-owl

This project uses the OWLApi to create an OWL ontology, in RDF/XML format, based on the content of standard SNOMED CT RF2 files.
http://www.termmed.com
Apache License 2.0
9 stars 4 forks source link
concrete-domains-conversion ontology owl owl-api owl-ontology snomed-ct somed

SNOMED CT RF2 and OWL Utilities

This project uses the OWLApi perform different transformations of SNOMED CT representations.

Build instructions

Clone and build with:

mvn clean compile assembly:single

This will generate the executable JAR file: owl-test-x.x.x-SNAPSHOT-jar-with-dependencies.jar

Binaries are also available in the releases section of the github repository.

Executing the conversion

Run the executable from the command line, for example:

java -jar rf2-to-owl-x.x.x-SNAPSHOT-jar-with-dependencies.jar -help

Arguments help:

usage: rf2-to-owl
 -cd                Convert concepts to concrete domains
 -cf <arg>          Concepts file
 -df <arg>          Descriptions file
 -help              Prints help
 -iri <arg>         IRI for Owl Generation
 -lf <arg>          language refset file
 -mode <arg>        conversion mode, expected values: rf2-to-owl,
                    owl-to-refset, refset-to-owl
 -of <arg>          Owl file
 -orf <arg>         Owl Refset file
 -output <arg>      Output file
 -rf <arg>          Relationships file
 -rf2Folder <arg>   RF2 Folder
 -syntax <arg>      OWL Syntax, expected values: owlxml, functional,
                    manchester
 -tf <arg>          Text definition file

RF2 Snapshot to OWL file conversion

Arguments required for this mode:

java -jar rf2-to-owl-x.x.x-SNAPSHOT-jar-with-dependencies.jar -mode rf2-to-owl -rf2Folder /x/y/z/snapshot -output ontology.owl

Optional arguments:

If the RF2 files are not part of a standard release package, paths for the individual files can be passed using the arguments described in the arguments help.

Output

The process generates the following OWL artifacts in the ontology:

Concrete domains conversion

Since the July 2017 release of the international edition, some relationships that specify numerical values are represented using concepts for the example:

OWL Ontology file to RF2 OWL Refset file conversion

Arguments required for this mode:

 java -jar rf2-to-owl-x.x.x-SNAPSHOT-jar-with-dependencies.jar -mode owl-to-refset -of ontology.owl -output owlRefset.txt

RF2 OWL Refset file ot OWL Ontology file conversion

Arguments required for this mode:

  java -jar rf2-to-owl-x.x.x-SNAPSHOT-jar-with-dependencies.jar -mode refset-to-owl -orf owlRefset.txt -output ontology.owl