to use sparql , remember two point : Triples(三元组) and the conception of match。

for example :

select * where{?o ?p ?q} ,?o ,?p,?q mean all the records we find, they compose into triples.

* means the data we want to get.

here comes examples:

example1:

select distinct ?name where {

?person dbpedia-owl:thumbnail ?Concept.

?person dbpprop:origin ?name.

}

example2:

select distinct ?name where {

?person dbpprop:name “Stevie Nicks”.

?person dbpprop:caption ?name.

}



blog comments powered by Disqus

Published

14 June 2012

Tags