Skip to content

Add programatic query of existing languages #8

@hugolpz

Description

@hugolpz

Replace the hard coded line #48 by a programmatic query.

Rapid Query to get relevant info from LLQS :

SELECT ?lang ?langLabel ?code ( count(DISTINCT ?record) as ?nb ) WHERE {
  ?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en").
  OPTIONAL { ?record prop:P4 ?lang ; prop:P2 entity:Q2 . }
  OPTIONAL { ?lang prop:P13 ?code }
}
GROUP BY ?lang ?langLabel ?code
ORDER BY DESC(?nb)

See also :

  • lingua-libre/CommonsDownloadTool#2

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions