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.