Hello Andy,
we have some configuration issue. If we parse a model encoded as
N-TRIPLE, we succeed as long as we _don't_ access something in ARQ (TDB
and SystemTDB would also lead to errors) prior.
I assume, it's something of the static code in ARQ (or maybe RIOT or
somewhere else) that manipulates the way N-TRIPLEs are parsed.
Here's a sample code. If you remove the first line, the code finishes
successfully, otherwise it throws a RIOT-exception.
ARQ.isStrictMode();
Model model = ModelFactory.createMemModelMaker().createFreshModel();
Resource s=model.createResource("http://testSubject");
Property p=model.createProperty("http://testProperty");
Resource o=model.createResource("mailto:\"<xy>\"@b.de");
model.add(s,p,o);
StringWriter sw=new StringWriter();
model.write(sw, "N-TRIPLE");
String nTriple = sw.toString();
ModelFactory.createMemModelMaker().createFreshModel().read(new
StringReader(nTriple), null, "N-TRIPLE");
We currently use TDB 0.9.4, ARQ 2.9.4, Core 2.7.4, IRI 0.9.4.
As this has strong impacts on our system, a quick fix (some
configuration settings or something like this) or any other help is
highly appreciated.
Greetings
André
--
Dr. André Lanka * 0178 / 134 44 47 * http://dr-lanka.de