Thanks for your help, I have read in the OWL file and store it as TDB database
as what you teach me. But this is not the problem what I want to show maybe,
sorry for my ambiguous expression in the last letter :)
My problem now is that I just want to parse a big OWL file once and stroe them
into TDB, after that what I will do is just read it in and transform it into
OntModel without the time-consumed step for parsing into TDB.I paste my file in
the attachemet. inthe TestTDB.java, it parse and read in an TDB database, it
works correctly as what you told me .But in the ReadFromTDB.java, I just want
to read from an existing TDB database and get the OntModel, while it just
return an empty model,seeming haven't visit the TDB database, I tried many
methods , with no solutions.So ask for help again.
As for another question about the API
com.hp.hpl.jena.ontology.OntModel.listClasses()
It lists all the classes in the Ontology,including the anonymous classes. What
I concern is that whether it can list all the anonymous classes in the Ontology
without any omission.Also sorry for the unclear description about this question
last time.As you know ,when you list the resource using API listProperties(),it
will return a StmIterator which contains Statements ,and some objects of the
statements are also anonymous classes. Also you can get anonymous classes with
some other API.So what I want to ensure is that ,if OntModel.listClasses() can
list all the anonymous classes in the whole Ontology, I have no need to
analysis data of anonymous classes from other API ,what I will do is just get
all anonymous classes with listClasses() at the first step.This will reduce the
steps in my projects. I am not sure whether I have describe my mind clearly
,wish I was !
Best Regards, Thank you again !!!
your,Lucas