Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for casting in FILTER -- e.g. xsd:dateTime(?s) #37

Closed
jmandel opened this issue Jul 11, 2012 · 0 comments · Fixed by #38
Closed

No support for casting in FILTER -- e.g. xsd:dateTime(?s) #37

jmandel opened this issue Jul 11, 2012 · 0 comments · Fixed by #38

Comments

@jmandel
Copy link
Contributor

jmandel commented Jul 11, 2012

I'm having trouble with queries that attempt to cast a plain literal as an xsd:dateTime. For example:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sp: <http://smartplatforms.org/terms#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT  ?fill_date
WHERE {
  ?m rdf:type sp:Medication .
  ?m sp:fulfillment ?fill.
  ?f dcterms:date ?fill_date.  
  FILTER( xsd:dateTime(?fill_date) > "2009-01-01T00:00:00Z"^^xsd:dateTime )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant