cknoll
cknoll

Reputation: 2512

OWL reasoning from command line with minimal dependencies

I have an OWL file in rdf/xml syntax which contains an asserted ontology. I want to apply an OWL DL reasoner to derive additional axioms. I know I could open the file in protegé and apply the reasoner there. However I look for a command line solution because I want to automate that process in a script.

I am aware that owlready2 comes with reasoners Pellet and Hermite included as a binary file (.jar) but they seem quite outdated (see e.g. this repo), as Pellet 3.0 has become closed source.

I tried to install https://github.com/Galigator/openllet but failed to build it on my machine.

Is there any (preferable FLOSS-licenced) OWL DL reasoner available which can be easily installed and applied via command line?

Upvotes: 1

Views: 552

Answers (2)

Henriette Harmse
Henriette Harmse

Reputation: 4787

You can use ROBOT that is used extensively in the biological ontology community in pipelines. To reason using ELK you can use the following command:

robot reason --reasoner ELK \
  --input ribosome.owl \
  --output results/reasoned.owl

For more details see ROBOT docs on reasoning.

Upvotes: 1

cknoll
cknoll

Reputation: 2512

Due to the encouragement in the question's comments I managed to build openllet. Here I document the steps:

Upvotes: 1

Related Questions