public RuleOwlSameAs3(String relationName, Vocabulary vocab) { super( "owlSameAs3", // new SPOPredicate(relationName,var("z"), var("a"), var("y")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y")),// new SPOPredicate(relationName,var("z"), var("a"), var("x"))// }, new IConstraint[] { /* * Reject (z sameAs y) as the head. */ // new RejectAnythingSameAsItself(var("z"),var("a"),var("y"),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 RuleOwlSameAs3(db, vocab);
final Rule tmp = new RuleOwlSameAs3(db, vocab);
final Rule r = new RuleOwlSameAs3(store.getSPORelation() .getNamespace(), vocab);
public RuleOwlSameAs3(String relationName, Vocabulary vocab) { super( "owlSameAs3", // new SPOPredicate(relationName,var("z"), var("a"), var("y")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y")),// new SPOPredicate(relationName,var("z"), var("a"), var("x"))// }, new IConstraint[] { /* * Reject (z sameAs y) as the head. */ // new RejectAnythingSameAsItself(var("z"),var("a"),var("y"),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 RuleOwlSameAs3(store.getSPORelation() .getNamespace(), vocab);
final Rule r = new RuleOwlSameAs3(store.getSPORelation() .getNamespace(), vocab);
program.addStep(new RuleOwlSameAs3(db,vocab));
program.addStep(new RuleOwlSameAs3(db,vocab));