/** * Utility method dumps the statements in the store using the SPO index * (subject order). */ final public StringBuilder dumpStore() { return dumpStore(true, true, true); }
final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms) { return dumpStore(resolveTerms, explicit, inferred, axioms, false/* justifications */); }
final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms) { return dumpStore(resolveTerms, explicit, inferred, axioms, false/* justifications */); }
/** * Utility method dumps the statements in the store using the SPO index * (subject order). */ final public StringBuilder dumpStore() { return dumpStore(true, true, true); }
final public StringBuilder dumpStore(final boolean explicit, final boolean inferred, final boolean axioms) { return dumpStore(this, explicit, inferred, axioms); }
final public StringBuilder dumpStore(final boolean explicit, final boolean inferred, final boolean axioms) { return dumpStore(this, explicit, inferred, axioms); }
final public StringBuilder dumpStore(final boolean history) { return dumpStore(this, true, true, true, history, false); }
final public StringBuilder dumpStore(final boolean history) { return dumpStore(this, true, true, true, history, false); }
public StringBuilder dumpStore() throws Exception { return cxn.getTripleStore().dumpStore(); }
final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms, final boolean history, final boolean justifications) { return dumpStore(resolveTerms, explicit, inferred, axioms, history, justifications, true, getSPORelation().getPrimaryKeyOrder()); }
final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms, final boolean history, final boolean justifications) { return dumpStore(resolveTerms, explicit, inferred, axioms, history, justifications, true, getSPORelation().getPrimaryKeyOrder()); }
public StringBuilder dumpStore() throws Exception { final BigdataSailRepositoryConnection cxn = cxn(); cxn.flush(); return cxn.getTripleStore().dumpStore(); }
/** * Dumps the store in a human readable format (not suitable for * interchange). * * @param resolveTerms * Used to resolve term identifiers to terms (you can use this to * dump a {@link TempTripleStore} that is using the term * dictionary of the main database). * @param explicit * Show statements marked as explicit. * @param inferred * Show statements marked inferred. * @param axioms * Show statements marked as axioms. * @param justifications * Dump the justifications index also. */ final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms, final boolean justifications) { return dumpStore(resolveTerms, explicit, inferred, axioms, true, justifications, true, getSPORelation().getPrimaryKeyOrder()); }
/** * Dumps the store in a human readable format (not suitable for * interchange). * * @param resolveTerms * Used to resolve term identifiers to terms (you can use this to * dump a {@link TempTripleStore} that is using the term * dictionary of the main database). * @param explicit * Show statements marked as explicit. * @param inferred * Show statements marked inferred. * @param axioms * Show statements marked as axioms. * @param justifications * Dump the justifications index also. */ final public StringBuilder dumpStore( final AbstractTripleStore resolveTerms, final boolean explicit, final boolean inferred, final boolean axioms, final boolean justifications) { return dumpStore(resolveTerms, explicit, inferred, axioms, true, justifications, true, getSPORelation().getPrimaryKeyOrder()); }
public void testSimpleSSSP() throws Exception { final BigdataSail sail = getSail(); sail.initialize(); final BigdataSailRepository repo = new BigdataSailRepository(sail); final BigdataSailRepositoryConnection cxn = repo.getConnection(); cxn.setAutoCommit(false); try { cxn.add(open("sssp.ttl"), "", RDFFormat.TURTLE); cxn.commit(); log.trace("\n" + cxn.getTripleStore().dumpStore()); final String query = IOUtils.toString(open("sssp.rq")); log.trace("\n" + query); final TupleQuery tqr = cxn.prepareTupleQuery(QueryLanguage.SPARQL, query); final TupleQueryResult result = tqr.evaluate(); while (result.hasNext()) { log.trace(result.next()); } result.close(); } finally { cxn.close(); sail.__tearDownUnitTest(); } }
public void testInlineUUIDs() throws Exception { /* * The bigdata store, backed by a temporary journal file. */ final AbstractTripleStore store = getStore(getProperties()); try { final BigdataValueFactory vf = store.getValueFactory(); final BigdataURI uri1 = vf.createURI("urn:uuid:" + UUID.randomUUID().toString()); final BigdataURI uri2 = vf.createURI("urn:uuid:" + UUID.randomUUID().toString()); final BigdataURI uri3 = vf.createURI("urn:uuid:foo"); final StatementBuffer<BigdataStatement> sb = new StatementBuffer<BigdataStatement>(store, 10/* capacity */); sb.add(uri1, RDF.TYPE, XSD.UUID); sb.add(uri2, RDF.TYPE, XSD.UUID); sb.add(uri3, RDF.TYPE, XSD.UUID); sb.flush(); store.commit(); if (log.isDebugEnabled()) log.debug(store.dumpStore()); assertTrue(uri1.getIV().isInline()); assertTrue(uri2.getIV().isInline()); assertFalse(uri3.getIV().isInline()); } finally { store.__tearDownUnitTest(); } }
log.info(cxn.getTripleStore().dumpStore());
public void testSimpleSSSP() throws Exception { final BigdataSail sail = getSail(); sail.initialize(); final BigdataSailRepository repo = new BigdataSailRepository(sail); final BigdataSailRepositoryConnection cxn = repo.getConnection(); cxn.setAutoCommit(false); try { cxn.add(open("sssp.ttl"), "", RDFFormat.TURTLE); cxn.commit(); log.trace("\n" + cxn.getTripleStore().dumpStore()); final String query = IOUtils.toString(open("sssp.rq")); log.trace("\n" + query); final TupleQuery tqr = cxn.prepareTupleQuery(QueryLanguage.SPARQL, query); final TupleQueryResult result = tqr.evaluate(); while (result.hasNext()) { log.trace(result.next()); } result.close(); } finally { cxn.close(); sail.__tearDownUnitTest(); } }
public void testInlineUUIDs() throws Exception { /* * The bigdata store, backed by a temporary journal file. */ final AbstractTripleStore store = getStore(getProperties()); try { final BigdataValueFactory vf = store.getValueFactory(); final BigdataURI uri1 = vf.createURI("urn:uuid:" + UUID.randomUUID().toString()); final BigdataURI uri2 = vf.createURI("urn:uuid:" + UUID.randomUUID().toString()); final BigdataURI uri3 = vf.createURI("urn:uuid:foo"); final StatementBuffer<BigdataStatement> sb = new StatementBuffer<BigdataStatement>(store, 10/* capacity */); sb.add(uri1, RDF.TYPE, XSD.UUID); sb.add(uri2, RDF.TYPE, XSD.UUID); sb.add(uri3, RDF.TYPE, XSD.UUID); sb.flush(); store.commit(); if (log.isDebugEnabled()) log.debug(store.dumpStore()); assertTrue(uri1.getIV().isInline()); assertTrue(uri2.getIV().isInline()); assertFalse(uri3.getIV().isInline()); } finally { store.__tearDownUnitTest(); } }
log.info(cxn.getTripleStore().dumpStore());