SPARQL query issue with dateTime

14 views
Skip to first unread message

iesn...@gmail.com

unread,
Sep 1, 2016, 3:35:07 AM9/1/16
to RapidMiner Linked Open Data Extension
Hi,

I am using the LOD 1.5.12 version, along with the RapidMiner Studio 7.1.0. version.

I am having problems inserting queries related with dateTimes in the SPARL Data Importer module. My query is the following one:

SELECT *
FROM <urn:calendarData>
WHERE {
?instant <http://www.w3.org/2006/time#hasDateTimeDescription> ?dtdesc.
...
?dtdesc <http://www.w3.org/2006/time#inXSDDateTime> ?xsddt.
FILTER (

<http://www.w3.org/2001/XMLSchema#dateTime>(?xsddt) <=
<http://www.w3.org/2001/XMLSchema#dateTime> ("2016-04-29T05:00:00")
&&
<http://www.w3.org/2001/XMLSchema#dateTime>(?xsddt) >=
<http://www.w3.org/2001/XMLSchema#dateTime>("2016-04-30T08:00")
)
}

This query is not working. The error code I am receiving is the following one:
Message: Lexical error at line 18, column 85. Encountered: "\n" (10), after : "\"2016-04-08T00 )"

I have tried this same query in a browser (SPARL endpoint) and it works.

I have tried many other queries and I realised that the query works as long as I only introduce one dateTime. For example, this query works and returns the expected triples (note that only one dateTime is used):

FILTER (

<http://www.w3.org/2001/XMLSchema#dateTime>(?xsddt) <=
<http://www.w3.org/2001/XMLSchema#dateTime> ("2016-04-29T05:00:00")
&&
<http://www.w3.org/2001/XMLSchema#dateTime>(?xsddt) >=
<http://www.w3.org/2001/XMLSchema#dateTime>("2016-04-30")
)
}

Should I use other format to query dateTimes in the RapidMiner LOD Extension?

Thanks in advance,
Iker


PS: Sorry, but I wasn't able to format the message the way I wanted. I hope it is understandable enough.

Reply all
Reply to author
Forward
0 new messages