Wikidata SPARQL query with label not working

只谈情不闲聊 提交于 2019-12-11 04:11:20

问题


I can't understand why with this query I can't get movement and genre labels:

SELECT DISTINCT ?item ?itemLabel ?value ?inception ?creatorLabel ?image
                 (group_concat(?genreLabel; separator=", ") AS ?genres)
                 (group_concat(?movementLabel; separator=", ") AS ?movements)
WHERE {
  ?item wdt:P4610 ?value;
        wdt:P18 ?image.  #with an image
  OPTIONAL { ?item wdt:P571 ?inception; #optionally with creationdate
            wdt:P170 ?creator; #Optionally with creator
            wdt:P136 ?genre;
            wdt:P135 ?movement.
           }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "it,[AUTO_LANGUAGE]"}
} GROUP BY ?item ?itemLabel ?image ?value ?inception ?creatorLabel
ORDER BY ?item

I've tried in many ways, but it seems it's always wrong.

来源:https://stackoverflow.com/questions/53555442/wikidata-sparql-query-with-label-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!