query-9ff6029359bf5cabc0b37239f98acd19
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
select ?item
{
{
select (?candidate as ?item) {
{
select * {
values ?candidate {
# put your items on this list
wd:Q14084 # redirect to Q68
wd:Q73661 # nonredirect item
}
}
}.
?candidate wikibase:sitelinks [] .
}
} union {
select ?item {
{
select * {
values ?candidate {
# put your items on this list
wd:Q14084 # redirect to Q68
wd:Q73661 # nonredirect item
}
}
}.
?candidate owl:sameAs ?item .
?item wikibase:sitelinks [] .
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?candidate")
v2("?item"):::projected
a1((" "))
a2((" "))
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
bind0[/VALUES ?candidate/]
bind0-->v3
bind00(["wd:Q14084"])
bind00 --> bind0
bind01(["wd:Q73661"])
bind01 --> bind0
v3 --"owl:sameAs"--> v2
v2 --"wikibase:sitelinks"--> a2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind1[/VALUES ?candidate/]
bind1-->v3
bind10(["wd:Q14084"])
bind10 --> bind1
bind11(["wd:Q73661"])
bind11 --> bind1
v3 --"wikibase:sitelinks"--> a1
bind2[/"?candidate"/]
v3 --o bind2
bind2 --as--o v2
end
union0r <== or ==> union0l
end