W3C home > Mailing lists > Public > public-rdfa@w3.org > October 2009

Re: Carrying all of a resource's metadata as RDFa?

From: Toby Inkster <tai@g5n.co.uk>
Date: Thu, 29 Oct 2009 12:45:00 +0000
To: "Hondros, Constantine" <Constantine.Hondros@wolterskluwer.com>
Cc: "public-rdfa@w3.org" <public-rdfa@w3.org>
Message-Id: <1256820300.25705.68.camel@ophelia2.g5n.co.uk>
On Thu, 2009-10-29 at 12:01 +0100, Hondros, Constantine wrote:
> It would seem logical to put this sort of metadata in the <head> of a
> document, but since that only allows a flat structure it seems to be
> impossible with RDFa. 

No, it's not impossible:

<head xmlns:xyz="http://example.com/"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <link about="_:a" typeof="xyz:Period"
        rev="xyz:applicablePeriod" resource="" />
  <meta about="_:a" property="xyz:startDate"
        content="blah" datatype="rdf:XMLLiteral" />
  <meta about="_:a" property="xyz:endDate"
        content="blah" datatype="rdf:XMLLiteral" />
</head>

Though I'm not sure why you'd want those dates to be XMLLiterals.
xsd:date seems like a more appropriate datatype.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 29 October 2009 12:45:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 29 October 2009 12:45:47 GMT