Package edu.pitt.ontology.bioportal

Examples of edu.pitt.ontology.bioportal.BioPortalRepository


    if(text == inputLocation && inputFormats.getSelectedIndex() == 2){
      final JTextField textField = text;
      (new Thread(new Runnable(){
        public void run(){
          if(bioportalDialog == null){
            importer = new OntologyImporter(new BioPortalRepository());
            bioportalDialog = importer.showImportWizard(frame);
          }else{
            bioportalDialog.setVisible(true);
          }
          while(bioportalDialog.isShowing()){
View Full Code Here


      ConceptImporter.getInstance().loadOBO(terminology,new File(obo));
      ConceptImporter.getInstance().removePropertyChangeListener(this);
      terminology.save();
    }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;
View Full Code Here

    String dir   = System.getProperty("user.home")+File.separator+".protegeRepository";
    IRepository r = new ProtegeRepository(driver,url,user,pass,table,dir);
    */
   
    //new BioPortalRepository()
    OntologyImporter importer = new OntologyImporter(new BioPortalRepository());
    importer.setDeepCopy(true);
    importer.setPreLoad(true);
    importer.setFreshCopy(true);
    importer.addPropertyChangeListener(new PropertyChangeListener(){
      int i = 0;
View Full Code Here

  private void doPortal(){
   
    (new Thread(new Runnable(){
      public void run(){
        try{
          OntologyImporter importer = new OntologyImporter(new BioPortalRepository());
          importer.addPropertyChangeListener(RepositoryManager.this);
          JDialog d = importer.showImportWizard(frame);
         
         
          // wait for selection
View Full Code Here

TOP

Related Classes of edu.pitt.ontology.bioportal.BioPortalRepository

Copyright © 2018 www.massapicom. 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.