Closed maxlath closed 8 years ago
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" .
}
}
ok, I created an issue in the wikidata-sdk repo, closing here
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 :)