virt2/assets/vendor_plugins/ace-builds-master/demo/kitchen-sink/docs/sparql.rq

14 lines
457 B
SPARQL
Raw Permalink Normal View History

PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# 1. Directors of movies starring Brad Pitt
# Datasource: http://fragments.dbpedia.org/*/en
SELECT ?movie ?title ?name
WHERE {
?movie dbpedia-owl:starring [ rdfs:label "Brad Pitt"@en ];
rdfs:label ?title;
dbpedia-owl:director [ rdfs:label ?name ].
FILTER LANGMATCHES(LANG(?title), "EN")
FILTER LANGMATCHES(LANG(?name), "EN")
}