nichtich / wikidata-taxonomy

command-line tool to extract taxonomies from Wikidata
https://www.npmjs.org/package/wikidata-taxonomy
MIT License
125 stars 11 forks source link

An OR list in the --mappings option #23

Closed ppKrauss closed 7 years ago

ppKrauss commented 7 years ago

The "OR list" have many applications, see one example here or this analytic query...

Suggestion: use comma-separated list as P1709,P2888 to recognize an "OR list".

Example:

nichtich commented 7 years ago

Done in the master branch. How about some predefined list of common mapping properties or getting the list as sub-properties of Q30249126? Maybe this way:

wdtaxonomy -m all Q33999
nichtich commented 7 years ago

Implemented in 0.5.0, including shortcut keywords. The output, however does not distinguish mapping types yet (#26).