/** * * * @param * @param * * @return * * @throws Exception */ public void rebuildTextIndex(final String namespace, final boolean forceBuildTextIndex) throws Exception { rebuildTextIndex(namespace, forceBuildTextIndex, UUID.randomUUID()); }
m_mgr.rebuildTextIndex(namespace, forceBuildTextIndex); m_mgr.rebuildTextIndex(namespace, forceBuildTextIndex);
/** * Execute an ASK query including a SERVICE keyword which gets sent back to this server. * The test succeeeds if the query returns true, and fails otherwise * @param args * @throws IOException */ public void test_simple() throws Exception { setMethodisPostUrlEncodedData(); // m_repo.getRemoteRepositoryManager().createRepository(namespace, properties); BigdataSailRemoteRepositoryConnection conn = m_repo.getBigdataSailRemoteRepository().getConnection(); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s1> <http://p> \"Test123\" } WHERE { }").execute(); checkResults(conn, 1); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s2> <http://p> \"Test234\"^^xsd:string } WHERE { }").execute(); checkResults(conn, 2); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s3> <http://p> \"Test345\" } WHERE { }").execute(); checkResults(conn, 3); m_repo.getRemoteRepositoryManager().rebuildTextIndex(namespace, true); checkResults(conn, 3); }
m_mgr.rebuildTextIndex(namespace, forceBuildTextIndex); m_mgr.rebuildTextIndex(namespace, forceBuildTextIndex);
/** * Execute an ASK query including a SERVICE keyword which gets sent back to this server. * The test succeeeds if the query returns true, and fails otherwise * @param args * @throws IOException */ public void test_simple() throws Exception { setMethodisPostUrlEncodedData(); // m_repo.getRemoteRepositoryManager().createRepository(namespace, properties); BigdataSailRemoteRepositoryConnection conn = m_repo.getBigdataSailRemoteRepository().getConnection(); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s1> <http://p> \"Test123\" } WHERE { }").execute(); checkResults(conn, 1); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s2> <http://p> \"Test234\"^^xsd:string } WHERE { }").execute(); checkResults(conn, 2); conn.prepareUpdate(QueryLanguage.SPARQL, "INSERT { <http://s3> <http://p> \"Test345\" } WHERE { }").execute(); checkResults(conn, 3); m_repo.getRemoteRepositoryManager().rebuildTextIndex(namespace, true); checkResults(conn, 3); }