W3C home > Mailing lists > Public > public-html@w3.org > May 2009

Re: HTML 4 Profile for RDFa

From: Ben Adida <ben@adida.net>
Date: Thu, 14 May 2009 14:12:34 -0700
Message-ID: <4A0C8942.8050002@adida.net>
To: public-html@w3.org

Tom Morris writes:
> RDFa minus XML Literals is probably no bad thing. I can't see a
> compelling use for XML Literals in RDFa anyhow. There's a reason why
> there's a TODO line in my RDF library that says "the thought of XML
> literals makes me want to wretch".

It's easy to use RDFa without XML Literals if you don't want them.

Option #1: add RDFa to elements that contain only text, no further 
markup, e.g.

   <span property="dc:title">My Blog Post</span>

Option #2: if that's not possible because of existing markup, use 
datatype="" on the RDFa element:

   <span property="dc:title" datatype="">My <em>blog</em> post</span>

which gives the triple:

   <> dc:title "My blog post" .

There are some good reasons to keep support for XML Literals in RDFa 
(sometimes you want the <sup> and <em> in there), but we also wanted to 
ensure that it was easy to do away with them if you need to.

-Ben
Received on Thursday, 14 May 2009 21:13:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:03 UTC