use of org.openrdf.repository.sail.config.SailRepositoryFactory in project incubator-rya by apache.
the class RyaAccumuloSailFactoryTest method testAddStatement.
@Ignore
@Test
public void testAddStatement() throws Exception {
SailRepositoryFactory f = new SailRepositoryFactory();
Repository r = f.getRepository(getConfig());
r.initialize();
RepositoryConnection rc = r.getConnection();
ValueFactory vf = rc.getValueFactory();
Statement s = vf.createStatement(vf.createURI("u:a"), vf.createURI("u:b"), vf.createURI("u:c"));
assertFalse(rc.hasStatement(s, false));
rc.add(s);
Assert.assertTrue(rc.hasStatement(s, false));
rc.close();
}
use of org.openrdf.repository.sail.config.SailRepositoryFactory in project incubator-rya by apache.
the class RyaAccumuloSailFactoryTest method testCreateAccumuloSail.
@Ignore
@Test
public void testCreateAccumuloSail() throws Exception {
SailRepositoryFactory f = new SailRepositoryFactory();
Repository r = f.getRepository(getConfig());
r.initialize();
RepositoryConnection rc = r.getConnection();
rc.close();
}
Aggregations