Page MenuHomePhabricator

Link to a subclass list from each entity
Open, LowPublic

Description

As an editor, I want to find a list of existing subclasses for a major entity, so that I can properly classify an instance.

E.g. I found https://www.wikidata.org/wiki/Q21079123 via http://tools.wmflabs.org/wikidata-game/ and I wanted to tag it as a specific type of novel.
I guessed at "Crime novel", but a link to http://tools.wmflabs.org/wikidata-todo/tree.html?q=8261&rp=279&method=list would have helped me a lot.

A link to http://tools.wmflabs.org/wikidata-todo/tree.html?q=FOO&rp=279&method=list in the toolbox of entity pages, might be helpful for everyone.

Event Timeline

Quiddity raised the priority of this task from to Needs Triage.
Quiddity updated the task description. (Show Details)
Quiddity added a project: Wikidata-Gadgets.
Quiddity subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Maybe we can integrate that in the easyquery gadget?

In order to integrate with EasyQuery, first it's better to have it in WDQS.

I found two options:

I'm not an expert in wdqs so if there is a way to show subclasses recursively in tree-like method. Please correct me.

Blazegraph has some tree traversal methods maybe they are helpful:

  • com.bigdata.rdf.graph.analytics.BFS
  • com.bigdata.rdf.graph.analytics.SSSP

Here is an example:
http://tinyurl.com/hl5ujey

I built this based on your example. It's good but super big.

@Ladsgroup you could lower gas:maxIterations or add additional constraints