Package edu.pitt.ontology

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


    }
    return ontologyMap;
  }
 
  public void addOntology(IOntology ontology) {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

  public void addPropertyChangeListener(PropertyChangeListener listener) {
    pcs.addPropertyChangeListener(listener);
  }
 
  public void addTerminology(Terminology terminology) {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

  public void addTerminology(Terminology terminology) {
    throw new IOntologyError("BioPortal Repository is read-only");
  }

  public IOntology createOntology(URI path) throws IOntologyException {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

      ontologyMap = fetchOntologies();
    return ontologyMap.containsKey(name) || getOntologies(name).length > 0;
  }

  public IOntology importOntology(URI path) throws IOntologyException {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

  public IOntology importOntology(URI path) throws IOntologyException {
    throw new IOntologyError("BioPortal Repository is read-only");
  }

  public void importOntology(IOntology ont) throws IOntologyException {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

  public void importOntology(IOntology ont) throws IOntologyException {
    throw new IOntologyError("BioPortal Repository is read-only");
  }

  public void removeOntology(IOntology ontology) {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

  public void removePropertyChangeListener(PropertyChangeListener listener) {
    pcs.removePropertyChangeListener(listener);
  }

  public void removeTerminology(Terminology terminology) {
    throw new IOntologyError("BioPortal Repository is read-only");
  }
View Full Code Here

      Collection errors = new ArrayList();
        NewOwlProjectCreator creator = new NewOwlProjectCreator();
        creator.setOntologyName(""+path);
        creator.create(errors);
        if(!errors.isEmpty())
          throw new IOntologyError(""+errors);
        OWLModel model = creator.getOwlModel();
      //OWLModel model = ProtegeOWL.createJenaOWLModel();
     
      // setup default namespace
      model.getNamespaceManager().setDefaultNamespace(path+"#");
View Full Code Here

      Collection errors = new ArrayList();
        NewOwlProjectCreator creator = new NewOwlProjectCreator();
        creator.setOntologyName(""+path);
        creator.create(errors);
        if(!errors.isEmpty())
          throw new IOntologyError(""+errors);
        OWLModel model = creator.getOwlModel();
      //OWLModel model = ProtegeOWL.createJenaOWLModel();
     
      // setup default namespace
      model.getNamespaceManager().setDefaultNamespace(path+"#");
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.