Latest 3.x Release
This documentation covers the latest release of the legacy 3.x Fedora. Looking for another version? See all documentation.
Fedora 4 Development
Looking for Fedora's currently active development?
Question
I want to know how to query the Resource Index using the date. What is the predicate I can use in iTQL for date comparison ?
Answer
To do this, you'll need to query against a datatyping model. The full documentation for this is here: http://docs.mulgara.org/itqloperations/datatypingmodels.html#o265
Fedora automatically creates a <#xsd> datatyping model, so you will need to use something like this:
select $object from <#ri> where $object <fedora-model:hasModel> <info:fedora/MY-CModel> and $object <fedora-view:lastModifiedDate> $modified and $ modified <mulgara:after> '2010-02-22T12:54:59.265Z'^^<xml-schema:dateTime> in <#xsd>
Mulgara does not parse time zones for dateTime.