Help

Difference between revisions of "Querying Lingua Libre"

LinguaLibre audios are structured in a database where all the recordings and their data are described. This page expose the core structure and redirect you to the relevant documentations or help pages.

Line 20: Line 20:
  
 
== Querying the data ==
 
== Querying the data ==
'''SPARQL end points:'''
+
'''SPARQL end points'''
 
* [//lingualibre.org/bigdata/#query LinguaLibre's SPARQL endpoint] – to query Wikidata from Lingualibre, use <code><nowiki>SERVICE <https://wikidata.org/sparql></nowiki></code>.  
 
* [//lingualibre.org/bigdata/#query LinguaLibre's SPARQL endpoint] – to query Wikidata from Lingualibre, use <code><nowiki>SERVICE <https://wikidata.org/sparql></nowiki></code>.  
 
* [[d:Special:MyLanguage/Wikidata:SPARQL_query_service|Wikidata Query Service]] – to query Lingualibre from Wikidata, use <code><nowiki>SERVICE <https://lingualibre.org/sparql></nowiki></code>.
 
* [[d:Special:MyLanguage/Wikidata:SPARQL_query_service|Wikidata Query Service]] – to query Lingualibre from Wikidata, use <code><nowiki>SERVICE <https://lingualibre.org/sparql></nowiki></code>.
  
'''SPARQL helpers:'''
+
'''SPARQL helpers'''
 
* [[Special:MyLanguage/Help:SPARQL|Help:SPARQL]] – examples of SPARQL queries
 
* [[Special:MyLanguage/Help:SPARQL|Help:SPARQL]] – examples of SPARQL queries
 
** [[Special:ListProperties]] – list of all properties used on Lingua Libre
 
** [[Special:ListProperties]] – list of all properties used on Lingua Libre
** [[d:Special:MyLanguage/Wikidata:SPARQL query service/A gentle introduction to the Wikidata Query Service|Wikidata:SPARQL query service/A gentle introduction to the Wikidata Query Service]]
+
* [[Special:MyLanguage/Help:SPARQL 2|Help:SPARQL 2]] (stub) – examples of advanced SPARQL queries
  
'''API helpers:'''
+
'''API helpers'''
 
* [[Help:APIs]] – APIs queries relevant to LinguaLibre, including Commons.
 
* [[Help:APIs]] – APIs queries relevant to LinguaLibre, including Commons.
 
* [[Special:ApiSandbox]] – API queries generator for Lingualibre wikipage and wikibase contents.
 
* [[Special:ApiSandbox]] – API queries generator for Lingualibre wikipage and wikibase contents.

Revision as of 21:27, 12 January 2022


Core structures

Overview of the data model of the Lingua Libre database

The data model includes 3 core concepts of Lingua Libre.

Language

See also Help:SPARQL#Languages, LinguaLibre:List of languages

This is the language of a speaker or of a recording. This property may point to a language defined on Wikidata (wikidata:Q34770).

Speaker

See also Help:SPARQL#Speakers, DataViz:Speakers.

The speaker is the person that pronounced one or several words in an audio recording. There are various information on the speaker such as their residence at the time of recording and their native tongue.

Audio recordings

See also Help:SPARQL#Recordings, DataViz:Records.

Every recording created with the Record Wizard is added into the database along with some metadata that includes the date the recording was created, the speaker and the language.

Querying the data

SPARQL end points

SPARQL helpers

API helpers

  • Help:APIs – APIs queries relevant to LinguaLibre, including Commons.
  • Special:ApiSandbox – API queries generator for Lingualibre wikipage and wikibase contents.

Modifying the data

(This section needs an author.)

Further reading