query-831c9e26c5f0e986abc9b8fbed1f3cfe
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
#defaultView:Map
SELECT ?item ?coord ?layer WHERE {
{
?item wdt:P625 ?coord .
?sitelink schema:about ?item.
?sitelink schema:isPartOf <https://tg.wikipedia.org/> .
BIND("tgwiki" AS ?layer) .
} UNION {
?item wdt:P625 ?coord .
?sitelink schema:about ?item.
?sitelink schema:isPartOf <https://fa.wikipedia.org/> .
BIND("fawiki" AS ?layer) .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v1("?item"):::projected
v5("?layer"):::projected
v3("?sitelink")
c5([https://fa.wikipedia.org/]):::iri
c4([https://tg.wikipedia.org/]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P625"--> v2
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c5
bind0[/"'fawiki'"/]
bind0 --as--o v5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P625"--> v2
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c4
bind1[/"'tgwiki'"/]
bind1 --as--o v5
end
union0r <== or ==> union0l
end