final AbstractTripleStore store = getStore(properties); assertTrue(store.hasStatement(A, B, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(1,store.getStatementCount()); applyRule(store, r, 1/* solutionCount*/,1/*mutationCount*/); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(2,store.getStatementCount());
final AbstractTripleStore store = getStore(properties); assertTrue(store.hasStatement(A, B, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(1,store.getStatementCount()); applyRule(store, r, 1/* solutionCount*/,1/*mutationCount*/); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(2,store.getStatementCount());
final AbstractTripleStore store = getStore(properties); store.addStatement(A, E, C); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty)); assertFalse(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(3,store.getStatementCount()); applyRule(store, r, 2/* solutionCount */, 2/* mutationCount */); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty)); assertTrue(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(5,store.getStatementCount());
final AbstractTripleStore store = getStore(properties); store.addStatement(A, E, C); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty)); assertFalse(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(3,store.getStatementCount()); applyRule(store, r, 2/* solutionCount */, 2/* mutationCount */); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty)); assertTrue(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(5,store.getStatementCount());
final AbstractTripleStore store = getStore(properties); assertTrue(store.hasStatement(A, B, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(1,store.getStatementCount()); applyRule(store, r, 1/* solutionCount*/,1/*mutationCount*/); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty )); assertEquals(2,store.getStatementCount());
final AbstractTripleStore store = getStore(properties); store.addStatement(A, E, C); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertFalse(store.hasStatement(B, rdfType, rdfProperty)); assertFalse(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(3,store.getStatementCount()); applyRule(store, r, 2/* solutionCount */, 2/* mutationCount */); assertTrue(store.hasStatement(A, B, C)); assertTrue(store.hasStatement(C, B, D)); assertTrue(store.hasStatement(A, E, C)); assertTrue(store.hasStatement(B, rdfType, rdfProperty)); assertTrue(store.hasStatement(E, rdfType, rdfProperty)); assertEquals(5,store.getStatementCount());