Jena & RDF - 如何获取具有特定属性的所有资源

问题描述

大家好!

我想要实现的是我想显示所有位于前 10 位的工具。如何使用 Jena 实现这一目标?

这是我的 RDF 的一个片段:

<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-Syntax-ns#"
xmlns:foaf="https://www.toptools4learning.com/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns="http://test.example.com/">
   <foaf:Description rdf:about="http://test.example.com/YouTube.rdf">
      <foaf:name xml:lang="en">Youtube<foaf:name>
      <foaf:position>1</foaf:position>
      <foaf:reference rdf:resource="https://www.toptools4learning.com/"/>
      <foaf:type xml:lang="en">learning</foaf:type>
      <foaf:category xml:lang="en">web-based</foaf:category>
      <foaf:domain xml:lang="en">any</foaf:domain>
   </foaf:Description>
</rdf:RDF>

我的 RDF 中有多个工具,每个工具都有不同的位置。

我应该使用 SPARQL 吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)