How to write DL queries using java [closed]

2019-09-02 02:05发布

问题:

How do I connect an ontology using java? I have created an ontology using protege. How can I write DL queries in Java to use this ontology?

回答1:

You should take a look at the OWL API and Pellet.



回答2:

DL queries are simply OWL class expressions. You can use the OWL-API as suggested, look at the example provided here. If you need to perform some reasoning in order to retrieve the data of interest, add a reasoner on your classpath (Hermit, Pellet, etc...). You can also think of using the Brain library, developed for this purpose, yet only supporting the OWL2 EL profile at the time being.



标签: ontology owl