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

Update language list #158

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Update language list #158

wants to merge 2 commits into from

Conversation

kunfang98927
Copy link
Contributor

@kunfang98927 kunfang98927 commented Sep 17, 2024

This will totally import 253 languages. Some examples are as follows:
image

Resolves: #157

Comment on lines +20 to +27
query = """
SELECT ?language ?languageLabel ?ISO639code ?autonym WHERE {
?language wdt:P31 wd:Q34770; # Instance of a natural language
wdt:P424 ?ISO639code; # ISO 639 code
rdfs:label ?autonym filter (lang(?autonym) = ?ISO639code).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this query come from? I suspect (given that it results in 253 languages) that these are all supported langauges for adding item names to Wikidata, but I'm curious how we know. Or are we not caring if they are supported in Wikidata? Either way, a little explanation of the "why" here would be good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query was generated by ChatGPT. I now realize that this query is not correct because many of the most common languages are missing. I add some solutions in the issue #157.

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

Successfully merging this pull request may close these issues.

Update Languages for "add new instrument name" feature
2 participants