@Override public String getVersion() throws LoggedException { try { return eiCoreOntModel.getVersion(); } catch (final Throwable t) { logger.error( "Error in getVersion: ", t ); throw new LoggedException(); } }
@Override public List<EIEquivalentClass> getEquivalentClasses(final EIURI classId) throws LoggedException { try { final List<EIEquivalentClass> listEIEquivalentClasses = eiCoreOntModel.getEquivalentClasses( classId ); return listEIEquivalentClasses; /* * // Make a copy, checking for null object property ranges. * ArrayList<EIProperty> copy = new * ArrayList<EIProperty>(listProperties.size()); for (EIProperty p : * listProperties) { if (p instanceof EIObjectProperty) { if * (((EIObjectProperty) * p).getRange() == null) { * logger.warn("Class has Object Property with null range: class: "+classId + * " property: " + p.getEntity()); continue; } } copy.add(p); } return copy; */ } catch (final Throwable t) { logger.error( "Error in getEquivalentClasses: " + classId, t ); throw new LoggedException(); } }
@Override public String getLocalVersion() throws LoggedException { try { return eiCoreOntModel.getLocalModelVersion(); } catch (final Throwable t) { logger.error("Error in getLocalModelVersion: ",t); throw new LoggedException(); } }
if ( !eagleiOntModel.isModelClassURI( typeURI ) ) { final String typeLabel = eagleiOntModel.getPreferredLabel( typeEIURI ); final EIEntity typeEntity = EIEntity.create( typeURI, typeLabel );
@Override public List<String> getPropertyDefinitions(final List<EIURI> propertyURIs) throws LoggedException { try { return eiCoreOntModel.getPropertyDefinitions( propertyURIs ); } catch (final Throwable t) { logger.error( "Error in getPropertyDefinitions: ", t ); throw new LoggedException(); } }
final String ontologyVersion = ontModel.getVersion(); asyncLoggerInstance = new AsynchronousLoggerInstance( INSTANCE_LOG_TABLE_NAME, buildID, ontologyVersion ); asyncLoggerContact = new AsynchronousLoggerContact( CONTACT_LOG_TABLE_NAME, buildID, ontologyVersion );