本文介绍了耶拿RDFS:如何在考虑本体的情况下进行查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个单独的Jena模型,一个包含RDFS本体,另一个包含语句.

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

现在,例如,由于RDF语句中未描述该类,因此我无法编写一个查询来返回特定类的所有结果.

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?

推荐答案

您可以使用SPARQL语言查询本体并存储结果,还可以使用任何常规查询语言查询其他语句.

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

这篇关于耶拿RDFS:如何在考虑本体的情况下进行查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:22