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

sparqlRequest bug involving wdk.simplifySparqlResults? #5

Closed
maxlath opened this issue Aug 1, 2016 · 2 comments
Closed

sparqlRequest bug involving wdk.simplifySparqlResults? #5

maxlath opened this issue Aug 1, 2016 · 2 comments

Comments

@maxlath
Copy link

maxlath commented Aug 1, 2016

great module!
If you have an example where wdk.simplifySparqlResults crashes as suggested by your comment, I would be happy to have a look at it :)

@nichtich
Copy link
Owner

nichtich commented Aug 2, 2016

Try this with wdsparql --simplify. The query is not optimized but valid:

SELECT ?item ?itemLabel ?broader ?parents
WHERE
{
    {
        SELECT ?item (count(distinct ?parent) as ?parents) {
            ?item wdt:P279* wd:Q1
            OPTIONAL { ?item wdt:P279 ?parent }
        } GROUP BY ?item
    }
    SERVICE wikibase:label {
        bd:serviceParam wikibase:language "en" .
    }
}

@maxlath
Copy link
Author

maxlath commented Aug 2, 2016

ok, I created an issue in the wikidata-sdk repo, closing here

@maxlath maxlath closed this as completed Aug 2, 2016
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

2 participants