ISSUE-81: How to represent HTML formated text in an RDF Literals

HTML/XHTML Literals

How to represent HTML formated text in an RDF Literals

State:
CLOSED
Product:
Raised by:
Gavin Carothers
Opened on:
2011-12-21
Description:
It should be possible to represent HTML formated text in an RDF Literal. For example:

<example> dc:description """<p>An <em>example</em> of some <strong>HTML</strong></p>""" .

In RDF 2004 this was accomplished with XMLLiteral, however the lack of adoption of XHTML and issues with XMLLiterals have lead to a lack of adoption. XMLLiteral is likely to be optional in RDF 2012. Some recommended mechanism for HTML/XHTML literals is necessary. There is also some confusion with dealing with language and formatted literals.

Current methods in use today:

"""<p>An <em>example</em> of some <strong>HTML</strong></p>"""^^rdf:XMLLiteral

<rdf:RDF>
...
<dc:description rdf:parseType="Literal"><p>An <em>example</em> of some <strong>HTML</strong></p></dc:description>
...
</rdf:RDF>

"""<p>An <em>example</em> of some <strong>HTML</strong></p>"""@en

<rdf:RDF>
...
<dc:description xml:lang="en">
&lt;p&gt;An &lt;em&gt;example&lt;/em&gt; of some &lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;
</dc:description>
...
</rdf:RDF>
Related Actions Items:
Related emails:
  1. Re: HTML datatype (from david@3roundstones.com on 2012-05-03)
  2. Re: HTML datatype (from gavin@carothers.name on 2012-05-02)
  3. HTML datatype (from richard@cyganiak.de on 2012-05-02)
  4. RDF-ISSUE-81 (HTML/XHTML Literals): How to represent HTML formated text in an RDF Literals (from sysbot+tracker@w3.org on 2011-12-21)

Related notes:

Gavin said we can close this as a duplicate of ISSUE-63: http://lists.w3.org/Archives/Public/public-rdf-wg/2012May/0062.html

Richard Cyganiak, 3 May 2012, 10:00:29

Display change log ATOM feed


Guus Schreiber <guus.schreiber@vu.nl>, Chair, Ivan Herman <ivan@w3.org>, Sandro Hawke <sandro@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 81.html,v 1.1 2014-07-09 12:18:03 carine Exp $