W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > February 2008

GetN3 Bookmarklet, and subject processing

From: Ed Summers <ehs@pobox.com>
Date: Fri, 22 Feb 2008 11:42:08 -0500
Message-ID: <f032cc060802220842w2faf1103q5de9fb4df7bcc858@mail.gmail.com>
To: "public-rdf-in-xhtml-tf. w3. org" <public-rdf-in-xhtml-tf@w3.org>

I've been trying out the RDFa GetN3 bookmarklet [1] and have a
question about an example I pulled from the Syntax and Processing doc
[2]. Basically I put this html up at

  <head><title>Jo's Friends and Family Blog</title></head>
    <p instanceof="cal:Vevent">
      I'm holding
      <span property="cal:summary">
        one last summer Barbecue
      <span property="cal:dtstart" content="20070916T1600-0500"
        September 16th at 4pm

I directed my browser there and then clicked on the GetN3 bookmarklet
and got the following triples:

_:n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2002/12/cal/ical#Vevent> .
_:n0 <http://www.w3.org/2002/12/cal/ical#summary> "
        one last summer Barbecue
      " .
_:n0 <http://www.w3.org/2002/12/cal/ical#dtstart>
"20070916T1600-0500"^^<http://www.w3.org/2001/XMLSchemadatetime> .

I was expecting the subjects to be <http://inkdroid.org/tmp/ex5.xhtml>
instead of blank nodes (_:n0). Perhaps I am misinterpreting the
processing instructions?

# the [base] is set to either the URL of the document or the value
specified in the base element, if present;
# the [parent subject] is set to the [base] value;


When triples are created they will always be in relation to a subject
resource which is provided either by [new subject] (if there are rules
on the current element that have set a subject) or [parent subject],
as passed in via the [evaluation context].

Or maybe GetN3 needs to account for this step in the processing?


[1] http://www.w3.org/2006/07/SWD/RDFa/impl/js/
[2] http://www.w3.org/TR/rdfa-syntax/#sec_2.2.
Received on Friday, 22 February 2008 16:42:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:55 UTC