zotero/translators — Issue #81: Escaping of note content in RDF export
Author: ajlyon
Created: 2011-12-21 06:47:42+00:00
State: open
Labels: Minor

[People in the TEI world](http://sourceforge.net/mailarchive/forum.php?thread_name=4EF054A2.2030508%40bleakhall.u-net.com&forum_name=exist-teixml) have noticed that our RDF export makes a mess of HTML tags in item data:

<h6>1256 to 1272</h6>
<p>&nbsp;</p>
<p>page 32&nbsp; roll 1218a 1272 John the Clerk against William de Grendon regarding the warrant of 8 acres</p>
<p>page 40 ditto</p>
<p>&nbsp;p108 roll 144 1269 Claim by Margery who was the wife of Henry of Ashbourne&nbsp; re dower from various individuals including Stephen of Ireton the third part of an acre of meadow in Snelston, and ?( William de ) Hulton in Clifton .&nbsp; William de hylton gives up dower amongst others.&nbsp; Makes one wonder whether&lt;per corresp='#williamofhultonclerk' role='m'&gt;William de Hulton&lt;/per&gt; and William the clerk are the same person.</p>
<p>page 109 ditto Roger is the son of Henry of Ashbourne and is in the custody of Margaret countess Derby&nbsp; and lands in the custody of Edmund king's son</p>
<p>page 9&nbsp; and 10 1258 Information re Henry of Ashbourne.&nbsp; Holds a court. Case of villeinage.&nbsp; Confirms Henry heir of&nbsp; Robert of Ashbourne.&nbsp; Stephen of Ireton one of the pledges for Henry.</p>

We are presumably doing the same with things like `` in item titles. A proper solution to this, as suggested in the linked thread on eXist-TEIXML, is to namespace those tags. We would also need to replace non-XML entities like ` `.

Unfortunately, this behavior has its roots in the underlying Tabulator RDF engine; I don't how we'd convince _it_ to handle this with namespacing.

I would like help on this, if we have anyone still on the team who has experience with the RDF engine.