HomeGetting StartedInstallation & SetupDevelopment & IntegrationDeployment & OperationsData ManagementTechnical SupportPlatform Updates
DocsDeployment & OperationsAdmin CLI Referenceutils owl2rules

stardog-admin utils owl2rules

Description

Translate RDFS and OWL axioms to Stardog rules<br>

Usage

stardog-admin utils owl2rules [ {-f | --format} <Result format> ] [ --translate-domain ] [ --translate-range ] [ --translate-stride ] [ {-v | --verbose} ] [--] <Input ontology>

Options

Name, shorthandDescription
-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-domainTranslate domain axioms into rules. By default rdfs:domain triples are ignored.
--translate-rangeTranslate range axioms into rules. By default rdfs:range triples are ignored.
--translate-strideTranslate axioms that are supported by Stride natively.
-v, --verboseFlag 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

Discussion

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.

Examples

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