Package edu.pitt.ontology

Examples of edu.pitt.ontology.IOntologyError


        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

      List<IResult> result = new ArrayList<IResult>();
      result.addAll(computeResults(c,reasoner.getSuperclasses(c),IResult.SUPERCLASS));
      //result.addAll(computeResults(c,reasoner.getSubclasses(c),IResult.SUBCLASS));
      return result.toArray(new IResult[0]);
    }catch(Exception ex){
      throw new IOntologyError("Reasoner Problem",ex);
    }
  }
View Full Code Here

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getSubclasses((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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getSuperclasses((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

    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

    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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getDescendantClasses((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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getAncestorClasses((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

    try{
      Object [] o = ontology.convertGetValues(
          reasoner.getIndividualTypes((OWLIndividual)ontology.convertSetValue(inst)));
      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

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.