LinguaLibre

Difference between revisions of "Speakers"

m (0x010C moved page DataViz:Speakers to LinguaLibre:Speakers without leaving a redirect: Part of translatable page "DataViz:Speakers")
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="color:red; text-align: center;">
+
<languages/>
During the beta, data shown here are refresh only once a day.
+
<query _pagination="50" locutor="item" locutorLabel="Speaker username" place="Place of residence">
</div>
 
 
 
<query>
 
 
     PREFIX wd: <http://www.wikidata.org/entity/>
 
     PREFIX wd: <http://www.wikidata.org/entity/>
 
     PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 
     PREFIX wdt: <http://www.wikidata.org/prop/direct/>
Line 14: Line 11:
 
        
 
        
 
           ?locutor prop:P14 ?location .
 
           ?locutor prop:P14 ?location .
           BIND(uri(concat("http://www.wikidata.org/entity/", ?location)) as ?locationItem).
+
           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> {
 
             #extra:{"type":"wikidata", "label":"P14"} ?locationItem wdt:P131*/wdt:P131? wd:[EXTRA] .
 
             #extra:{"type":"wikidata", "label":"P14"} ?locationItem wdt:P131*/wdt:P131? wd:[EXTRA] .
 
             ?locationItem rdfs:label ?place .
 
             ?locationItem rdfs:label ?place .
             FILTER (LANG(?place) = "fr") .
+
             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 09:24, 25 December 2018

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