stevenliuyi / commons-depicts

https://tools.wmflabs.org/depicts
2 stars 0 forks source link

Allow recursivity (making depictions of "band" show depictions of "rock band") #2

Open nicolas-raoul opened 5 years ago

nicolas-raoul commented 5 years ago

Let's say a visitor wants to see depictions of bands. The visitor might find it strange to see zero rock band.

The depictions page for band does not show the depictions for rock band.

It would be great to have a checkbox "Include subclasses and instances".

Thanks! :-)

stevenliuyi commented 5 years ago

Thank you for the suggestion. It's definitely a very useful feature, but as far as I know it seems the query is not that straight forward?

So for items that have tons of subclasses and/or instances, it may require sending many API requests at the same time, which would exceed the rate limit.

I'm not sure if there is a way to achieve this in one query. It would be great if we are able to incorporate the structured data on Commons in WDQS in some way.

nicolas-raoul commented 5 years ago

I created the issue because it would be a very useful feature. You are right, it is not straightforward. Creating this feature will probably require modifying Wikidata server-side, for instance by improving caching vastly, and maybe even by creating new APIs.

The required server-side capabilities do not exist yet, because your tool is the first to cater to this new need. Being a pioneer means you will probably have to create a few Phabricator tickets :-)