/** * */ public void testMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
/** * @param vocab */ public RuleOwlEquivalentProperty(String relationName, Vocabulary vocab) { super( "owl:equivalentProperty",// new SPOPredicate(relationName,var("b"), vocab.getConstant(OWL.EQUIVALENTPROPERTY), var("a")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("a"), vocab.getConstant(OWL.EQUIVALENTPROPERTY), var("b"))// },// null//constraints ); }
/** * */ public void testClosureOfMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addClosureOf(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
/** * @param vocab */ public RuleOwlEquivalentProperty(String relationName, Vocabulary vocab) { super( "owl:equivalentProperty",// new SPOPredicate(relationName,var("b"), vocab.getConstant(OWL.EQUIVALENTPROPERTY), var("a")), // new SPOPredicate[] { // new SPOPredicate(relationName,var("a"), vocab.getConstant(OWL.EQUIVALENTPROPERTY), var("b"))// },// null//constraints ); }
/** * */ public void testMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
/** * */ public void testClosureOfMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addClosureOf(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
/** * */ public void testMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
/** * */ public void testClosureOfMappedRuleWithOneTail() { final AbstractTripleStore store = getStore(); try { final Vocabulary vocab = store.getVocabulary(); final boolean parallel = false; // actual value should not matter. final boolean closure = false; // actual value should not matter, // will map the rule across the database and the focusStore. final MappedProgram program = new MappedProgram(getName(), focusStore, parallel, closure); final IRule rule = new RuleOwlEquivalentProperty(database, vocab); log.info("\n"+rule); program.addClosureOf(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
program.addClosureOf(new RuleOwlEquivalentProperty(db, vocab));
program.addClosureOf(new RuleOwlEquivalentProperty(db, vocab));
final Rule r = new RuleOwlEquivalentProperty(store.getSPORelation() .getNamespace(), vocab);
final Rule r = new RuleOwlEquivalentProperty(store.getSPORelation() .getNamespace(), vocab);
final Rule r = new RuleOwlEquivalentProperty(store.getSPORelation() .getNamespace(), vocab);
program.addStep(new RuleOwlEquivalentProperty(db,vocab));
program.addStep(new RuleOwlEquivalentProperty(db,vocab));