LinguaLibre
Difference between revisions of "Speakers"
Line 1: | Line 1: | ||
<query> | <query> | ||
− | select distinct ?locutor ?locutorLabel ?place | + | PREFIX wd: <http://www.wikidata.org/entity/> |
+ | PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
+ | |||
+ | select distinct ?locutor ?locutorLabel ?locationItem ?place ?coord | ||
where { | where { | ||
?locutor prop:P2 entity:Q3 . | ?locutor prop:P2 entity:Q3 . | ||
#extra:{"type": "wikibase-item", "filter":"Q4", "label": "P4", "multiple": true} ?locutor prop:P4 entity:[EXTRA] . | #extra:{"type": "wikibase-item", "filter":"Q4", "label": "P4", "multiple": true} ?locutor prop:P4 entity:[EXTRA] . | ||
+ | |||
?locutor prop:P12 ?location . | ?locutor prop:P12 ?location . | ||
BIND(uri(concat("http://www.wikidata.org/entity/", ?location)) as ?locationItem). | BIND(uri(concat("http://www.wikidata.org/entity/", ?location)) as ?locationItem). | ||
+ | |||
SERVICE <https://query.wikidata.org/sparql> { | SERVICE <https://query.wikidata.org/sparql> { | ||
− | + | #extra:{"type":"wikidata", "label":"P12"} ?locationItem wdt:P131/wdt:P131* wd:[EXTRA] . | |
− | + | ?locationItem rdfs:label ?place . | |
+ | FILTER (LANG(?place) = "fr") . | ||
} | } | ||
− | + | ||
SERVICE wikibase:label { | SERVICE wikibase:label { | ||
− | bd:serviceParam wikibase:language " | + | bd:serviceParam wikibase:language "fr,en" . |
− | } | + | } |
} | } | ||
</query> | </query> |