SnapshotStorageConnectorWithInference extends SnapshotStorageConnector implements InferredStorageConnector { @Override public boolean isConsistent(String context) { ensureTransactionalState(); return ((SnapshotStorageWithInference) storage).checkConsistency(context).isValid(); } SnapshotStorageConnectorWithInference(AbstractStorageConnector centralConnector,
                                          Map<String, String> reasonerConfig); @Override List<Statement> find(Resource subject, Property property, RDFNode value, String context); @Override boolean contains(Resource subject, Property property, RDFNode value, String context); @Override List<Statement> findWithInference(Resource subject, Property property, RDFNode value, String context); @Override boolean containsWithInference(Resource subject, Property property, RDFNode value, String context); @Override boolean isConsistent(String context);  }
@Test public void isConsistentVerifiesConsistencyOfDefaultGraph() throws Exception { generateTestData(null); connector.begin(); assertTrue(connector.isConsistent(null)); }
@Test public void isConsistentVerifiesConsistencyOfNamedGraph() throws Exception { generateTestData(NAMED_GRAPH); connector.begin(); assertTrue(connector.isConsistent(NAMED_GRAPH)); }