tags:

views:

28

answers:

1

so, if the data set is:

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

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

how do i check that the triple :book1 dc:title "SPARQL Tutorial" . exists?

i can do SELECT ?book where {?book dc:title "SPARQL Tutorial"} but then i have to do post processing to determine if 'book1' was retrieved!

thanks :)

+1  A: 
ASK  { ?book dc:title "SPARQL Tutorial" }
significance
Should be :book1 instead of ?book, but ASK is right.
glenn mcdonald