protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception { applyRule(db, rule, null/* filter */, expectedSolutionCount, expectedMutationCount); }
assertNotNull("bindings not requested?", actual); if(!findAndClear(actual, expected)) { fail("Not found: ndone=" + n + ", bindingSet=" + actual); assertEquals("#of solutions", n, expected.length);
/** * Extended to explicitly turn on * {@link Options#FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE} for testing * {@link RuleRdfs04}. */ public Properties getProperties() { Properties properties = new Properties(super.getProperties()); properties.setProperty(Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, "true"); return properties; }
assertEquals("solutionCount(Query)", expectedSolutionCount, n); + rule.getName() + " :: " + rule); assertEquals("mutationCount(Insert)", expectedMutationCount, actualMutationCount);
assertEquals("solutionCount(Query)", expectedSolutionCount, n); + rule.getName() + " :: " + rule); assertEquals("mutationCount(Insert)", expectedMutationCount, actualMutationCount);
/** * Extended to explicitly turn on * {@link Options#FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE} for testing * {@link RuleRdfs04}. */ public Properties getProperties() { Properties properties = new Properties(super.getProperties()); properties.setProperty(Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, "true"); return properties; }
assertNotNull("bindings not requested?", actual); if(!findAndClear(actual, expected)) { fail("Not found: ndone=" + n + ", bindingSet=" + actual); assertEquals("#of solutions", n, expected.length);
protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception { applyRule(db, rule, null/* filter */, expectedSolutionCount, expectedMutationCount); }
assertEquals("solutionCount(Query)", expectedSolutionCount, n); + rule.getName() + " :: " + rule); assertEquals("mutationCount(Insert)", expectedMutationCount, actualMutationCount);
/** * Overrides some properties. */ public Properties getProperties() { final Properties properties = super.getProperties(); // restrict to RDFS only since that is what Sesame 2 will compute. properties .setProperty( com.bigdata.rdf.store.AbstractTripleStore.Options.AXIOMS_CLASS, RdfsAxioms.class.getName()); /* * Don't compute closure in the data loader since it does TM, not * database at once closure. */ properties.setProperty(DataLoader.Options.CLOSURE, ClosureEnum.None .toString()); // properties.setProperty(InferenceEngine.Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, // "true"); return properties; }
assertNotNull("bindings not requested?", actual); if(!findAndClear(actual, expected)) { fail("Not found: ndone=" + n + ", bindingSet=" + actual); assertEquals("#of solutions", n, expected.length);
protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception { applyRule(db, rule, null/* filter */, expectedSolutionCount, expectedMutationCount); }
/** * Overrides some properties. */ public Properties getProperties() { final Properties properties = super.getProperties(); // restrict to RDFS only since that is what Sesame 2 will compute. properties .setProperty( com.bigdata.rdf.store.AbstractTripleStore.Options.AXIOMS_CLASS, RdfsAxioms.class.getName()); /* * Don't compute closure in the data loader since it does TM, not * database at once closure. */ properties.setProperty(DataLoader.Options.CLOSURE, ClosureEnum.None .toString()); // properties.setProperty(InferenceEngine.Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, // "true"); return properties; }
/** * Extended to explicitly turn on * {@link Options#FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE} for testing * {@link RuleRdfs04}. */ public Properties getProperties() { Properties properties = new Properties(super.getProperties()); properties.setProperty(Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, "true"); return properties; }
/** * Overrides some properties. */ public Properties getProperties() { final Properties properties = super.getProperties(); // restrict to RDFS only since that is what Sesame 2 will compute. properties .setProperty( com.bigdata.rdf.store.AbstractTripleStore.Options.AXIOMS_CLASS, RdfsAxioms.class.getName()); /* * Don't compute closure in the data loader since it does TM, not * database at once closure. */ properties.setProperty(DataLoader.Options.CLOSURE, ClosureEnum.None .toString()); // properties.setProperty(InferenceEngine.Options.FORWARD_CHAIN_RDF_TYPE_RDFS_RESOURCE, // "true"); return properties; }
final Properties properties = super.getProperties();
final Properties properties = super.getProperties();
final Properties properties = super.getProperties();
final Properties properties = super.getProperties();
final Properties properties = super.getProperties();