A tool to translate ontologies from an OML to an OWL representation
MacOS/Linux:
./gradlew oml2owl:run --args="..."
Windows:
gradlew.bat oml2owl:run --args="..."
Args:
--input-catalog-path | -i path/to/input/oml/catalog.xml [Required]
--root-ontology-iri | -r http://... [Optional]
--output-catalog-path | -o path/to/output/owl/catalog.xml [Required]
--output-file-extension | -f [optional, options: owl (default), rdf, xml, rj, ttl, n3, nt, trig, nq, trix, jsonld, fss]
--disjoint-unions | -u [Optional]
--annotations-on-axioms | -a [Optional]
--generateRules | -rl [Optional]
--oml-annotations | -an suppress [Optional, options=generate (default), suppress]
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.opencaesar.adapters:oml2owl-gradle:+'
}
}
task oml2owl(type:io.opencaesar.oml2owl.Oml2OwlTask) {
inputCatalogPath = file('path/to/input/oml/catalog.xml') [Required]
rootOntologyIri = 'http://...' [Optional]
outputCatalogPath = file('path/to/output/owl/catalog.xml') [Required]
outputFileExtension = 'owl' [Optional, default=owl, options: owl, rdf, xml, rj, ttl, n3, nt, trig, nq, trix, jsonld, fss]
disjointUnions = true [Optional, false by default]
annotationsOnAxioms = true [Optional, false by default]
generateRules = true [Optional, false by default] // generates Jena rules files
omlAnnotations = 'suppress' [Optional,options='generate' (default), 'suppress']
}