- From: rdgoite <rdgoite@gmail.com>
- Date: Tue, 19 Feb 2008 04:21:04 +0800
- To: www-rdf-logic@w3.org
- Message-ID: <e6bf81b10802181221i404e7848k97a6fa60be310b0b@mail.gmail.com>
$e ical:transp <http://www.w3.org/2002/12/cal/ical#transparent> did the job. On Feb 19, 2008 2:03 AM, randal <rdgoite@gmail.com> wrote: > > 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'/<http://www.w3.org/2002/12/cal/ical#transparent%27/> > > > </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. > > > > -- Are you just a blade of the grass blown by the wind?
Received on Monday, 18 February 2008 20:25:28 UTC