W3C home > Mailing lists > Public > public-rdf-wg@w3.org > December 2011

RDF-ISSUE-81 (HTML/XHTML Literals): How to represent HTML formated text in an RDF Literals

From: RDF Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Wed, 21 Dec 2011 16:22:25 +0000
To: public-rdf-wg@w3.org
Message-Id: <E1RdOvx-0005wk-Pu@tibor.w3.org>

RDF-ISSUE-81 (HTML/XHTML Literals): How to represent HTML formated text in an RDF Literals

http://www.w3.org/2011/rdf-wg/track/issues/81

Raised by: Gavin Carothers
On product: 

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>
Received on Wednesday, 21 December 2011 16:22:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:46 GMT