openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
863 stars 210 forks source link

xsd:int is not promoted to xsd:integer in filters #381

Open knoan opened 9 years ago

knoan commented 9 years ago

The following query won't return anything from the http://dbpedia.org/sparql endpoint (Virtuoso 7.20).

prefix dbo: <http://dbpedia.org/ontology/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

select * {

  ?a a dbo:Automobile; dbo:productionStartDate ?s

  bind( year(?s) as ?y )
  filter ( ?y >= '2005'^^xsd:int )

} limit 10

'2005'xsd:int is not promoted to an xsd:integer in order to match the return type of year(?s).

HughWilliams commented 9 years ago

we are looking into this ...