Package edu.pitt.ontology

Examples of edu.pitt.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


    addAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(annotation,ch));
  }

  public void addSubProperty(IProperty p) {
    if(!p.isAnnotationProperty())
      throw new IOntologyError("Can't add non-annotation subproperty");
    OWLAnnotationProperty ch = (OWLAnnotationProperty) convertOntologyObject(p);
    addAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(ch,annotation));
  }
View Full Code Here

    addAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(ch,annotation));
  }

  public void removeSuperProperty(IProperty p) {
    if(!p.isAnnotationProperty())
      throw new IOntologyError("Can't remove non-annotation superproperty");
    OWLAnnotationProperty ch = (OWLAnnotationProperty) convertOntologyObject(p);
    removeAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(annotation,ch));
  }
View Full Code Here

    removeAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(annotation,ch));
  }

  public void removeSubProperty(IProperty p) {
    if(!p.isAnnotationProperty())
      throw new IOntologyError("Can't remove non-annotation subproperty");
    OWLAnnotationProperty ch = (OWLAnnotationProperty) convertOntologyObject(p);
    removeAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(ch,annotation));
  }
View Full Code Here

    OWLAnnotationProperty ch = (OWLAnnotationProperty) convertOntologyObject(p);
    removeAxiom(getOWLDataFactory().getOWLSubAnnotationPropertyOfAxiom(ch,annotation));
  }
 
  public void setTransitive(boolean b) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

  public void setTransitive(boolean b) {
    throw new IOntologyError("Not implemented");
  }

  public void setFunctional(boolean b) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

  public void setFunctional(boolean b) {
    throw new IOntologyError("Not implemented");
  }

  public void setSymmetric(boolean b) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

  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

  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

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

TOP

Related Classes of edu.pitt.ontology.IOntologyError

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.