无法通过SPARQL检索Wikidata项目
我试图搜索并获取具有特定标签的项目的ID: teodor bogdanov
。我可以通过在这里。
我还在这里复制了它:
SELECT distinct ?item ?itemLabel ?itemDescription WHERE{
?item ?label "Teodor Bogdanov".
}
félixanaut
有人可以帮助我解决此问题吗?先感谢您。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查询中有两个问题。三重模式中的谓词是一个变量,而它应该是常数,
rdfs:label
。它询问与“ Teodor Bogdanov”相关的所有项目和属性。第二个问题是缺少的语言标签。当这两个修复时,您会得到以下“FélixAnaut”的查询,而这种带有急性口音的拼写在英语Wikipedia中使用,在Wikidata中并非如此。
THere are two issues in your query. The predicate in your triple pattern is a variable, while it should be a constant,
rdfs:label
. It asks about all items and properties linked to "Teodor Bogdanov". The second issue is the missing language tag. When these two are fixed, you get the following queryFor "Félix Anaut", while this spelling with an acute accent is used in English Wikipedia, that's not the case in Wikidata.