LinguaLibre

Difference between revisions of "Records"

Line 1: Line 1:
 
<query record="item" recordLabel="transcription" locutorLabel="locuteur" languageLabel="langue" languageLevelLabel="Niveau de langue">
 
<query record="item" recordLabel="transcription" locutorLabel="locuteur" languageLabel="langue" languageLevelLabel="Niveau de langue">
     select ?record ?recordLabel ?locutorLabel ?languageLabel ?languageLevelLabel
+
     select distinct ?record ?recordLabel ?locutorLabel ?languageLabel (if( ?languageLevel = entity:Q5, '???', ?languageLevelLabel ) as ?levelLabel)
 
     where {
 
     where {
 
         ?record prop:P2 entity:Q2 .
 
         ?record prop:P2 entity:Q2 .
Line 10: Line 10:
 
         ?locutor llp:P4 ?languageStatement .
 
         ?locutor llp:P4 ?languageStatement .
 
         ?languageStatement llv:P4 ?language .
 
         ?languageStatement llv:P4 ?language .
         ?languageStatement llq:P13 ?languageLevel .
+
         ?languageStatement llq:P13 ?level .
 +
        BIND( IF( isBLANK(?level), entity:Q5, ?level ) as ?languageLevel ).
 
         #extra:{"type": "wikibase-item", "filter":"Q5", "label": "P13", "multiple": true} ?languageStatement llq:P13 entity:[EXTRA] .
 
         #extra:{"type": "wikibase-item", "filter":"Q5", "label": "P13", "multiple": true} ?languageStatement llq:P13 entity:[EXTRA] .
  
Line 18: Line 19:
 
         SERVICE wikibase:label {
 
         SERVICE wikibase:label {
 
             bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
 
             bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
 +
            ?languageLevel rdfs:label ?languageLevelLabel.
 +
            ?record rdfs:label ?recordLabel.
 +
            ?locutor rdfs:label ?locutorLabel.
 +
            ?language rdfs:label ?languageLabel.
 
         }
 
         }
     } ORDER BY ?languageLabel ?languageLevelLabel
+
     } ORDER BY ?recordLabel
 
</query>
 
</query>

Revision as of 14:31, 11 April 2018

... Loading ...