/** * @param vocab */ public RuleOwlSameAs2(String relationName, Vocabulary vocab) { super( "owlSameAs2",// new SPOPredicate(relationName,var("y"), var("a"), var("z")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y")),// new SPOPredicate(relationName,var("x"), var("a"), var("z"))// }, new IConstraint[]{ /* * Reject (y sameAs z) as the head. */ // new RejectAnythingSameAsItself(var("y"),var("a"),var("z"),vocab.getConstant(OWL.SAMEAS)) Constraint.wrap(new NEConstant(var("a"),vocab.getConstant(OWL.SAMEAS))), Constraint.wrap(new NE(var("x"),var("y"))) } ); }
final Rule tmp = new RuleOwlSameAs2(db, vocab);
final Rule tmp = new RuleOwlSameAs2(db, vocab);
final Rule r = new RuleOwlSameAs2(store.getSPORelation() .getNamespace(), vocab);
/** * @param vocab */ public RuleOwlSameAs2(String relationName, Vocabulary vocab) { super( "owlSameAs2",// new SPOPredicate(relationName,var("y"), var("a"), var("z")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y")),// new SPOPredicate(relationName,var("x"), var("a"), var("z"))// }, new IConstraint[]{ /* * Reject (y sameAs z) as the head. */ // new RejectAnythingSameAsItself(var("y"),var("a"),var("z"),vocab.getConstant(OWL.SAMEAS)) Constraint.wrap(new NEConstant(var("a"),vocab.getConstant(OWL.SAMEAS))), Constraint.wrap(new NE(var("x"),var("y"))) } ); }
final Rule r = new RuleOwlSameAs2(store.getSPORelation() .getNamespace(), vocab);
final Rule r = new RuleOwlSameAs2(store.getSPORelation() .getNamespace(), vocab);
program.addStep(new RuleOwlSameAs2(db,vocab));
program.addStep(new RuleOwlSameAs2(db,vocab));