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

Re: ISSUE-25: default datatype for literals

From: Ivan Herman <ivan@w3.org>
Date: Tue, 19 Jun 2007 10:39:15 +0200
Message-ID: <46779633.4010400@w3.org>
To: Ben Adida <ben@adida.net>
CC: RDFa <public-rdf-in-xhtml-tf@w3.org>, SWD WG <public-swd-wg@w3.org>


Ben Adida wrote:
> 
> Issue 25:
> http://www.w3.org/2006/07/SWD/track/issues/25
> 
> What should the default datatype of literals be in RDFa? We've talked
> about this one fairly in depth, and we have general agreement from a
> past telecon, including a nice flowchart diagram put together by
> Michael [1]. In addition, there was just a recent discussion about what
> the value of @datatype should be [2].
> 
> The current proposal, as it stands, is as follows (I am duplicating work
> done by Michael just to freeze this in time):
> 
> ==============
> 
> A) @datatype is explicitly specified.
> 
> The literal has the datatype specified. @datatype="" means a plain
> literal, which @lang affects as expected.
> 
> If @datatype="" is specified and the literal contains markup, the markup
> is stripped according to typical textContent rules.
> 
> B) @datatype is not explicitly specified.
> 
>   B.1) @content is specified.
> 
>   The literal is the value of @content and is a plain literal, which
> @lang affects as expected.
> 
>   B.2) @content is not specified.
> 
>     B.2.a) the literal value contains markup, e.g. "<b>foobar</b>"
> 
>     The literal is of type rdf:XMLLiteral.
> 
>     B.2.b) the literal value does not contain markup
> 
>     The literal is of type plain literal, which @lang affects as expected.
> 
> ==============
> 
> If this is not your understanding of what we agreed upon, or if you have
> found reason to disagree with this, speak now! And if you like it, speak
> now anyways, at least to say "+1."
> 

+1 :-)

Ivan


> -Ben
> 
> 
> [1] http://www.w3.org/2006/07/SWD/wiki/RDFa/LiteralObject
> [2] http://lists.w3.org/Archives/Public/public-rdf-in-xhtml-tf/2007Jun/0028
> 

-- 

Ivan Herman, W3C Semantic Web Activity Lead
URL: http://www.w3.org/People/Ivan/
PGP Key: http://www.cwi.nl/%7Eivan/AboutMe/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Tuesday, 19 June 2007 08:39:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:23 UTC