RDFS, Jena: how to query taking ontology into account

三世轮回 提交于 2021-02-10 19:10:58

问题


I have two separate Jena models, one containing an RDFS ontology and the other containing the statements.

Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements.

What I want is to query the statements model by taking into account the ontology as well. How can I do this?


回答1:


You can query the ontology using SPARQL language and store the result and you can query other statements using any normal querying language.

After that you can combine the results obtained from the above two



来源:https://stackoverflow.com/questions/23856837/rdfs-jena-how-to-query-taking-ontology-into-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!