query-c4170475e594278cc66ff8f1bdb20d9c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
?item wdt:P21 wd:Q6581072 .
{ ?item wdt:P69 wd:Q1247589 }
union
{ ?item wdt:P108 wd:Q1247589 }
OPTIONAL {
?wiki0 <http://schema.org/about> ?item .
FILTER(SUBSTR(STR(?wiki0),1,24) = 'https://en.wikipedia.org') .
}
FILTER(!bound(?wiki0))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?wiki0")
c7(["wd:Q1247589"]):::iri
c5(["wd:Q6581072"]):::iri
f0[["not bound(?wiki0)"]]
f0 --> v1
v2 --"wdt:P21"--> c5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P108"--> c7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P69"--> c7
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -.http://schema.org/about.-> v2
end