(this is a dupe of a discussion at sematicoverflow.com, see here:
http://www.semanticoverflow.com/questions/947/dbpedia-sparql-endpoint-xsddate-comparison-weirdness)
I'm trying to find persons (soccer players) in DBPedia by name and
birthdate. This returns one result (expected):
SELECT ?player ?birth
{
?player a dbpedia-owl:SoccerPlayer .
?player foaf:name "Daniel Agger"@en .
?player dbpedia2:birth ?birth .
FILTER(?birth <= "1984-12-13"^^xsd:date) .
FILTER(?birth >= "1984-12-11"^^xsd:date) .
}
Limit 10
This returns no results:
SELECT ?player ?birth
{
?player a dbpedia-owl:SoccerPlayer .
?player foaf:name "Daniel Agger"@en .
?player dbpedia2:birth ?birth .
FILTER(?birth <= "1984-12-12"^^xsd:date) .
FILTER(?birth >= "1984-12-12"^^xsd:date) .
}
Limit 10
Neither does this:
SELECT ?player ?birth
{
?player a dbpedia-owl:SoccerPlayer .
?player foaf:name "Daniel Agger"@en .
?player dbpedia2:birth ?birth .
FILTER(?birth = "1984-12-12"^^xsd:date) .
}
Limit 10
Is there something about the semantics of xsd:date comparison I don't
get or is this a bug?
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion