Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between Wikidata Graph Builder and WDQS #9

Open
jaygray0919 opened this issue Feb 15, 2023 · 0 comments
Open

Difference between Wikidata Graph Builder and WDQS #9

jaygray0919 opened this issue Feb 15, 2023 · 0 comments

Comments

@jaygray0919
Copy link

I have this Wikidata query:

SELECT ?root_name ?parent_name ?child_name WHERE
{
 VALUES ?root_name {"Brassica rapa"}
 ?root wdt:P225 ?root_name .
 ?child wdt:P171+ ?root .
 ?child wdt:P171 ?parent .
 ?child wdt:P225 ?child_name .
 ?parent wdt:P225 ?parent_name .
 SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
}

serialized here:
https://query.wikidata.org/#SELECT%20%3Froot_name%20%3Fparent_name%20%3Fchild_name%20WHERE%0A%7B%0A%20VALUES%20%3Froot_name%20%7B%22Brassica%20rapa%22%7D%0A%20%3Froot%20wdt%3AP225%20%3Froot_name%20.%0A%20%3Fchild%20wdt%3AP171%2B%20%3Froot%20.%0A%20%3Fchild%20wdt%3AP171%20%3Fparent%20.%0A%20%3Fchild%20wdt%3AP225%20%3Fchild_name%20.%0A%20%3Fparent%20wdt%3AP225%20%3Fparent_name%20.%0A%20SERVICE%20wikibase%3Alabel%20%7Bbd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20%7D%0A%7D

When using
display results: treemap
WD produces a structured hierarchy

Similarly
display results: dimensions
plots the tree

When I use the above query on Wikidata Graph Builder, I see the error message
Unable to load graph data
me.item is undefined

Is this user-error?
Is there a working WGB query that will display the child items for the parent root_name?

Thanks for advice here.
/jay

@jaygray0919 jaygray0919 changed the title Difference between Wikidata graph Builder and WDQS Difference between Wikidata Graph Builder and WDQS Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant