LinguaLibre
Difference between revisions of "Records"
(27 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | <languages/> |
− | + | <translate> | |
− | + | <!--T:1--> | |
− | + | For performance reasons, the maximum number of audio recording shown at a time is 1000. This current page will be enhanced in the future. | |
− | + | </translate> | |
− | + | {| style="width:100%" | |
− | + | |- style="vertical-align:top;padding:.5em;" | |
− | + | | style="padding-right:.5em;"| | |
+ | <query _pagination="100" record="<translate><!--T:3--> Item</translate>" audio="<translate><!--T:4--> Record</translate>" recordLabel="<translate><!--T:5--> Transcription</translate>" locutorLabel="<translate><!--T:6--> Speaker</translate>" langLabel="<translate><!--T:7--> Language</translate>" levelLabel="<translate><!--T:8--> Language level</translate>"> | ||
+ | select distinct ?record ?audio ?recordLabel ?locutorLabel (if( ?language = entity:Q4, '???', ?languageLabel ) as ?langLabel) (if( ?languageLevel = entity:Q5 || !BOUND(?languageLevel), '???', ?languageLevelLabel ) as ?levelLabel) | ||
+ | where { | ||
+ | ?record prop:P2 entity:Q2 . | ||
+ | ?record prop:P5 ?locutor . | ||
+ | ?record prop:P3 ?audio . | ||
+ | #extra:{"type": "wikibase-item", "filter":"Q3", "label": "P5", "multiple": true} ?record prop:P5 entity:[EXTRA] . | ||
+ | ?record prop:P4 ?lang . | ||
+ | #extra:{"type": "wikibase-item", "filter":"Q4", "label": "P4", "multiple": true} ?record prop:P4 entity:[EXTRA] . | ||
+ | BIND( IF( isBLANK(?lang), entity:Q4, ?lang ) as ?language ). | ||
+ | OPTIONAL { | ||
+ | ?locutor llp:P4 ?languageStatement . | ||
+ | ?languageStatement llv:P4 ?language . | ||
+ | ?languageStatement llq:P16 ?level . | ||
+ | #extra:{"type": "wikibase-item", "filter":"Q5", "label": "P16", "multiple": true} ?languageStatement llq:P16 entity:[EXTRA] . | ||
+ | BIND( IF( isBLANK(?level), entity:Q5, ?level ) as ?languageLevel ). | ||
+ | } | ||
+ | |||
+ | ?record prop:P7 ?transcription. | ||
+ | #extra:{"type": "string", "label": "P7"} filter contains(lcase(?transcription), lcase('[EXTRA]')). | ||
+ | SERVICE wikibase:label { | ||
+ | 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 ?recordLabel LIMIT 1000 | ||
+ | </query> | ||
+ | | | ||
− | + | <query _pagination="100" records="Number of records"> | |
− | + | select (COUNT(DISTINCT ?record) as ?records) | |
− | + | where { | |
− | + | ?record prop:P2 entity:Q2 . | |
+ | } | ||
+ | </query> | ||
+ | |} | ||
− | + | [[Category:Lingua Libre:DataViz{{#translation:}}]] | |
− | |||
− | |||
− | |||
− | |||
− | }} |
Latest revision as of 23:28, 13 January 2022
For performance reasons, the maximum number of audio recording shown at a time is 1000. This current page will be enhanced in the future.
|
|