big-moving.ru/assets/vendor_plugins/ace-builds-master/demo/kitchen-sink/docs/sparql.rq

14 lines
457 B
SPARQL
Raw Normal View History

2022-06-24 15:29:23 +05:00
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")
}