4
我在RDF文件中有一个rdf:collection
。当我有一个作者的集合时,以下查询不会返回任何内容。但是,该查询适用于两位或更多作者,但只返回两位作者。我能做些什么来写出所有的作者?rdf:在sparql中的集合
<bibo:authorList rdf:parseType="Collection">
<rdf:Description rdf:about="http://openlibrary.org/authors/OL113143A"/>
<rdf:Description rdf:about="http://openlibrary.org/authors/OL6784959A"/>
</bibo:authorList>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/terms/>
select ?title ?author ?author2
where {
?x dc:title ?title .
?x bibo:authorList ?object.
?object rdf:first ?name.
?name rdf:value ?author.
?object rdf:rest ?object2.
?object2 rdf:first ?name2.
?name2 rdf:value ?author2 .
}
对我使用ARC2进行SPARQL查询,所以我没有这样的请求。在某处写道:ARC2不支持SPARQL 1.1的子查询。如何使用SPARQL 1.0创建查询?如何在ARC2 SPARQL 1.1中安装? - – 2012-04-15 18:43:02
@Magdalena ARC2不支持SPARQL 1.1,因此如果您使用的是ARC2,则无法使用此查询 – RobV 2012-04-16 16:17:21
要使用什么而不是您的集合?我需要Arc2,我需要一些能取代我的收藏。 – 2012-04-16 20:07:15