query-7a77f5f852bba3d8c58a96a92bafbe29
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 bd: <http://www.bigdata.com/rdf#>
# Map of things that are named after Armenian citiziens or people born in Armenia
#defaultView:Map
SELECT ?item ?itemLabel ?person ?personLabel ?coords WHERE {
{
?item wdt:P138 ?person .
?item wdt:P625 ?coords .
?person wdt:P27 wd:Q399
}
UNION
{
?item wdt:P138 ?person .
?item wdt:P625 ?coords .
?person wdt:P19 ?place .
?place wdt:P17 wd:Q399 .
}
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("?coords"):::projected
v1("?item"):::projected
v2("?person"):::projected
v4("?place")
c4(["wd:Q399"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P138"--> v2
v1 --"wdt:P625"--> v3
v2 --"wdt:P19"--> v4
v4 --"wdt:P17"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P138"--> v2
v1 --"wdt:P625"--> v3
v2 --"wdt:P27"--> c4
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end