owl-toolkit is a set of command line tools for OWL files based on the owl-api library.
This repositary is a clone of ghxiao's project ported to a newer version of Java. The aim is both to retain the original functionality and make some additional improvements.
A web application owlweb.herokuapp.com of this project can be used for merging, converting and analyzing ontologies. If you prefer to install owl-toolkit locally, follow the instructions below.
https://github.com/matushedera/owl-toolkit/releases
git clone https://github.com/matushedera/owl-toolkit.gitcd owl-toolkitmvn package
$ cd owl-toolkitAdd the command script to the PATH, eg:
$ ln -s "$(pwd)/owltk" /usr/local/bin/owltk- converts the input OWL ontology to another format
$ owltk convert {-rdfxml | -owlxml | -turtle | -fss | -latex | -manchester } input_file output_file- extracts the OWL Declaration Axioms from the input ontology. It is very useful when user wants to disable the ontology reasoning.
$ owltk declarations input_file output_file- merges several OWL files into a single one
$ owltk merge output_file input_file [output_file]...- prints the metrics (e.g. number of concepts/propertes/ABox assertions) of an OWL file
$ owltk metrics [-v] input_file- converts the OWL file to a pdf file in DL format
$ owltk pdf input_file.tex- cuts the OWL file to a profile (incl. RL, EL, QL) by dropping violated axioms
$ owltk profilize {-rl | -el | -ql} input_file output_file- materializes the imports of the input ontology, that is, it replaces the
importdeclaration by the concrete axioms from the imported ontologies
$ owltk materialize input_file output_file- extracts data properties
- new save to file option added
$ owltk dataprop input_file [output_file]- extracts object properties
- new save to file option added
$ owltk objectprop input_file [output_file]- extracts individuals
- new save to file option added
$ owltk individuals input_file [output_file]- extracts classes
- new save to file option added
$ owltk classes input_file [output_file]