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

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


    }else if(bioportal != null){
      log("Loading BioPortal terminology from "+bioportal+"...");
      BioPortalRepository r = new BioPortalRepository();
      IOntology ont = r.getOntology(URI.create(bioportal));
      if(ont != null){
        ont.addPropertyChangeListener(this);
        terminology.loadOntology(ont,name);
      }
      name = (name == null)?ont.getName():name;
    }else if(txt != null){
      log("Loading Text terminology from "+txt+"...");
View Full Code Here


  public void copy(IClass [] sourceRoots, IClass targetRoot){
    // 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

      }catch(Exception ex){}
    }
    if(importer.isSelected()){
      //IOntology source = POntology.loadOntology(new File("/home/tseytlin/Work/curriculum/owl/skin/UPMC/Alopecia.owl"));
      IOntology source = importer.getSelectedOntology();
      source.addPropertyChangeListener(new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent e) {
          if(IOntology.ONTOLOGY_LOADED_EVENT.equals(e.getPropertyName())){
            System.out.println("preload time "+((System.currentTimeMillis()-time2)/1000)+" s");
         
        }
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.