W3C home > Mailing lists > Public > public-rdf-comments@w3.org > May 2012

Re: Comment on RDF 1.1: use case for HTML5 data type

From: Ivan Herman <ivan@w3.org>
Date: Wed, 16 May 2012 18:15:26 +0200
Cc: public-rdf-comments@w3.org, Richard Cyganiak <richard@cyganiak.de>
Message-Id: <B5E2C8F1-36C9-46E4-9432-5FFCE896831F@w3.org>
To: Felix Sasaki <fsasaki@w3.org>
Felix,

this is a response to you and the MLW-L Working Group about your request of adding an HTML Literal datatype to the new version of RDF:

http://lists.w3.org/Archives/Public/public-rdf-comments/2012Apr/0000.html

This mail is just to inform you that the RDF WG has accepted today to add this datatype to RDF. Here is the proposed (and accepted) proposal[1]

[[[

RDF provides for HTML content as a possible literal value. This allows markup in literal values. Such content is indicated in an RDF graph using a literal whose datatype is a special built-in datatype rdf:HTML.

rdf:HTML is defined as follows.

=== An IRI denoting this datatype ===
is 
http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML
.

=== The lexical space ===
is the set of Unicode strings.

=== The value space ===
is a set of DOM DocumentFragment nodes [DOM4:1]. Two DocumentFragment nodes A and B are considered equal if and only if the DOM method A.isEqualNode(B) [DOM4:2] returns true.

=== The lexical-to-value mapping ===
is defined as:

1. Let domnodes be the list of DOM nodes [DOM4:3] that result from applying the HTML fragment parsing algorithm [HTML5:1] to the literal's lexical form, without a context element.
2. Let domfrag be a DOM DocumentFragment [DOM4:1] whose childNodes attribute is equal to domnodes
3. Return domfrag.normalize() [DOM4:4]

]]]

(The original mail in [1] also referred to a canonical mapping, but that will not be used.)

The next draft of the RDF 1.1 Concept document will include this datatype.

Thanks!

Ivan


[1] http://lists.w3.org/Archives/Public/public-rdf-wg/2012May/0222.html

Tracker, this closes ACTION-172


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Wednesday, 16 May 2012 16:12:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 May 2012 16:12:16 GMT