-
-
Notifications
You must be signed in to change notification settings - Fork 24
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 tool wdcoord to get coordinates #6
Conversation
This is already possible using qclaims: |
First, there is a bug if you installed wikidata-cli globally:
I would expect qlaims not to require looking up a local file if property is already given by its id. But also after this has been fixed, the result is
Looms like the output format of qclaims does not support coordinates. This could be improved by having special handlers for each Wikidata datatype, for instance to convert decimal coordinate to degree. So in general you are right, this could all be done in qclaims but only with additional extension. For instance
For wikidata-item datatype instead of
I would want
And piped to qlabel:
See also #4. P.S: Maybe
Additional arguments and options to filter values with qualifiers and references. |
(the Damn, I didn't see that "permission denied" message coming: I installed node with nvm which setups node modules in the home folder |
How about moving the property cache functionalty to wikidata-sdk and store it in
|
wikidata-sdk should stay small enough so that one can include it in a web app without overthinking it, including the whole list of properties in one or several languages would clearly compromise that ;) # current weight
32K wikidata-sdk.js
20K wikidata-sdk.min.js
12K wikidata-sdk.min.js.gz
88K en-props.js
72K en-props.min.js
32K en-props.min.js.gz But if you see the need for features involving those files, we could have something like a |
I did not mean to include props in wikidata-sdk but |
reimplementing the proposition made by nichtich #6
As described at #5 this adds dependencies which I find useful for the other tools too.