LinguaLibre

Difference between revisions of "Speakers"

Line 1: Line 1:
 
<query>
 
<query>
     select distinct ?locutor ?locutorLabel
+
     select distinct ?locutor ?locutorLabel ?place
 
     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 .
 +
          BIND(uri(concat("http://www.wikidata.org/entity/", ?location)) as ?locationItem).
 +
          SERVICE <https://query.wikidata.org/sparql> {
 +
              ?locationItem rdfs:label ?place .
 +
              FILTER (LANG(?place) = "[AUTO_LANGUAGE]") .
 +
          }
 +
 
         SERVICE wikibase:label {
 
         SERVICE wikibase:label {
             bd:serviceParam wikibase:language "fr,en" .
+
             bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
         }  
+
         }
 
     }
 
     }
 
</query>
 
</query>

Revision as of 18:54, 10 April 2018

... Loading ...