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">
<p>An <em>example</em> of some <strong>HTML</strong></p>
</dc:description>
...
</rdf:RDF> - Related Actions Items:
ACTION-124 on Gavin Carothers to Raise issue around formated text literals - due 2011-12-07, closed- Related emails:
- Re: HTML datatype (from david@3roundstones.com on 2012-05-03)
- Re: HTML datatype (from gavin@carothers.name on 2012-05-02)
- HTML datatype (from richard@cyganiak.de on 2012-05-02)
- 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:29Display change log