try { con = sail.getConnection(); final boolean isQuads = con.isQuads(); for (int i = 0; i < nwrites; i++) { con.addStatement(subs[r.nextInt(nuris)],
} else if (conn.isQuads()) { fmt = RDFFormat.TRIX; } else {
} else if (conn.isQuads()) { fmt = RDFFormat.TRIX; } else {
try { con = sail.getConnection(); final boolean isQuads = con.isQuads(); for (int i = 0; i < nwrites; i++) { con.addStatement(subs[r.nextInt(nuris)],
private void run ( final BigdataSail sail, final RepositoryConnection rc, final String kb, final Resource graphs [], final String qs, final Collection<BindingSet> expected ) { if (!((BigdataSailRepositoryConnection) rc).getSailConnection().isQuads()) { log.info("This test requires quads."); return; } try { for ( Resource g : graphs ) load ( rc, kb, g ) ; compare ( query ( rc, qs ), expected ) ; } catch ( Exception e ) { e.printStackTrace () ; } finally { try { if ( null != rc ) rc.close () ; } catch ( Exception e ) { throw new RuntimeException(e); } finally { if ( null != sail ) sail.__tearDownUnitTest () ; } } }
private void run ( final BigdataSail sail, final RepositoryConnection rc, final String kb, final Resource graphs [], final String qs, final Collection<BindingSet> expected ) { if (!((BigdataSailRepositoryConnection) rc).getSailConnection().isQuads()) { log.info("This test requires quads."); return; } try { for ( Resource g : graphs ) load ( rc, kb, g ) ; compare ( query ( rc, qs ), expected ) ; } catch ( Exception e ) { e.printStackTrace () ; } finally { try { if ( null != rc ) rc.close () ; } catch ( Exception e ) { throw new RuntimeException(e); } finally { if ( null != sail ) sail.__tearDownUnitTest () ; } } }