query-b189169ea642b04ccd48025b6d338b97
movie with P973 start with "https://www.artfilm.ch" SELECT DISTINCT ?réal ?réalLabel ?decrit ?genreLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q2431196; wdt:P973 ?describes; wdt:P57 ?réal. FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch"). OPTIONAL{?réal wdt:P21 ?genre.} OPTIONAL{?réal wdt:P973 ?decrit.} FILTER NOT EXISTS {?réal wdt:P569 ?naissance.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de". } } ORDER BY ?réalLabel
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 bd: <http://www.bigdata.com/rdf#>
#movie with P973 start with "https://www.artfilm.ch"
SELECT DISTINCT ?réal ?réalLabel ?decrit ?genreLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q2431196;
wdt:P973 ?describes;
wdt:P57 ?réal.
FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch").
OPTIONAL{?réal wdt:P21 ?genre.}
OPTIONAL{?réal wdt:P973 ?decrit.}
FILTER NOT EXISTS {?réal wdt:P569 ?naissance.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de". }
}
ORDER BY ?réalLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?decrit"):::projected
v4("?describes")
v6("?genre")
v5("?item")
v3("?naissance")
v2("?réal"):::projected
v1("?réalLabel"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en,it,de"]):::literal
c5(["wd:Q2431196"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P569"--> e0v2
e0v2("?naissance"):::projected
e0v1("?réal"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P569"--> v3
f1[["starts-with(str(?describes),'https://www.artfilm.ch')"]]
f1 --> v4
v5 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v5 --"wdt:P973"--> v4
v5 --"wdt:P57"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P21".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P973".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end