Examples of IOntologyError


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

  public void addPropertyValue(IProperty prop, Object value) {
    if(prop.isAnnotationProperty()){
      addAxiom(getAnnotationAxiom((OWLAnnotationProperty)convertOntologyObject(prop),(OWLAnnotationValue)convertOntologyObject(value)));
    }else
      throw new IOntologyError("Not implemented for "+getClass().getName());
  }
View Full Code Here

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

  public void setPropertyValue(IProperty prop, Object value) {
    if(prop.isAnnotationProperty()){
      removePropertyValues(prop);
      addPropertyValue(prop, value);
    }else
      throw new IOntologyError("Not implemented for "+getClass().getName());
  }
View Full Code Here

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

      removePropertyValues(prop);
      for(Object o: values){
        addPropertyValue(prop,o);
      }
    }else
      throw new IOntologyError("Not implemented for "+getClass().getName());
  }
View Full Code Here

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

  public void addVersion(String version) {
    getList(VERSIONS).add(version);
  }

  public void delete() {
    throw new IOntologyError("Read-Only Ontology");
  }
View Full Code Here

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

    loaded = false;
    concept = null;
  }
 
  public void addDisjointClass(IClass a) {
    throw new IOntologyError("Operation Not Supported");
  }
View Full Code Here

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

  public void addDisjointClass(IClass a) {
    throw new IOntologyError("Operation Not Supported");
  }

  public void addEquivalentClass(IClass a) {
    throw new IOntologyError("Operation Not Supported")}
View Full Code Here

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

  public void addEquivalentClass(IClass a) {
    throw new IOntologyError("Operation Not Supported")}

  public void addEquivalentRestriction(IRestriction restriction) {
    throw new IOntologyError("Operation Not Supported");
  }
View Full Code Here

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

  public void addEquivalentRestriction(IRestriction restriction) {
    throw new IOntologyError("Operation Not Supported");
  }

  public void addNecessaryRestriction(IRestriction restriction) {
    throw new IOntologyError("Operation Not Supported");
  }
View Full Code Here

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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getEquivalentClasses((OWLClass)ontology.convertSetValue(cls)));
      return (o.length > 0)?(IClass [])o:new IClass[0];
    }catch(ProtegeReasonerException ex){
      throw new IOntologyError("Reasoner Problem",ex);
    }
    //return new IClass[0];
  }
View Full Code Here

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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getIndividualsBelongingToClass((OWLClass)ontology.convertSetValue(cls)));
      return (o.length > 0)?(IInstance [])o:new IInstance[0];
    }catch(ProtegeReasonerException ex){
      throw new IOntologyError("Reasoner Problem",ex);
    }
    //return new IInstance[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.