Quiddity added a comment.
Perfect, thanks all!TASK DETAILhttps://phabricator.wikimedia.org/T152676EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Jonas, QuiddityCc: WikidataFacts, Lucas_Werkmeister_WMDE, Quiddity, gerritbot, nichtich, Upeksha1996, TerraCodes,
Lucas_Werkmeister_WMDE added a comment.
@nichtich that’s not the same thing – that tree always only has two levels, and nodes will appear multiple times (e. g. Waltzes by Chopin is a toplevel node but also a child node of List of compositions by Frédéric Chopin by genre). If I understand
nichtich added a comment.
The Chopin example could be written like this to become a simple example:
SELECT ?parent ?parentLabel ?child ?childLabel WHERE {
?parent wdt:P361* wd:Q1785783 .
?child wdt:P361 ?parent .
SERVICE wikibase:label { bd:serviceParam wikibase:language
Quiddity added a comment.
Thanks!
Lastly, I'd suggest adding another "tree" example at the GUI, for the specific example given in the description here. That will probably be a simpler example, for non-technical people to adapt/reuse.
Specifically
Jonas added a comment.
In T152676#3336454, @Quiddity wrote:
@Jonas 3 things:
I tried running the example for "Tree" ("Continents, countries, regions and capitals") at https://query.wikidata.org/ but it gives "Unable to display result".
Sorry, there went something wrong with the deployment.
Quiddity added a comment.
@Jonas 3 things:
I tried running the example for "Tree" ("Continents, countries, regions and capitals") at https://query.wikidata.org/ but it gives "Unable to display result".
Also, this new feature needs to be documented at
gerritbot added a comment.
Change 354967 merged by jenkins-bot:
[wikidata/query/gui@master] Simple tree query visualization
https://gerrit.wikimedia.org/r/354967TASK DETAILhttps://phabricator.wikimedia.org/T152676EMAIL
Micru added a comment.
@Jonas I am very pleased to see you working on this, thank you! Here there is an example that I use often for maintenance:
http://tools.wmflabs.org/wikidata-todo/tree.html?q=Q18616576=279=en=list=4
And this one too:
gerritbot added a comment.
Change 354967 had a related patch set uploaded (by Jonas Kress (WMDE); owner: Jonas Kress (WMDE)):
[wikidata/query/gui@master] Simple tree query visualization
https://gerrit.wikimedia.org/r/354967TASK DETAILhttps://phabricator.wikimedia.org/T152676EMAIL
nichtich added a comment.
Have a look at https://www.npmjs.com/package/wikidata-taxonomy for some previous work about creation of hierarchies from Wikidata. The tool includes some additional information such as number of instances and number of sitelinks and additional parents. A tree
10 matches
Mail list logo