Given this test data with an xsd:gYearMonth :
<http://exemple.fr/agent/123> <http://exemple.fr/ontologie/date> "2021-12"^^<http://www.w3.org/2001/XMLSchema#gYearMonth> <http://exemple.fr/graphe/testGraphe> .
This SPARQL query that compares it with xsd:gYear returns nothing in GraphDB 9.10 :
SELECT *
WHERE {
?x <http://exemple.fr/ontologie/date> ?date .
FILTER(?date < "2023"^^<http://www.w3.org/2001/XMLSchema#gYear>)
}
I am aware that the SPARQL spec only defines the comparison operators for xsd:dateTime, but I am surprised that no extension has been done on this. I read here that it was done in RDF4J in "2016"^^xsd:gYear :-)
Does GraphDB support comparison between dates using different datatypes ?
Thanks !