ISSUE-2 (Fwd: Comment on RDF 1.1: use case for HTML5 data type)

Hi all,

we had an issue ISSUE-2 about how to represent ITS in HTML5. The resolution
(its-* attributes) is also useful for adding ITS metadata into RDF of
version 1.1. (upcoming), since RDF 1.1. will have an HTML5 data type for
literals. That data type will allow to use ITS e.g. in labels, e.g. (taken
from a SKOS example)

ex:pineapples
skos:definition
"The fruit of plants of the family <span
its-locNote='...'>Bromeliaceae</span>";

See below the resolution for the related RDF 1.1 issue.

Felix

---------- Forwarded message ----------
From: Ivan Herman <ivan@w3.org>
Date: 2012/5/16
Subject: Re: Comment on RDF 1.1: use case for HTML5 data type
To: Felix Sasaki <fsasaki@w3.org>
Cc: public-rdf-comments@w3.org, Richard Cyganiak <richard@cyganiak.de>


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








-- 
Felix Sasaki
DFKI / W3C Fellow

Received on Wednesday, 16 May 2012 22:54:41 UTC