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

Reification in XHTML2

From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Date: Thu, 09 Sep 2004 18:26:26 +0100
Message-ID: <41409242.1090004@hplb.hpl.hp.com>
To: Jeremy Carroll <jjc@hplb.hpl.hp.com>
CC: public-rdf-in-xhtml-tf@w3.org



Using

http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-meta.html


If we have a triple

eg:a eg:p eg:o .

it's reification is

eg:s eg:p eg:o .
eg:r rdf:type rdf:Statement .
eg:r rdf:subject eg:s .
eg:r rdf:predicate eg:p .
eg:r rdf:object eg:o .

Omitting namespace declarations, ..., and this probably needs fixing up 
a bit ...
This can be encoded as:

<head>
   <link  about="http://example.org/#s"
          property="eg:p"
          resource="http://example.org/#o" />

   <link  about="http://example.org/#r"
          property="rdf:type"
          resource="http://www.w3.org/...rdf-ns#Statement" />
   <link  about="http://example.org/#r"
          property="rdf:subject"
          resource="http://example.org/#s" />ns#Statement" />
   <link  about="http://example.org/#r"
          property="rdf:predicate"
          resource="http://example.org/#p" />
   <link  about="http://example.org/#r"
          property="rdf:object"
          resource="http://example.org/#o" />
</head>

This is harder if either the subject or object is anonymous - I suspect 
with the reverse link it can be done.
It is not possible to create a reification where the node for the 
reified triple (eg:r above) is replaced with a blank node. This is a 
relative of the issue with blank nodes in my previous post, and could be 
fixed in the same way (although a specific proposal is needed)

To reify a <meta> element with a literal object, the object triple of 
the reification will also have a literal object, and hence need a <meta> 
element.

Jeremy
Received on Thursday, 9 September 2004 17:26:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:59 GMT