I am trying to create a duplicate of an ontology model to test whether 
inserting particular triples results in a valid ontology. However, I am seeing 
invalid results appear in the duplicate ontology model when its valid in the 
original ontology model. Here's the snippet of Java code:

        OntModel model = (various code to load it)

        OntModel tmpModel =
            ModelFactory.createOntologyModel(model.getSpecification(), model);
        ValidityReport rept = model.validate();
        System.out
            .println("Model Good: " + (rept.isClean() && rept.isValid()));
        rept = tmpModel.validate();
        System.out.println("Duplicate Good: "
            + (rept.isClean() && rept.isValid()));

>From what I understand, the createOntologyModel should be creating a duplicate 
>of the existing ontology model. However, I am getting the following result:
Model Good: true
Duplicate Good: false

What could be causing this behavior? Is this the proper way to create a 
duplicate ontology model?

Edward Swing
Applied Research Technologist
Vision Systems + Technology, Inc., a SAS Company
6021 University Boulevard * Suite 360 * Ellicott City * Maryland * 21043
Tel: 410.418.5555 Ext: 919 * Fax: 410.418.8580
Email: [email protected]<mailto:[email protected]>
Web: http://www.vsticorp.com<http://www.vsticorp.com/>

Reply via email to