Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] updating one 'OWLModel' object from another

Vance aroc725 at
Sat Feb 7 17:06:37 PST 2009

I'm trying to update one 'OWLModel' object with all the instances belonging to another 'OWLModel' object, and then save the updated 'OWLModel' object to a new file, using the following code:

            Collection instances = instanceDataOWLModel.getOWLIndividuals(true);
            Iterator instancesIter = instances.iterator();
            while (instancesIter.hasNext()) {
                DefaultOWLIndividual currentInstance = (DefaultOWLIndividual);
                String instanceName = currentInstance.getBrowserText();
                Cls directType = currentInstance.getDirectType();
                String directTypeName = directType.getBrowserText();
                    owlModel.addInstance(currentInstance, instanceName, directType, true);
   File(newFileName).toURI(), FileUtils.langXMLAbbrev, errors);

However, the new OWL file doesn't have the instance data. Any ideas as to why this is happening?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-owl mailing list