1

I was playing with the SPARQL query examples. The query 'Whose birthday is today' always ends up in a QueryTimeoutException (Query deadline is expired).

However If I change the birthdate property P569 to the death date property P570, the query runs without throwing an exception.

Is there something to do to have the birth query successfully executed?

4

1 回答 1

2

我认为查询对于 wikibase 服务来说可能过于繁重。如果你只是尝试通过人的属性获得所有属性,你就会成功。我尝试了以下方法:

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT distinct ?name (year(?date) as ?year)  WHERE {   
    ?entityS wdt:P569 ?date .
    ?entityS wdt:P1477 ?name.
    FILTER (datatype(?date) = xsd:dateTime) 
    FILTER (month(?date) = month(now()))
    FILTER (day(?date) = day(now()))
 } 
于 2015-12-11T16:07:15.617 回答