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

Autogenerate the properties file #1

Open
havanagrawal opened this issue Jul 29, 2019 · 0 comments
Open

Autogenerate the properties file #1

havanagrawal opened this issue Jul 29, 2019 · 0 comments
Assignees

Comments

@havanagrawal
Copy link
Owner

havanagrawal commented Jul 29, 2019

There must be a sub-library in pywikibot that performs the same functionality as WikidataProperty. If not, find a way to auto-generate the Python3 file

Could use this query:

SELECT ?property ?propertyLabel WHERE {
  ?property wikibase:propertyType ?propertyType .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ASC(xsd:integer(STRAFTER(STR(?property), 'P')))

Try It

@havanagrawal havanagrawal self-assigned this Aug 24, 2019
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

1 participant