use of org.openrdf.sail.inferencer.InferencerConnection in project blueprints by tinkerpop.
the class SailTest method setUp.
@Before
public final void setUp() throws Exception {
before();
this.sail = createSail();
sail.initialize();
if (sail instanceof NotifyingSail) {
SailConnection sc = sail.getConnection();
try {
if (sc instanceof InferencerConnection) {
inferencer = new ForwardChainingRDFSInferencer((NotifyingSail) sail);
}
} finally {
sc.rollback();
sc.close();
}
}
addFile(SailTest.class.getResourceAsStream("graph-example-sail-test.trig"), RDFFormat.TRIG);
}
Aggregations