[redland-dev] Does Rasqal support xsd:dataType?
Dave Beckett
dave at dajobe.org
Tue Apr 25 04:05:29 BST 2006
Hyunki Kim wrote:
> Dear members,
>
> Many thanks to Andy and Christopher.
>
> According to Andy's comments, I fixed the SPARQL query statement and the
> sample RDF document as follows:
[snipped]
> However, I found that the current version of Redland does not support the
> DATATYPE operator (http://librdf.org/rasqal/TODO.html).
> In addition, I had no results when I issued the query to Redland mysql
> storage.
> Contary to the Redland mysql storage, when I queried to memory storage, I
> had a result.
> I would appreciate any kind of hints.
> Thanks.
Seems to work for me with the last released rasqal 0.9.11:
$ roqet --version
0.9.11
$ roqet --source data.rdf query.rq
roqet: Querying from file query.rq
roqet: Query has a variable bindings result
result:
[d=string("2006-04-14T16:33:01\n"^^<http://www.w3.org/2001/XMLSchema#dateTime>)]
roqet: Query returned 1 results
and the last released redland:
$ rdfproc --version
1.0.3
$ rdfproc test parse data.rdf
rdfproc: Parsing URI file:///Users/dajobe/data.rdf with default parser
$ rdfproc test query sparql - "`cat query.rq`"
rdfproc: Query returned bindings results:
result: [d=2006-04-14T16:33:01
^^<http://www.w3.org/2001/XMLSchema#dateTime>]
rdfproc: Query returned 1 results
where data.rdf and query.rq are the files you gave in your email.
Maybe you've got an older version of redland & rasqal?
( you can try the newer Subversion code at http://librdf.org/query too )
Dave
More information about the redland-dev
mailing list