Package edu.pitt.dbmi.nlp.noble.ontology

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntology.load()


        setBusy(true);
        (new Thread(new Runnable(){
          public void run(){
            IOntology ont = (IOntology) value;
            try{
              ont.load();
              ont.write(new FileOutputStream(f),IOntology.OWL_FORMAT);
              JOptionPane.showMessageDialog(frame,ont.getName()+" saved as "+f.getAbsolutePath());
            }catch(Exception ex){
              ex.printStackTrace();
              JOptionPane.showMessageDialog(frame,ex.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);             
View Full Code Here


      final IOntology ont = (IOntology) value;
      explorer.setBusy(true);
      (new Thread(new Runnable(){
        public void run(){
          try{
            ont.load();
          }catch(IOntologyException ex){
            ex.printStackTrace();
          }
          explorer.setOntology(ont);
          explorer.setBusy(false);
View Full Code Here

    // preload ontology
    if(isPreLoad() && sourceRoots.length > 0){
      IOntology ont = sourceRoots[0].getOntology();
      try{
        ont.addPropertyChangeListener(this);
        ont.load();
      }catch(IOntologyException ex){
        System.out.println("Error: Could not load ontology "+ont);
        ex.printStackTrace();
      }
    }
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.