A command-line tool that converts OWL ontologies using OWL API.
Clone this repository or download it as a zip. Open a terminal and change to the owlapi-converter
downloaded directory and generate the executable jar using maven:
mvn package
Generally, the previous step generate the jar in the target
folder placed inside the owlapi-converter
root folder.
To use the converter tool, type:
java -jar target/owlapi-converter.jar [-s syntax] [-o target] source
where:
source
(required argument) is the input ontology file.-o target
(optional) specifies the output file.-s [rdfxml | owlxml | turtle | manchester | functional | texowl]
(optional) specifies the export syntax. If it is not specified rdfxml is used.
For example:
java -jar target/owlapi-converter.jar -s texowl examples/pizza.owl -o OUTPUT