LinguaLibre

Difference between revisions of "Speakers"

m
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<query>
+
<languages/>
 +
<query _pagination="50" locutor="item" locutorLabel="Speaker username" place="Place of residence">
 +
    PREFIX wd: <http://www.wikidata.org/entity/>
 +
    PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 +
 
 
     select distinct ?locutor ?locutorLabel ?place
 
     select distinct ?locutor ?locutorLabel ?place
 
     where {
 
     where {
Line 5: Line 9:
 
         #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).
+
           ?locutor prop:P14 ?location .
 +
           BIND(uri(concat("http://www.wikidata.org/entity/", IF( isBLANK(?location), 'Q2', ?location ))) as ?locationItem).
 +
 
 
           SERVICE <https://query.wikidata.org/sparql> {
 
           SERVICE <https://query.wikidata.org/sparql> {
              ?locationItem rdfs:label ?place .
+
            #extra:{"type":"wikidata", "label":"P14"} ?locationItem wdt:P131*/wdt:P131? wd:[EXTRA] .
              FILTER (LANG(?place) = "[AUTO_LANGUAGE]") .
+
            ?locationItem rdfs:label ?place .
 +
            FILTER (LANG(?place) = "[AUTO_LANGUAGE]") .
 
           }
 
           }
 
+
     
 
         SERVICE wikibase:label {
 
         SERVICE wikibase:label {
 
             bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
 
             bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
         }
+
         }  
 
     }
 
     }
 
</query>
 
</query>

Revision as of 06:24, 28 August 2018

Other languages:
Bahasa Melayu • ‎Canadian English • ‎Deutsch • ‎English • ‎Esperanto • ‎Taqbaylit • ‎brezhoneg • ‎español • ‎français • ‎norsk bokmål • ‎occitan • ‎polski • ‎svenska • ‎македонски • ‎বাংলা • ‎日本語
... Loading ...