any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Ansell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ANY23-302) rover JSON output is not valid
Date Wed, 11 Jan 2017 23:16:16 GMT

     [ https://issues.apache.org/jira/browse/ANY23-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Ansell resolved ANY23-302.
--------------------------------
    Resolution: Fixed
      Assignee: Peter Ansell

Fixed in version2 branch. When errors occurred, as they do with this extraction, the endDocument
was not always being called, resulting in an incomplete document syntax. Fixed by calling
endDocument in a finally block in SingleDocumentExtraction.

> rover JSON output is not valid
> ------------------------------
>
>                 Key: ANY23-302
>                 URL: https://issues.apache.org/jira/browse/ANY23-302
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: core, rover
>    Affects Versions: 1.1
>            Reporter: Lewis John McGibbney
>            Assignee: Peter Ansell
>             Fix For: 2.0
>
>
> When building and using [~p_ansell]'s version2 branch, I execute the following
> {code}
> core/target/appassembler/bin/any23 rover -l output.log -o extraction.txt -s https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html
> {code}
> This results in the following invalid JSON output
> {code}
> { "quads" : [[{ "type" : "uri", "value" : "https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html"},
"http://vocab.sindice.net/any23#viewport", {"type" : "literal", "value" : "width=device-width,initial-scale=1",
"lang" : "en", "datatype" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"}, null],
[{ "type" : "uri", "value" : "https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html"},
"http://vocab.sindice.net/any23#Content-Type", {"type" : "literal", "value" : "text/html;
charset=UTF-8", "lang" : "en", "datatype" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"},
null], [{ "type" : "uri", "value" : "https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html"},
"http://purl.org/dc/terms/title", {"type" : "literal", "value" : "Semantic Technologies Group
Semantic Repository Implementation (SRI) Use Cases & Requirements (UCR)", "lang" : null,
"datatype" : "http://www.w3.org/2001/XMLSchema#string"}, null], [{ "type" : "uri", "value"
: "https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html"}, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
{ "type" : "uri", "value" : "http://purl.org/ontology/bibo/Document"}, null], [{ "type" :
"uri", "value" : "https://esipfed.github.io/stc/UseCases/STCUseCasesAndRequirements.html"},
"http://purl.org/dc/terms/language", {"type" : "literal", "value" : "en", "lang" : null, "datatype"
: "http://www.w3.org/2001/XMLSchema#string"}, null]
> {code}
> This is not valid, it is missing the following closing tags {code}]}{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message