A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ontodev/robot/issues/1016 below:

Report command fails for some textual content when the output format is JSON · Issue #1016 · ontodev/robot · GitHub

Having input.owl:

<rdf:RDF
     xmlns:obo="http://purl.obolibrary.org/obo/"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <owl:Ontology rdf:about="http://test.org/test"/>

    <owl:ObjectProperty rdf:about="http://test.org/test#A">
        <obo:IAO_0000115>skos:Concept interferes with &quot;quoted text&quot;</obo:IAO_0000115>
    </owl:ObjectProperty>
</rdf:RDF>

and running

java -jar robot.jar report --input input.owl --output output.json

ends up with

-----------------
ERROR:      4
WARN:       0
INFO:       1
while parsing a block collection
 in 'reader', line 19, column 9:
            - "skos:Concept interferes with  ... 
            ^
expected <block end>, but found '<scalar>'
 in 'reader', line 19, column 44:
     ... skos:Concept interferes with \\"quoted text\\""
                                         ^

 at [Source: (StringReader); line: 19, column: 44]
Use the -vvv option to show the stack trace.
Use the --help option to see usage information.

Looks like some correlation inside the text field - removing the skos: prefix or the escaped double quotes makes things working. Also, textual output format (not JSON) works too.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4