Small example?
Try with and without ?

<TriX xmlns="http://www.w3.org/2004/03/trix/trix-1/";>
  <graph>
    <triple>
      <uri>http://example.org/Bob</uri>
      <uri>http://example.org/name</uri>
      <plainLiteral>Bob&#xc;</plainLiteral>
    </triple>
  </graph>
</TriX>

10:10:19 ERROR riot :: [line: 6, col: 29] XML error: ParseError at [row,col]:[6,29]
Message: Character reference "&#xc" is an invalid XML character.

The "Message:" line isn't from Jena.

ReaderTriX.java

        } catch (XMLStreamException ex) {
staxError(parser.getLocation(), "XML error: "+ex.getMessage()) ;
        }


(Jena 3.16.0ish) with JDK XML parser)

    Andy


On 12/07/2020 23:01, Martynas Jusevičius wrote:
Hi,

     riot --strict --stop --syntax=TriX --output=nq

gives me

21:40:07 ERROR riot                 :: [line: 2943360, col: 62] XML
error: ParseError at [row,col]:[2943360,62]

That line is in a <plainLiteral>and looks like this:

- http://sprout.ics.uci.edu/past_projects/gac/index.html&#xc;&#xD;

I'm guessing it's the &#xc; entity that riot is failing on? It's the Form Feed:
https://www.codetable.net/hex/c
&#xD; is found on other (previous) lines so it shouldn't be it.

Is &#xc; entity not allowed? The TriX output was produced by Saxon.

JENA_VERSION=3.10.0

Reply via email to