【问题标题】:Determine if a specific triple exists using SPARQL使用 SPARQL 确定是否存在特定的三元组
【发布时间】:2010-09-02 14:09:06
【问题描述】:

如果数据集是:

@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”!

【问题讨论】:

    标签: sparql rdf turtle-rdf


    【解决方案1】:
    ASK  { ?book dc:title "SPARQL Tutorial" }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-15
      • 1970-01-01
      • 1970-01-01
      • 2017-12-25
      • 2011-12-23
      • 2015-08-27
      • 1970-01-01
      相关资源
      最近更新 更多