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

Show classes of an instance with option --reverse #13

Open nichtich opened 8 years ago

nichtich commented 8 years ago

Before/instead of checking whether a non-class exists, classes should be queried which the item is instance of.

kevincfz commented 6 years ago

I would love to have this feature. Would you please point me to the appropriate place to start, I would like to work on this and make a pull request.

nichtich commented 6 years ago

I suppose this requires extension of lib/query.js in the then part. Instead of only checking whether lonely item/probably actually exists, query all of its super-classes if option reverse is given.