Examples of IOntologyError


Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

          importProps.setProperty(LAST_PROCESSED_PAGE, ""+i);
          importProps.setProperty(LAST_PAGE_COUNT, ""+pagecount);
          storeImportProperties(target,importProps);
        }
        else{
          throw new IOntologyError("Bioportal did what it does best");
        }
      }while(++i <= pagecount);
    }
   
 
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

  public void reload() throws IOntologyException {
    // NOOP
  }

  public void removeImportedOntology(IOntology o) {
    throw new IOntologyError("BioPortal is read-only");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

  public IOntology getOntology() {
    return this;
  }
  public IClass createClass(ILogicExpression exp) {
    throw new IOntologyError("Operation not supported");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

  /**
   * create new concepts
   */
  public IClass createClass(String name) {
    throw new IOntologyError("Operation not supported");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

      Collection errors = new ArrayList();
        NewOwlProjectCreator creator = new NewOwlProjectCreator();
        creator.setOntologyName(""+path);
        creator.create(errors);
        if(!errors.isEmpty())
          throw new IOntologyError(""+errors);
        OWLModel model = creator.getOwlModel();
      //OWLModel model = ProtegeOWL.createJenaOWLModel();
     
      // setup default namespace
      model.getNamespaceManager().setDefaultNamespace(path+"#");
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

      Collection errors = new ArrayList();
        NewOwlProjectCreator creator = new NewOwlProjectCreator();
        creator.setOntologyName(""+path);
        creator.create(errors);
        if(!errors.isEmpty())
          throw new IOntologyError(""+errors);
        OWLModel model = creator.getOwlModel();
      //OWLModel model = ProtegeOWL.createJenaOWLModel();
     
      // setup default namespace
      model.getNamespaceManager().setDefaultNamespace(path+"#");
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

   */
  void checkModel(){
    try{
      load();
    }catch(IOntologyException ex){
      throw new IOntologyError("Problem loading ontology "+getURI(),ex);
    }
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

        File ofile = new File(""+map.get("owl_file_name"));
        ofile.delete();
      }
     
    }catch(Exception ex){
      throw new IOntologyError("Problem removing ontology "+getName(),ex);
    }
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

  public IProperty getInverseProperty() {
    return null;
  }

  public void setInverseProperty(IProperty p) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    throw new IOntologyError("Not implemented");
  }

  public void addSuperProperty(IProperty p) {
    if(!p.isAnnotationProperty())
      throw new IOntologyError("Can't add non-annotation superproperty");
    OWLAnnotationProperty ch = (OWLAnnotationProperty) convertOntologyObject(p);
    addAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(annotation,ch));
  }
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.