- From: Ed Summers <ehs@pobox.com>
- Date: Fri, 22 Feb 2008 11:42:08 -0500
- 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
http://inkdroid.org/tmp/ex5.xhtml:
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:cal="http://www.w3.org/2002/12/cal/ical#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<head><title>Jo's Friends and Family Blog</title></head>
<body>
<p instanceof="cal:Vevent">
I'm holding
<span property="cal:summary">
one last summer Barbecue
</span>,
on
<span property="cal:dtstart" content="20070916T1600-0500"
datatype="xsd:datetime">
September 16th at 4pm
</span>.
</p>
</body>
</html>
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?
//Ed
[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