Package edu.pitt.ontology

Examples of edu.pitt.ontology.IOntologyError


    if(isObjectProperty() && p.isObjectProperty()){
      addAxiom(getOWLDataFactory().
          getOWLInverseObjectPropertiesAxiom(asOWLObjectProperty(),
              (OWLObjectProperty)convertOntologyObject(p)));
    }else{
      throw new IOntologyError("Can't set inverse property for non object properties");
    }
  }
View Full Code Here


    }
  }

  public void addSuperProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add super property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      addAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(asOWLDataProperty(),ch));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

    }
  }

  public void addSubProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add sub property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      addAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(ch,asOWLDataProperty()));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

    }
  }

  public void removeSuperProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add super property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      removeAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(asOWLDataProperty(),ch));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

    }
  }
 
  public void removeSubProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add sub property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      removeAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(ch,asOWLDataProperty()));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

      if(b)
        addAxiom(a);
      else
        removeAxiom(a);
    }else{
      throw new IOntologyError("Can't set non-object property as transitive");
    }
  }
View Full Code Here

      if(b)
        addAxiom(a);
      else
        removeAxiom(a);
    }else{
      throw new IOntologyError("Can't set non-object property as symmetric");
    }
  }
View Full Code Here

  public Object[] getRange() {
    return new Object [0];
  }

  public void setDomain(IResource[] domain) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

  public void setDomain(IResource[] domain) {
    throw new IOntologyError("Not implemented");
  }

  public void setRange(Object[] range) {
    throw new IOntologyError("Not implemented");
  }
View Full Code Here

  public IProperty getInverseProperty() {
    return null;
  }

  public void setInverseProperty(IProperty p) {
    throw new IOntologyError("Not implemented");
  }
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.