Andy Seaborne created JENA-643:
----------------------------------
Summary: rdfcopy causes an exception from new TTL writer.
Key: JENA-643
URL: https://issues.apache.org/jira/browse/JENA-643
Project: Apache Jena
Issue Type: Bug
Components: RIOT
Affects Versions: Jena 2.11.1
Reporter: Andy Seaborne
Priority: Minor
Fix For: Jena 2.11.2
Taken from:
http://mail-archives.apache.org/mod_mbox/jena-users/201402.mbox/%3CCAE94aYUeKhE2vQZVvVdyFzJ7h%2BetbEzq3GNYi0Js-hrathB4EA%40mail.gmail.com%3E
It depends on whether RIOT is used or not.
rdfcopy does:
{noformat}
model.getWriter(...).write(...,base)
{noformat}
and base is not resolved causing (debugged).
{noformat}
Unhandled exception:
org.apache.jena.iri.impl.IRIImplException: <D.nt> Code:
57/REQUIRED_COMPONENT_MISSING in SCHEME: A component that is required by the
scheme is missing.
org.apache.jena.iri.impl.IRIImplException: <D.nt> Code:
57/REQUIRED_COMPONENT_MISSING in SCHEME: A component that is required by the
scheme is missing.
at
org.apache.jena.iri.impl.AbsIRIFactoryImpl.throwAnyErrors(AbsIRIFactoryImpl.java:65)
at
org.apache.jena.iri.impl.AbsIRIFactoryImpl.construct(AbsIRIFactoryImpl.java:48)
at
org.apache.jena.riot.out.NodeFormatterTTL.abbrevByBase(NodeFormatterTTL.java:99)
at
org.apache.jena.riot.out.NodeFormatterTTL.formatURI(NodeFormatterTTL.java:80)
at
org.apache.jena.riot.out.NodeFormatterBase.formatURI(NodeFormatterBase.java:49)
at
org.apache.jena.riot.out.NodeFormatterBase.format(NodeFormatterBase.java:37)
at
org.apache.jena.riot.writer.TurtleShell.writeNode(TurtleShell.java:659)
at
org.apache.jena.riot.writer.TurtleShell$ShellGraph.writeCluster(TurtleShell.java:375)
at
org.apache.jena.riot.writer.TurtleShell$ShellGraph.writeBySubject(TurtleShell.java:364)
at
org.apache.jena.riot.writer.TurtleShell$ShellGraph.writeGraph(TurtleShell.java:257)
at
org.apache.jena.riot.writer.TurtleShell$ShellGraph.access$1(TurtleShell.java:254)
at
org.apache.jena.riot.writer.TurtleShell.writeGraphTTL(TurtleShell.java:74)
at
org.apache.jena.riot.writer.TurtleWriter$TurtleWriter$.write(TurtleWriter.java:47)
at
org.apache.jena.riot.writer.TurtleWriter$TurtleWriter$.access$0(TurtleWriter.java:41)
at
org.apache.jena.riot.writer.TurtleWriter.output$(TurtleWriter.java:32)
at
org.apache.jena.riot.writer.TurtleWriterBase.write(TurtleWriterBase.java:52)
at
org.apache.jena.riot.adapters.RDFWriterRIOT.write(RDFWriterRIOT.java:101)
at jena.rdfcopy.main(rdfcopy.java:123)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)