stardog-admin utils owl2rulesTranslate RDFS and OWL axioms to Stardog rules<br>
stardog-admin utils owl2rules [ {-f | --format} <Result format> ] [ --translate-domain ] [ --translate-range ] [ --translate-stride ] [ {-v | --verbose} ] [--] <Input ontology>
| Name, shorthand | Description |
|---|---|
-f <Result format>, --format <Result format> | Result format for output [NTRIPLES, RDF/XML, TURTLE, PRETTY_TURTLE, TRIG, N3, NQUADS, JSONLD]. By default the rules will be outputted in inline Turtle syntax that is only supported by Stardog. If a format is specified then the output will be standard RDF syntax. |
--translate-domain | Translate domain axioms into rules. By default rdfs:domain triples are ignored. |
--translate-range | Translate range axioms into rules. By default rdfs:range triples are ignored. |
--translate-stride | Translate axioms that are supported by Stride natively. |
-v, --verbose | Flag that can cause more detailed information to be printed such as errors and status. Exact output depends upon the command and options used. |
-- | This option can be used to separate command-line options from the list of argument(s). (Useful when an argument might be mistaken for a command-line option) |
<Input ontology> | Input ontology to translate |
This tool translates RDFS and OWL axioms to Stardog rules. The main purpose of this tool is to help migration to the new Stride reasoner that supports a smaller subset of OWL axioms natively. For this reason, OWL axioms that are already supported by the Stride reasoner are not translated by default but can be included in the translation as shown in the examples below.
Translate OWL axioms to rules
$ stardog-admin utils owl2rules input.owl
Translate OWL axioms including axioms that are natively supported by Stride
$ stardog-admin utils owl2rules --translate-stride input.owl