368369370371372373374375
*/ void checkModel(){ try{ load(); }catch(IOntologyException ex){ throw new IOntologyError("Problem loading ontology "+getURI(),ex); } }
11441145114611471148114911501151
File ofile = new File(""+map.get("owl_file_name")); ofile.delete(); } }catch(Exception ex){ throw new IOntologyError("Problem removing ontology "+getName(),ex); } }
229230231232233234235
propertyMap.put(name,p); return p; } public IRestriction createRestriction(int type) { throw new IOntologyError("Operation not supported"); }
238239240241242243244
classMap = null; propertyMap = null; } public IQueryResults executeQuery(IQuery query) { throw new IOntologyError("Operation not supported"); }
246247248249250251252
public IResourceIterator getAllClasses() { return new DefaultResourceIterator(classMap.values().iterator()); } public IResourceIterator getAllProperties() { throw new IOntologyError("Operation not supported"); }
668669670671672673674675676677678
importProps.setProperty(LAST_PROCESSED_PAGE, ""+i); importProps.setProperty(LAST_PAGE_COUNT, ""+pagecount); storeImportProperties(target,importProps); } else{ throw new IOntologyError("Bioportal did what it does best"); } }while(++i <= pagecount); }
943944945946947948949950951952953
1208120912101211121212131214
public void reload() throws IOntologyException { // NOOP } public void removeImportedOntology(IOntology o) { throw new IOntologyError("BioPortal is read-only"); }
1231123212331234123512361237
public IOntology getOntology() { return this; } public IClass createClass(ILogicExpression exp) { throw new IOntologyError("Operation not supported"); }
1415141614171418141914201421
/** * create new concepts */ public IClass createClass(String name) { throw new IOntologyError("Operation not supported"); }