@Override protected Repository createRepository(boolean sesameInference) { NativeStore store = new NativeStore(Assert.notNull(dataDir, "dataDir")); if (indexes != null) { store.setTripleIndexes(indexes); } idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); if (sesameInference) { return new SailRepository(new ExtendedRDFSInferencer(store)); } else { return new SailRepository(store); } }
@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 protected Repository createRepository(boolean sesameInference) { NativeStore store = new NativeStore(Assert.notNull(dataDir, "dataDir")); if (indexes != null) { store.setTripleIndexes(indexes); } idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); if (sesameInference) { return new SailRepository(new ExtendedRDFSInferencer(store)); } else { return new SailRepository(store); } }
@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 protected Repository createRepository(boolean sesameInference) { NativeStore store = new NativeStore(Assert.notNull(dataDir,"dataDir")); if (indexes != null){ store.setTripleIndexes(indexes); } idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); if (sesameInference){ return new SailRepository(new ExtendedRDFSInferencer(store)); }else{ return new SailRepository(store); } }
@Override protected Repository createRepository(boolean sesameInference) { MemoryStore store; if (dataDir != null) { store = new MemoryStore(dataDir); idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); } else { store = new MemoryStore(); idSource = new MemoryIdSequence(); } if (syncDelay > 0) { store.setSyncDelay(syncDelay); } if (sesameInference) { return new SailRepository(new ExtendedRDFSInferencer(store)); } else { return new SailRepository(store); } }
@Override protected Repository createRepository(boolean sesameInference) { MemoryStore store; if (dataDir != null){ store = new MemoryStore(dataDir); idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); }else{ store = new MemoryStore(); idSource = new MemoryIdSequence(); } if (syncDelay > 0){ store.setSyncDelay(syncDelay); } if (sesameInference){ return new SailRepository(new ExtendedRDFSInferencer(store)); }else{ return new SailRepository(store); } }
@Override protected Repository createRepository(boolean sesameInference) { MemoryStore store; if (dataDir != null) { store = new MemoryStore(dataDir); idSource = new FileIdSequence(new File(dataDir, "lastLocalId")); } else { store = new MemoryStore(); idSource = new MemoryIdSequence(); } if (syncDelay > 0) { store.setSyncDelay(syncDelay); } if (sesameInference) { return new SailRepository(new ExtendedRDFSInferencer(store)); } else { return new SailRepository(store); } }