W3C home > Mailing lists > Public > public-html-comments@w3.org > February 2010

Re: HTML datatype for compat w/ rdf?

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 16 Feb 2010 10:29:37 +0200
Cc: public-html-comments@w3.org
Message-Id: <A0468A83-C79C-408E-A0A2-BBA99C7D9B3B@iki.fi>
To: nathan@webr3.org
(Disclaimer for this mailing list: This is not a response from the HTML WG.)

On Feb 16, 2010, at 00:44, Nathan wrote:

> In short, is there a dedicated datatype for HTML(5) which can be used
> within RDF; if not are there any plans to specify one?

I recommend parsing the HTML content into a tree according to the HTML parsing algorithm[1], applying the coercion to Infoset rules[2] and storing the resulting Infoset as an XMLLiteral in RDF.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#parsing
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#coercing-an-html-dom-into-an-infoset

Henri Sivonen
Received on Tuesday, 16 February 2010 08:30:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:03:59 UTC