Hi all, I want to read an ontology file which imports several other ontology files to a TDB store.
The test code is as follows: Dataset ds = TDBFactory.createDataset(location); Model base = ds.getDefaultModel(); OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM, base); // need to process imports model.read(sourceURL); ds.close(); I can get imported model from the ontology model by: ... OntModel model1 = model.getImportedModel(uri); ... But I can't get it from the TDB store. Although I can add these imported models to TDB by method: ds.addNamedModel(uri, model); but it's very inconvenient. Are there any good methods can be used to achieve it automatically? 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. ---------------------------------------------------------------------------------------------------