我正在尝试检索有关某些人寿命的数据。这对于生活过一段时间的人来说是有问题的。例如毕达哥拉斯的数据集似乎有一个所谓的“空白节点” date of birth (P569)。但是这个空白节点引用了另一个节点earliest date (P1319),该节点具有我可以正常使用的数据。
但由于某种原因,我无法检索该节点。我的第一次尝试看起来像这样,但不知何故导致了一个完全空的结果集:
SELECT DISTINCT ?person ?name ?dateofbirth ?earliestdateofbirth WHERE {
?person wdt:P31 wd:Q5. # This thing is Human
?person rdfs:label ?name. # Name for better conformation
?person wdt:P569 ?dateofbirth. # Birthday may result in a blank node
?dateofbirth wdt:P1319 ?earliestdateofbirth # Problem: Plausbible Birth
}
Run Code Online (Sandbox Code Playgroud)
然后我发现了另一种语法,它建议将?person wdt:P569/wdt:P1319 ?earliestdateofbirth我上面所做的显式导航用作某种“快捷方式”语法,但这也以空结果集结束。
SELECT DISTINCT ?person ?name ?dateofbirth ?earliestdateofbirth WHERE {
?person wdt:P31 wd:Q5. # Is Human
?person …Run Code Online (Sandbox Code Playgroud)