- From: randal <rdgoite@gmail.com>
- Date: Mon, 18 Feb 2008 10:03:59 -0800 (PST)
- To: www-rdf-logic@w3.org
Here's a snippet from an rdf file (converted from .ics to rdf):
<Vevent>
<created>20080217T132152Z</created>
<lastModified rdf:parseType='Resource'>
<dateTime>2008-02-17T16:32:09Z</dateTime>
</lastModified>
<dtstamp rdf:parseType='Resource'>
<dateTime>2008-02-17T16:39:51Z</dateTime>
</dtstamp>
<uid>db12e1de-7934-4fd9-939a-ace7bd01795d</uid>
<summary>Surely available</summary>
<dtstart rdf:parseType='Resource'>
<dateTime>2008-02-20T16:00:00</dateTime>
<tzid>/mozilla.org/20070129_1/Asia/Manila</tzid>
</dtstart>
<dtend rdf:parseType='Resource'>
<dateTime>2008-02-20T17:00:00</dateTime>
<tzid>/mozilla.org/20070129_1/Asia/Manila</tzid>
</dtend>
<transp
rdf:resource='http://www.w3.org/2002/12/cal/ical#transparent'/>
</Vevent>
I want to query my rdf calendar about the dates of transparent and opaque
events. However I'm not sure how to deal with rdf:resource on SPARQL.
Here's my query so far:
PREFIX ical: <http://www.w3.org/2002/12/cal/ical#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT $s WHERE{
$e a ical:Vevent .
$e ical:dtstart $d .
$d ical:dateTime $s .
}
This is will just display all dateTimes of start dates of all events. I want
to get all the dateTime of dtstarts of a transparent event. I hope someone
can help me on this...
Thanks.
--
View this message in context: http://www.nabble.com/SPARQL-query-using-rdf%3Aresource-tp15547080p15547080.html
Sent from the w3.org - www-rdf-logic mailing list archive at Nabble.com.
Received on Monday, 18 February 2008 19:21:13 UTC