nichtich/wikidata-taxonomy

Show classes of an instance with option --reverse

nichtich opened this issue · 2 comments

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

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.

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.