query-6a072e67a18eade7511e184726b9332d
Demonyms on map
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Words describing people from a certain place
# e.g. swede
# by Vesihiisi
#defaultView:Map
SELECT ?l ?lemma ?demoPlaceLabel ?coords WHERE {
?l a ontolex:LexicalEntry ;
dct:language ?language ;
wikibase:lemma ?lemma .
?language wdt:P218 'sv'. # language
?l ontolex:sense ?sense.
?sense wdt:P6271 ?demoPlace.
?demoPlace wdt:P625 ?coords
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?coords"):::projected
v5("?demoPlace")
v1("?l"):::projected
v2("?language")
v3("?lemma"):::projected
v4("?sense")
c6(["sv"]):::literal
c2(["ontolex:LexicalEntry"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
c11(["bd:serviceParam"]):::iri
v1 --"a"--> c2
v1 --"dct:language"--> v2
v1 --"wikibase:lemma"--> v3
v2 --"wdt:P218"--> c6
v1 --"ontolex:sense"--> v4
v4 --"wdt:P6271"--> v5
v5 --"wdt:P625"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end