public void testClosureOfMappedRuleWithTwoTails() { 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 RuleRdfs09(database,vocab); log.info("\n"+rule); program.addClosureOf(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
public void testMappedRuleWithTwoTails() { 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 RuleRdfs09(database,vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
public void testMappedRuleWithTwoTails() { 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 RuleRdfs09(database,vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
public void testClosureOfMappedRuleWithTwoTails() { 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 RuleRdfs09(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(); } }
/** * */ 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(); } }
vocab = db.getVocabulary();
vocab = db.getVocabulary();
public V asValue(final LexiconRelation lex) throws UnsupportedOperationException { V v = getValueCache(); if (v == null) { final BigdataValueFactory f = lex.getValueFactory(); v = (V) lex.getContainer().getVocabulary().asValue(this); v.setIV(this); setValue(v); } return v; }
public V asValue(final LexiconRelation lex) throws UnsupportedOperationException { V v = getValueCache(); if (v == null) { final BigdataValueFactory f = lex.getValueFactory(); v = (V) lex.getContainer().getVocabulary().asValue(this); v.setIV(this); setValue(v); } return v; }
public V asValue(final LexiconRelation lex) throws UnsupportedOperationException { V v = getValueCache(); if (v == null) { final BigdataValueFactory f = lex.getValueFactory(); v = (V) lex.getContainer().getVocabulary().asValue(this); v.setIV(this); setValue(v); } return v; }
public V asValue(final LexiconRelation lex) throws UnsupportedOperationException { V v = getValueCache(); if (v == null) { final BigdataValueFactory f = lex.getValueFactory(); v = (V) lex.getContainer().getVocabulary().asValue(this); v.setIV(this); setValue(v); } return v; }
public void testMappedRuleWithTwoTails() { 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 RuleRdfs09(database,vocab); log.info("\n"+rule); program.addStep(rule); log.info("\n"+program); } finally { store.__tearDownUnitTest(); } }
public void testClosureOfMappedRuleWithTwoTails() { 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 RuleRdfs09(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(); } }
store.getVocabulary());
assertEquals(2,store.getStatementCount()); final Vocabulary vocab = store.getVocabulary();