@Override public Vertex getVertex(final Object key) { if (key == null) throw new IllegalArgumentException(); final URI uri = factory.toVertexURI(key.toString()); try { try { if (cxn.hasStatement(uri, TYPE, VERTEX, false)) { return new BigdataVertex(uri, this); } return null; } finally { } } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } }
@Override public Void call() throws Exception { final long begin = System.currentTimeMillis(); BigdataSailRepositoryConnection conn = null; try { conn = getQueryConnection(); // Note: We have to align Sail semantics for Resource... with the // REST API. final boolean found = conn.hasStatement(s, p, o, includeInferred, c == null ? new Resource[0] : c); final long elapsed = System.currentTimeMillis() - begin; buildAndCommitBooleanResponse(resp, found, elapsed); return null; } finally { if (conn != null) { conn.close(); } } }
@Override public Void call() throws Exception { final long begin = System.currentTimeMillis(); BigdataSailRepositoryConnection conn = null; try { conn = getQueryConnection(); // Note: We have to align Sail semantics for Resource... with the // REST API. final boolean found = conn.hasStatement(s, p, o, includeInferred, c == null ? new Resource[0] : c); final long elapsed = System.currentTimeMillis() - begin; buildAndCommitBooleanResponse(resp, found, elapsed); return null; } finally { if (conn != null) { conn.close(); } } }
final boolean stmtInIsolated = isolated.hasStatement(s, p, o, true);
final boolean stmtInIsolated = isolated.hasStatement(s, p, o, true);
final BigdataStatement resultStmt = (BigdataStatement) result.next(); final BigdataBNode bNode = vf.createBNode(resultStmt); assertTrue(cxn.hasStatement(bNode, p1, o1, true)); cnt++;
final BigdataStatement resultStmt = (BigdataStatement) result.next(); final BigdataBNode bNode = vf.createBNode(resultStmt); assertTrue(cxn.hasStatement(s1, p1, bNode, true)); cnt++;
final BigdataStatement result2Stmt = (BigdataStatement) result2.next(); final BigdataBNode bNode2 = vf.createBNode(result2Stmt); assertTrue(cxn.hasStatement(s2, p2, bNode2, true)); cnt++;
final BigdataStatement resultStmt = (BigdataStatement) result.next(); final BigdataBNode bNode = vf.createBNode(resultStmt); assertTrue(cxn.hasStatement(bNode, p1, o1, true)); cnt++;
final BigdataStatement resultStmt = (BigdataStatement) result.next(); final BigdataBNode bNode = vf.createBNode(resultStmt); assertTrue(cxn.hasStatement(s1, p1, bNode, true)); cnt++;
final BigdataStatement result2Stmt = (BigdataStatement) result2.next(); final BigdataBNode bNode2 = vf.createBNode(result2Stmt); assertTrue(cxn.hasStatement(s2, p2, bNode2, true)); cnt++;