kb.addPropertyValue(p, b, TermFactory.literal(true));
ATermAppl t = TermFactory.literal("t");
ATermAppl f = TermFactory.literal("f");
AtomIVariable x = new AtomIVariable("x");
List<RuleAtom> body = Arrays.<RuleAtom> asList(new ClassAtom(A, x), new DatavaluedPropertyAtom(p,
new AtomIConstant(b), new AtomDConstant(TermFactory.literal(true))));
List<RuleAtom> head = Arrays.<RuleAtom> asList(new DatavaluedPropertyAtom(q, x, new AtomDConstant(t)));
kb.addRule(new Rule(head, body));