Mikae Mikae - 28 days ago 8
Java Question

How to use DL Query programmatically

I would like to know whether I can use DL Query in Protege programatically. Is it possible to enter a query in Java and retrieve individuals like how it is done in SQL?

E.g. query is

hasCalorificContentValue value 723
and I would like to retrieve an individual called
QuattroFormaggio
.

Answer Source

If you have an OWL file then you can use the OWLAPI to programatically access, edit and query your ontology without having to use Protege. On the OWLAPI examples page there are code examples that describe how you would encode your query.