public void test_commit1() { final LocalTripleStore store = (LocalTripleStore) getStore(); try { final BigdataValueFactory f = store.getValueFactory(); final BigdataValue s = f.createURI("http://www.bigdata.com/s"); final BigdataValue p = f.createURI("http://www.bigdata.com/p"); final BigdataValue o = f.createURI("http://www.bigdata.com/o"); final BigdataValue[] values = new BigdataValue[]{s,p,o}; store.getLexiconRelation() .addTerms(values, values.length, false/* readOnly */); assertFalse(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); // add the statement. store.addStatements(new SPO[] { // new SPO(s.getIV(), p.getIV(), o.getIV(), StatementEnum.Explicit) // },// 1); assertTrue(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); } finally { store.__tearDownUnitTest(); } }
final BigdataValueFactory f = store.getValueFactory();
public void test_commit1() { final LocalTripleStore store = (LocalTripleStore) getStore(); try { final BigdataValueFactory f = store.getValueFactory(); final BigdataValue s = f.createURI("http://www.bigdata.com/s"); final BigdataValue p = f.createURI("http://www.bigdata.com/p"); final BigdataValue o = f.createURI("http://www.bigdata.com/o"); final BigdataValue[] values = new BigdataValue[]{s,p,o}; store.getLexiconRelation() .addTerms(values, values.length, false/* readOnly */); assertFalse(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); // add the statement. store.addStatements(new SPO[] { // new SPO(s.getIV(), p.getIV(), o.getIV(), StatementEnum.Explicit) // },// 1); assertTrue(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); } finally { store.__tearDownUnitTest(); } }
final BigdataValueFactory f = store.getValueFactory();
final BigdataValueFactory f = db.getValueFactory();
final BigdataValueFactory f = db.getValueFactory();
final BigdataValueFactory f = store.getValueFactory();
public void test_commit1() { final LocalTripleStore store = (LocalTripleStore) getStore(); try { final BigdataValueFactory f = store.getValueFactory(); final BigdataValue s = f.createURI("http://www.bigdata.com/s"); final BigdataValue p = f.createURI("http://www.bigdata.com/p"); final BigdataValue o = f.createURI("http://www.bigdata.com/o"); final BigdataValue[] values = new BigdataValue[]{s,p,o}; store.getLexiconRelation() .addTerms(values, values.length, false/* readOnly */); assertFalse(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); // add the statement. store.addStatements(new SPO[] { // new SPO(s.getIV(), p.getIV(), o.getIV(), StatementEnum.Explicit) // },// 1); assertTrue(store.hasStatement(s.getIV(), p.getIV(), o.getIV())); } finally { store.__tearDownUnitTest(); } }
final BigdataValueFactory f = db.getValueFactory();