On 27/08/13 06:04, Deyan Chen wrote:
Hi Andy,
I found the same problem as Emilio. It seems that document manager
policy file(etc/ont-policy.rdf) is invalid.
Do you have a link to the email? We get a lot of email and I've lost
track of this.
My test code is as follows:
Dataset ds = TDBFactory.createDataset("tdb/mydb");
Model base = ds.getDefaultModel();
OntModel model = ModelFactory.createOntologyModel( spec, base );
model.read(sourceURL);
I have also tested this code with all previous version of apache-jena
including 2.10.0 and it works. But It fails in the latest one 2.10.1.
Does it work for in-memory models or is it TDB specific?
A complete, minimal, example would be helpful.
Andy
And then I compare jena 2.10.0 with 2.10.1 to find the differences of
the source file OntDocumentManager.java:
2.10.0:
...
if (getFileManager().getCachingModels() &&
...
return getFileManager().getCachingModels();
...
2.10.1:
...
if (getFileManager().isCachingModels() &&
...
return getFileManager().isCachingModels();
...
I think that the difference isn't the root cause, but I am not sure.
Would you please tell me why?
Thank you very much.
Deyan
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential
and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of
this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing,
disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
immediately notify the sender by return e-mail, and delete the original message
and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------