query-7497632a58f9134a8e9176108c39502d
TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?description ?admLabel WHERE {
?item wdt:P1216 [] .
# ?item wdt:P131+ wd:Q21 .
OPTIONAL {?item wdt:P131 ?adm} .
?item schema:description ?description .
FILTER(CONTAINS(?description, "cinema"@en)) .
MINUS {?item wdt:P31 wd:Q41253} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?adm")
v1("?description"):::projected
v2("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q41253"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(?description,scinema^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>')"]]
f0 --> v1
v2 --"wdt:P1216"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v3
end
v2 --"schema:description"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end