How to use DL Query programmatically
I would like to know whether I can use DL Query in Protege programat开发者_C百科ically. 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
.
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.
精彩评论