query-2bcb264ec57e180f4afca21518caf424
director of movie with P973 "artfilm.ch" SELECT DISTINCT ?réal ?réalLabel ?famLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q2431196; wdt:P973 ?describes; wdt:P57 ?réal FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch"). FILTER NOT EXISTS {?réal wdt:P734 ?fam.}. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de". ?item rdfs:label ?itemLabel. ?réal rdfs:label ?réalLabel. ?fam rdfs:label ?famLabel. } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#director of movie with P973 "artfilm.ch"
SELECT DISTINCT ?réal ?réalLabel ?famLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q2431196;
wdt:P973 ?describes;
wdt:P57 ?réal
FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch").
FILTER NOT EXISTS {?réal wdt:P734 ?fam.}.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de".
?item rdfs:label ?itemLabel.
?réal rdfs:label ?réalLabel.
?fam rdfs:label ?famLabel.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?describes")
v2("?fam")
v7("?famLabel"):::projected
v4("?item")
v5("?itemLabel")
v1("?réal"):::projected
v6("?réalLabel"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en,it,de"]):::literal
c5(["wd:Q2431196"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P734"--> e0v2
e0v2("?fam"):::projected
e0v1("?réal"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P734"--> v2
f1[["starts-with(str(?describes),'https://www.artfilm.ch')"]]
f1 --> v3
v4 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v4 --"wdt:P973"--> v3
v4 --"wdt:P57"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
v4 --"rdfs:label"--> v5
v1 --"rdfs:label"--> v6
v2 --"rdfs:label"--> v7
end