특정 인물의 수명에 대한 데이터를 검색하려고합니다. 얼마 전에 살았던 사람들의 경우 문제가됩니다. 예를 들어 Pythagoras은 date of birth (P569)
에 대해 "빈 노드"라고 불리는 것 같습니다. 그러나이 공백 노드는 다른 노드를 참조합니다. earliest date (P1319)
에는 잘 작동하는 데이터가 있습니다.Wikidata의 빈 노드에서 데이터 가져 오기
하지만 어떤 이유로 나는 해당 노드를 검색 할 수 없습니다. My first try looked like this하지만 completly 빈 결과 집합의 결과가 어떻게 든 것을 :
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
}
그때 내가 but this also ends with a empty result set 위 한 명시 적 탐색을위한 "바로 가기"- 구문의 일종으로 ?person wdt:P569/wdt:P1319 ?earliestdateofbirth
를 사용하여 제안 다른 구문을 발견했다.
SELECT DISTINCT ?person ?name ?dateofbirth ?earliestdateofbirth WHERE {
?person wdt:P31 wd:Q5. # Is Human
?person rdfs:label ?name. # Name for better conformation
?person wdt:P569/wdt:P1319 ?earliestdateofbirth.
}
그래서 어떻게 위키 데이터에 (내 경우 특히 초기의 생일에) 빈 노드가 참조하는 노드에 액세스합니까?
내가 바보가 된 기분,하지만 바로 그것을 발견 할 수 : 그것은 작동하지 않습니다,하지만 당신의 쿼리가 다른 무엇을합니까? 'FILTER'와'VALUES'는 그것을 더 많이 제한하는 것처럼 보입니다. –
조심스럽게보세요 :). 몇 분 후에 설명 하겠지만, 이제는 좋은 링크를 찾고 있습니다. –
아, 'P569'와'P1319'에 다른 접두어를 사용하고 있습니다. 좋은 링크가있어서 기쁩니다! –