Examples of IOntologyError


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

    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

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

    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

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

    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

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

    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

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

 
  private void lazyLoad(){
    try {
      load();
    } catch (IOntologyException e) {
      throw new IOntologyError("Unable to load ontology "+location,e);
    }
  }
View Full Code Here

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

          }
        }
        r.close();
        return IRI.create(url);
      } catch (FileNotFoundException e) {
        throw new IOntologyError("Error reading ontology from "+location,e);
      } catch (IOException e) {
        throw new IOntologyError("Error reading ontology from "+location,e);
      }
    }
    return null;
  }
View Full Code Here

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

      return loadOntology(f);
    if(url.startsWith("http://")){
      try {
        return loadOntology(new URL(url));
      } catch (MalformedURLException e) {
        throw new IOntologyError("This is not a valid URL: "+url,e);
      }
    }
    throw new IOntologyException("Unable to load ontology "+url);
  }
View Full Code Here

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

  public IRestriction createRestriction(int type) {
    return new ORestriction(type, getOntology());
  }

  public IQueryResults executeQuery(IQuery iQuery) {
    throw new IOntologyError("Not implemented yet");
  }
View Full Code Here

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

  public IQueryResults executeQuery(IQuery iQuery) {
    throw new IOntologyError("Not implemented yet");
  }
 
  public IResourceIterator getMatchingResources(IProperty p, Object value) {
    throw new IOntologyError("Not implemented yet");
  }
View Full Code Here

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