Package edu.pitt.ontology

Examples of edu.pitt.ontology.IOntology.save()


          semanticTypeFilter.add(SemanticType.getSemanticType(""+semTypeList.getModel().getElementAt(i)));
        }
        try {
          IOntology ont = POntology.createOntology(URI.create(defaultURI+ontologyFile.getName()),ontologyFile.getParentFile());
          export(term,rootFilter,semanticTypeFilter,ont);
          ont.save();
        } catch (Exception e) {
          console.append("Error: "+e.getMessage()+"\n");
          JOptionPane.showMessageDialog(main,"Problems encounted during export","Error",JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
View Full Code Here


      time2 = System.currentTimeMillis();
      importer.copyClasses(scls,ont.getRoot());
      importer.copyValues(scls,ont.getRoot());
      System.out.println("total import time "+((System.currentTimeMillis()-time)/1000)+" s");
      System.out.println("end time "+new Date());
      ont.save();
      showOntology(ont);
     
    }else
      System.exit(0);
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.