14 lines
457 B
SPARQL
Executable File
14 lines
457 B
SPARQL
Executable File
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")
|
|
}
|