Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add programatic query of existing languages #8

Open
hugolpz opened this issue Feb 20, 2022 · 1 comment
Open

Add programatic query of existing languages #8

hugolpz opened this issue Feb 20, 2022 · 1 comment
Assignees

Comments

@hugolpz
Copy link
Member

hugolpz commented Feb 20, 2022

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
@Poslovitch Poslovitch transferred this issue from lingua-libre/CommonsDownloadTool Feb 20, 2022
@Poslovitch
Copy link
Member

The current code in create_datasets.sh seems to be out of date compared to what @mickeybarber showed me on Friday. Let's wait for input from him.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants