/** * @param vocab */ public RuleFastClosure11(String relationName, Vocabulary vocab) { super( "fastClosure11",// new SPOPredicate(relationName,var("x"), vocab.getConstant(RDF.TYPE), var("b")),// new SPOPredicate[] {// new SPOPredicate(relationName,var("x"), var("y"), var("z")),// new SPOPredicate(relationName,var("y"), vocab.getConstant(RDFS.SUBPROPERTYOF), var("a")),// new SPOPredicate(relationName,var("a"), vocab.getConstant(RDFS.DOMAIN), var("b"))// }, new IConstraint[] { Constraint.wrap(new NE(var("y"),var("a"))) }); }
RuleFastClosure11 rule = new RuleFastClosure11(store .getSPORelation().getNamespace(), vocab);
RuleFastClosure11 rule = new RuleFastClosure11(store .getSPORelation().getNamespace(), vocab);
program.addStep(new RuleFastClosure11(db, vocab));
/** * @param vocab */ public RuleFastClosure11(String relationName, Vocabulary vocab) { super( "fastClosure11",// new SPOPredicate(relationName,var("x"), vocab.getConstant(RDF.TYPE), var("b")),// new SPOPredicate[] {// new SPOPredicate(relationName,var("x"), var("y"), var("z")),// new SPOPredicate(relationName,var("y"), vocab.getConstant(RDFS.SUBPROPERTYOF), var("a")),// new SPOPredicate(relationName,var("a"), vocab.getConstant(RDFS.DOMAIN), var("b"))// }, new IConstraint[] { Constraint.wrap(new NE(var("y"),var("a"))) }); }
program.addStep(new RuleFastClosure11(db, vocab));
RuleFastClosure11 rule = new RuleFastClosure11(store .getSPORelation().getNamespace(), vocab);