SPARQL Query examples
Entities involved in the creation process of the guide:"Picoteo Dublinés" and their role.SELECT distinct ?reference ?role WHERE { ?post <http://rdfs.org/sioc/ns#title> "Picoteo dublinés". ?gen <http://openprovenance.org/model/opmo#effect> ?post. ?gen <http://openprovenance.org/model/opmo#cause> ?process. ?used <http://openprovenance.org/model/opmo#effect> ?process. ?used <http://openprovenance.org/model/opmo#cause> ?reference. ?used <http://openprovenance.org/model/opmo#role> ?role. }
Guide Links (limit to 100 guides)
SELECT DISTINCT ?a ?c WHERE { ?a a <http://webenemasuno.linkeddata.es/ontology/OPMO/Guide>. ?a <http://openprovenance.org/model/opmo#pname> ?c } LIMIT 100
Link to a concrete guide (given the guide http://webenemasuno.linkeddata.es/elviajero/resource/Guide/20080112ELPVIAPOR_1.TES)
SELECT DISTINCT ?c WHERE { <http://webenemasuno.linkeddata.es/elviajero/resource/Guide/20080112ELPVIAPOR_1.TES> <http://openprovenance.org/model/opmo#pname> ?c }
URLs of pictures (including title and URI) associated to a given guide (http://webenemasuno.linkeddata.es/elviajero/resource/Guide/20070519ELPVIAVJE_1.TES)
SELECT DISTINCT ?reference ?pname ?tit WHERE { ?gen <http://openprovenance.org/model/opmo#effect> <http://webenemasuno.linkeddata.es/elviajero/resource/Guide/20070519ELPVIAVJE_1.TES>. ?gen <http://openprovenance.org/model/opmo#cause> ?process. ?used <http://openprovenance.org/model/opmo#effect> ?process. ?used <http://openprovenance.org/model/opmo#cause> ?reference. ?reference a <http://webenemasuno.linkeddata.es/ontology/OPMO/Image>. ?reference <http://openprovenance.org/model/opmo#pname> ?pname. OPTIONAL {?reference <http://metadata.net/mpeg7/mpeg7.owl#title> ?t. ?t <http://www.w3.org/2000/01/rdf-schema#label> ?tit.} }
Guides that are not well annotated in Barcelona (without author or title):
select distinct ?guide where{ ?guide a <http://webenemasuno.linkeddata.es/ontology/OPMO/Guide>. ?guide <http://webenemasuno.linkeddata.es/ontology/OPMO/refersTo> <http://geo.linkeddata.es/resource/Provincia/Barcelona>. FILTER NOT EXISTS { ?guide a <http://webenemasuno.linkeddata.es/ontology/OPMO/Guide>. ?guide <http://webenemasuno.linkeddata.es/ontology/OPMO/refersTo> <http://geo.linkeddata.es/resource/Provincia/Barcelona>. ?guide <http://rdfs.org/sioc/ns#has_creator> ?author. ?guide <http://rdfs.org/sioc/ns#title> ?title. } }
Further information about SPARQL Query Language for RDF