use of fr.lirmm.graphik.graal.core.unifier.checker.AtomErasingChecker in project graal by graphik-team.
the class GRDTest method AtomErasingFilterTest.
@Test
public void AtomErasingFilterTest() {
Rule r1 = DefaultRuleFactory.instance().create(DefaultAtomSetFactory.instance().create(TestUtils.pXZ), DefaultAtomSetFactory.instance().create(TestUtils.pXY, TestUtils.pYZ));
Rule r2 = DefaultRuleFactory.instance().create(TestUtils.pUU, TestUtils.sU);
Substitution s = new HashMapSubstitution();
s.put(DefaultTermFactory.instance().createVariable("X"), DefaultTermFactory.instance().createVariable("U"));
s.put(DefaultTermFactory.instance().createVariable("Y"), DefaultTermFactory.instance().createVariable("U"));
s.put(DefaultTermFactory.instance().createVariable("Z"), DefaultTermFactory.instance().createVariable("U"));
AtomErasingChecker filter = AtomErasingChecker.instance();
Assert.assertFalse(filter.isValidDependency(r1, r2, s));
}
Aggregations