SPARQL query using rdf:resource

View: New views
2 Messages — Rating Filter:   Alert me  

SPARQL query using rdf:resource

by randal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: SPARQL query using rdf:resource

by randal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

$e ical:transp <http://www.w3.org/2002/12/cal/ical#transparent>

did the job.

On Feb 19, 2008 2:03 AM, randal <rdgoite@...> 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'/>
   </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?