@Override public void initialize() throws SailException { super.initialize(); InferencerConnection conn = getConnection(); try { conn.begin(); for (Field field : XMLSchema.class.getFields()) { if (field.getType().equals(URI.class)) { conn.addInferredStatement((URI) field.get(null), RDF.TYPE, RDFS.DATATYPE); } } // TODO : datatype relations conn.commit(); } catch (SailException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } catch (IllegalAccessException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } finally { conn.close(); } } }
@Override public void initialize() throws StoreException { super.initialize(); InferencerConnection conn = getConnection(); try { conn.begin(); for (Field field : XMLSchema.class.getFields()) { if (field.getType().equals(URI.class)) { conn.addInferredStatement((URI) field.get(null), RDF.TYPE, RDFS.DATATYPE); } } // TODO : datatype relations conn.commit(); } catch (StoreException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } catch (IllegalAccessException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } finally { conn.close(); } } }
@Override public void initialize() throws StoreException { super.initialize(); InferencerConnection conn = getConnection(); try { conn.begin(); for (Field field : XMLSchema.class.getFields()){ if (field.getType().equals(URI.class)){ conn.addInferredStatement((URI)field.get(null), RDF.TYPE, RDFS.DATATYPE); } } // TODO : datatype relations conn.commit(); } catch (StoreException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } catch (IllegalAccessException e) { conn.rollback(); String error = "Caught " + e.getClass().getName(); throw new RepositoryException(error, e); } finally { conn.close(); } } }