nichtich / wikidata-taxonomy

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

Add command to make an item an instance/subclass #18

Open nichtich opened 7 years ago

nichtich commented 7 years ago
wdtaxonomy --isa Qparent Qchild
wdtaxonomy --broader Qparent Qchild

Both should check whether a instance-of/subclass-of relation exists to skip or modify (the latter requires https://github.com/maxlath/wikidata-edit/issues/2). An item should never be both instance and subclass of the same other item.

nichtich commented 6 years ago

Should better be done with wikidata-cli but a howto would be nice:

  1. query taxonomy
  2. spot instances wrongly classified as subclasses
  3. somehow pipe to wikidata-cli