/** * @param vocab */ public RuleOwlSameAs1(String relationName, Vocabulary vocab) { super( "owlSameAs1",// new SPOPredicate(relationName,var("y"), vocab.getConstant(OWL.SAMEAS), var("x")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y"))// }, new IConstraint[] { Constraint.wrap(new NE(var("x"),var("y"))) } ); }
program.addClosureOf(new RuleOwlSameAs1(db, vocab));
program.addClosureOf(new RuleOwlSameAs1(db, vocab));
final Rule r = new RuleOwlSameAs1(store.getSPORelation() .getNamespace(), vocab);
/** * @param vocab */ public RuleOwlSameAs1(String relationName, Vocabulary vocab) { super( "owlSameAs1",// new SPOPredicate(relationName,var("y"), vocab.getConstant(OWL.SAMEAS), var("x")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("x"), vocab.getConstant(OWL.SAMEAS), var("y"))// }, new IConstraint[] { Constraint.wrap(new NE(var("x"),var("y"))) } ); }
final Rule r = new RuleOwlSameAs1(store.getSPORelation() .getNamespace(), vocab);
final Rule r = new RuleOwlSameAs1(store.getSPORelation() .getNamespace(), vocab);
program.addStep(new RuleOwlSameAs1(db,vocab));
program.addStep(new RuleOwlSameAs1(db,vocab));