[Mulgara-general] Mulgara xsd:date
12470 at ufp.pt
12470 at ufp.pt
Tue Mar 13 22:32:57 UTC 2007
Hi,
This is my second post on the same topic, but I really don't know what
is the problem on working in dates on mulgara.
First, I really appreciate other doc resources because the actual
don't give me enough knowledge to do queries with dates or other
datatype.
I read all the docs and I have done the follow.
My rdf file is like this :
<rdf:RDF
xmlns:sakai="http://elearning.ufp.pt/events/opc2#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" >
<rdf:Description rdf:nodeID="A0">
<sakai:date
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2005-12-30
17:45:07.0</sakai:date>
<rdf:type rdf:resource="http://elearning.ufp.pt/events/opc2#SAKAI_EVENT"/>
<sakai:event>pres.end</sakai:event>
<sakai:event_code>m</sakai:event_code>
<sakai:session_id>023e6ea7-f3ea-4feb-008d-aa7feb91e49f</sakai:session_id>
<sakai:ref>/presence/470f36f8-19e6-44ed-00d5-b031baee54bd-presence</sakai:ref>
</rdf:Description>
I load this file into mulgara and then use the following alias on iTQL
console:
set time on ;
alias <http://mulgara.org/mulgara#> as mulgara;
alias <http://elearning.ufp.pt/events/opc2#> as sakai;
alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdf;
alias <http://www.w3.org/2000/01/rdf-schema#> as rdfs;
alias <http://www.w3.org/2001/XMLSchema#> as xsd;
then created the xsd model like this:
create <rmi://localhost/server1#xsd>
<http://mulgara.org/mulgara#XMLSchemaModel>;
And try to do a simple query :
select $doc from <rmi://localhost/server1#sakai_events>
where $doc <sakai:event_date> $date
and $date <mulgara:before> '2000-01-01' in <rmi://localhost/server1#xsd>
and $date <mulgara:after> '1899-12-31' in <rmi://localhost/server1#xsd>;
But it always return no results.
I know that xsd:date is not equal to the dates I used. But I really
don't know how to solve my doubt.
If anyone could give me a link, doc, explanation even a simple one I
will really appreciate.
Thanks
Victor Magalhães
----------------------------------------------------------------
Enviado por https://webmail.ufp.pt
More information about the Mulgara-general
mailing list