public void run(RepositoryConnection con) throws RepositoryException { con.clearNamespaces(); } });
public void run(RepositoryConnection con) throws RepositoryException { con.clearNamespaces(); } });
public void execute(RepositoryConnection con) throws RepositoryException { con.clearNamespaces(); }
protected void clearNamespacesInternal() throws SailException { try { repoConnection.clearNamespaces(); } catch (RepositoryException e) { throw new SailException(e); } }
@Override public void reset() throws IOException { RepositoryConnection connection = null; try { connection = this.repository.getConnection(); connection.clear(); connection.clearNamespaces(); LOGGER.info("Sesame repository successfully resetted"); } catch (final RepositoryException ex) { throw new IOException("Could not reset Sesame repository", ex); } finally { Util.closeQuietly(connection); } }
private ModelAndView getClearNamespacesResult(HttpServletRequest request, HttpServletResponse response) throws ServerHTTPException { RepositoryConnection repositoryCon = RepositoryInterceptor.getRepositoryConnection(request); synchronized (repositoryCon) { try { repositoryCon.clearNamespaces(); } catch (RepositoryException e) { throw new ServerHTTPException("Repository error: " + e.getMessage(), e); } } return new ModelAndView(EmptySuccessView.getInstance()); } }
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); Repositories.consume(repo, con -> { con.clear(); con.clearNamespaces(); }); return repo; }
protected Repository createRepository() throws Exception { Repository repository = newRepository(); repository.initialize(); RepositoryConnection con = repository.getConnection(); con.clear(); con.clearNamespaces(); con.close(); return repository; }
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); RepositoryConnection con = repo.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return repo; }
protected Repository createRepository(String entailment) throws Exception { Repository dataRep; if ("RDF".equals(entailment)) { dataRep = newRepository(); } else { dataRep = newRepository(entailment); } dataRep.initialize(); RepositoryConnection con = dataRep.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return dataRep; }
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); RepositoryConnection con = repo.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return repo; }
protected final Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); RepositoryConnection con = repo.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return repo; }
/** * Creates, initializes and clears a repository. * * @return an initialized empty repository. * @throws Exception */ protected Repository createRepository() throws Exception { Repository repository = newRepository(); repository.initialize(); RepositoryConnection con = repository.getConnection(); con.clear(); con.clearNamespaces(); con.close(); return repository; }
/** * Creates, initializes and clears a repository. * * @return an initialized empty repository. * @throws Exception */ protected Repository createRepository() throws Exception { Repository repository = newRepository(); repository.initialize(); RepositoryConnection con = repository.getConnection(); con.clear(); con.clearNamespaces(); con.close(); return repository; }
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); RepositoryConnection con = repo.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return repo; }
protected Repository createRepository() throws Exception { Repository repo = newRepository(); repo.initialize(); RepositoryConnection con = repo.getConnection(); try { con.clear(); con.clearNamespaces(); } finally { con.close(); } return repo; }
/** * Creates, initializes and clears a repository. * * @return an initialized empty repository. * @throws Exception */ protected Repository createRepository() throws Exception { Repository repository = newRepository(); repository.initialize(); RepositoryConnection con = repository.getConnection(); con.clear(); con.clearNamespaces(); con.close(); return repository; }
@Before public void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + NAME); mbox = vf.createURI(FOAF_NS + MBOX); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }
@Override protected void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + "name"); mbox = vf.createURI(FOAF_NS + "mbox"); publisher = vf.createURI(DC_NS + "publisher"); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); Александър = vf.createLiteral("Александър"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }
@Before public void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + NAME); mbox = vf.createURI(FOAF_NS + MBOX); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }