Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-132

Bring bigdata RDF/XML parser up to openrdf 2.6.3.

    Details

      Description

      Bigdata bundles a modified version of the openrdf RDF/XML parser. The bundled version supports the interchange of statement identifiers and can indicate whether a statement is inferred, explicit, or an axiom.

      This code needs to be updated to capture changes in the openrdf version of the parser.

      The openrdf test suite needs to be integrated so we can capture regressions which it can detect.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        I have caught up the RDF/XML parser with the changes in openrdf from 2.0 through 2.6.3.

        The RDF/XML parser/writer test suite is now integrated. In order to avoid a dependency on xmlsec, I have imported and modified the RDFXMLParserTestCase. That class used the xmlsec library in its CanonXMLValueFactory class. One test fails with that dependency removed which would otherwise pass. The test failure looks like this:

        (http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xml-literal-namespaces/test001.rdf#John_Smith, http://my.example.org/Name, "
              <html:h1 xmlns:html="http://NoHTML.example.org">
                <b xmlns="http://www.w3.org/1999/xhtml">John</b>
              </html:h1>
           "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>)
        Actual:
        (http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xml-literal-namespaces/test001.rdf#John_Smith, http://my.example.org/Name, "
              <html:h1 xmlns:html="http://NoHTML.example.org" xmlns="http://www.w3.org/1999/xhtml">
                <b>John</b>
              </html:h1>
           "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>)
        

        I have written to the sesame-general list to see if someone can clarify why XML canonicalization was being used. We could probably develop an alternative workaround which just strips out the offending attribute:

        xmlns="http://www.w3.org/1999/xhtml
        

        Committed revision r6051.

        Show
        bryanthompson bryanthompson added a comment - I have caught up the RDF/XML parser with the changes in openrdf from 2.0 through 2.6.3. The RDF/XML parser/writer test suite is now integrated. In order to avoid a dependency on xmlsec, I have imported and modified the RDFXMLParserTestCase. That class used the xmlsec library in its CanonXMLValueFactory class. One test fails with that dependency removed which would otherwise pass. The test failure looks like this: (http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xml-literal-namespaces/test001.rdf#John_Smith, http://my.example.org/Name, " <html:h1 xmlns:html="http://NoHTML.example.org"> <b xmlns="http://www.w3.org/1999/xhtml">John</b> </html:h1> "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>) Actual: (http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-xml-literal-namespaces/test001.rdf#John_Smith, http://my.example.org/Name, " <html:h1 xmlns:html="http://NoHTML.example.org" xmlns="http://www.w3.org/1999/xhtml"> <b>John</b> </html:h1> "^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>) I have written to the sesame-general list to see if someone can clarify why XML canonicalization was being used. We could probably develop an alternative workaround which just strips out the offending attribute: xmlns="http://www.w3.org/1999/xhtml Committed revision r6051.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: