Package edu.pitt.dbmi.nlp.noble.ontology

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


    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

        if(exp.getExpressionType() == ILogicExpression.NOT){
          try{
            obj = model.createOWLComplementClass(
                (RDFSClass)convertSetValue(exp.getOperand()));
          }catch(ClassCastException ex){
            throw new IOntologyError("Cannot complement "+exp.getOperand()+", because it is not a class",ex);
          }
        }else
          obj =  convertSetValue(exp.getOperand());
      }else if(exp.getExpressionType() == ILogicExpression.AND){
        OWLIntersectionClass ac = model.createOWLIntersectionClass();
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

            semanticTypes.put(tui,st);
            semanticTypes.put(sty,st);
          }
        }
      } catch (IOException e) {
        throw new IOntologyError("Unable to parse SemanticTypes file "+SEMANTIC_TYPES,e);
      }
     
    }
    return semanticTypes;
  }
View Full Code Here

        OWLNamedClass c = (OWLNamedClass) o;
        result.addAll(computeResults(c,c.getInferredSuperclasses(),IResult.SUPERCLASS));
      }
      return result.toArray(new IResult[0]);
    }catch(ProtegeReasonerException ex){
      throw new IOntologyError("Reasoner Problem",ex);
    }
  }
View Full Code Here

      for(Object o: ontology.getModel().getChangedInferredClasses()){
        OWLNamedClass cls = (OWLNamedClass) o;
        System.out.println("inferred types: "+cls);
      }
    }catch(ProtegeReasonerException ex){
      throw new IOntologyError("Reasoner Problem",ex);
    }
    return new IResult [0];
  }
View Full Code Here

TOP

Related Classes of edu.pitt.dbmi.nlp.noble.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.