Search in sources :

Example 1 with ForwardChainingRDFSInferencer

use of org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer 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);
}
Also used : NotifyingSail(org.openrdf.sail.NotifyingSail) NotifyingSailConnection(org.openrdf.sail.NotifyingSailConnection) SailConnection(org.openrdf.sail.SailConnection) InferencerConnection(org.openrdf.sail.inferencer.InferencerConnection) ForwardChainingRDFSInferencer(org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 NotifyingSail (org.openrdf.sail.NotifyingSail)1 NotifyingSailConnection (org.openrdf.sail.NotifyingSailConnection)1 SailConnection (org.openrdf.sail.SailConnection)1 InferencerConnection (org.openrdf.sail.inferencer.InferencerConnection)1 ForwardChainingRDFSInferencer (org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer)1