4

如果数据集是:

@prefix dc:   <http://purl.org/dc/elements/1.1/> .
@prefix :     <http://example.org/book/> .
@prefix ns:   <http://example.org/ns#> .

:book1  dc:title  "SPARQL Tutorial" .
:book2  dc:title  "The Semantic Web" .

如何检查三元组是否:book1 dc:title "SPARQL Tutorial" .存在?

我可以,SELECT ?book where {?book dc:title "SPARQL Tutorial"}但我必须进行后期处理以确定是否检索到“book1”!

4

1 回答 1

4
ASK  { ?book dc:title "SPARQL Tutorial" }
于 2010-09-02T14:45:06.550 回答