query-946e0d48f08a3ae5fd6ff5ea9af1982f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?P910 ?P910Label ?article WHERE {
?item wdt:P4812 [].
?item wdt:P373 [].
optional {?item wdt:P910 ?P910.
optional {?article schema:about ?P910 ; schema:isPartOf <https://commons.wikimedia.org/> .}
}
filter not exists {?article schema:about ?item ; schema:isPartOf <https://commons.wikimedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?P910"):::projected
v1("?article"):::projected
v2("?item"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c3([https://commons.wikimedia.org/]):::iri
c10(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://commons.wikimedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 --"wdt:P4812"--> a1
v2 --"wdt:P373"--> a2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P910".-> v3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."schema:about".-> v3
v1 --"schema:isPartOf"--> c3
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end