/** * Delegates to {@link SubPropertiesOfClosureTask} * * @param propertyId * The property of interest. * * @return The closure. */ protected Set<IV> getSubPropertiesOf(IConstant<IV> propertyId) { return new SubPropertiesOfClosureTask(getView(), rdfsSubPropertyOf, propertyId).call(); }
/** * Delegates to {@link SubPropertyClosureTask} * * @return The closure. */ protected Set<IV> getSubProperties() { return new SubPropertyClosureTask(getView(), rdfsSubPropertyOf).call(); }
public RuleStats newInstance(IRuleState ruleState) { return new RDFRuleStats(null, getReadTimestamp(), ruleState); }
protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception { applyRule(db, rule, null/* filter */, expectedSolutionCount, expectedMutationCount); }
public void test_compareEntailments() throws Exception { // String[] resource = new String[]{"/com/bigdata/rdf/rules/testOwlSameAs.rdf"}; // String[] resource = new String[]{"/com/bigdata/rdf/rules/testOwlSameAs.rdf"}; String[] resource = new String[]{"com/bigdata/rdf/rules/small.rdf"}; String[] baseURL = new String[]{""}; RDFFormat[] format = new RDFFormat[]{RDFFormat.RDFXML}; doCompareEntailments(resource, baseURL, format); }
public MyRuleFastClosure6(String name, final String database, final String focusStore, final IConstant<IV> rdfsSubPropertyOf, final IConstant<IV> propertyId, final Set<IV> set) { super(name, database, rdfsSubPropertyOf, propertyId, new MyFastClosure_6_RuleTaskFactory(database, focusStore, rdfsSubPropertyOf, propertyId, set)); }
/** * {@inheritDoc} * <p> * Visits elements in the source {@link IAccessPath} plus all entailments * licensed by the {@link InferenceEngine}. */ @Override public IChunkedOrderedIterator<ISPO> iterator() { return iterator(0L/* offset */, 0L/* limit */, 0/* capacity */); }
/** * Note: This is the set {P} in the fast closure * program. */ public Set<IV> getSet() { return getSubProperties(); }
public IStepTask newTask(IRule rule, IJoinNexus joinNexus, IBuffer<ISolution[]> buffer) { return new DistinctTermScan(rule, joinNexus, buffer, h, keyOrder); }
@Override final public InferenceEngine getInferenceEngine() { synchronized (this) { if(inferenceEngine == null) { inferenceEngine = new InferenceEngine(this); } } return inferenceEngine; }
/** * Delegates to {@link SubPropertyClosureTask} * * @return The closure. */ protected Set<IV> getSubProperties() { return new SubPropertyClosureTask(getView(), rdfsSubPropertyOf).call(); }
/** * Delegates to {@link SubPropertiesOfClosureTask} * * @param propertyId * The property of interest. * * @return The closure. */ protected Set<IV> getSubPropertiesOf(IConstant<IV> propertyId) { return new SubPropertiesOfClosureTask(getView(), rdfsSubPropertyOf, propertyId).call(); }
public RuleStats newInstance(IRuleState ruleState) { return new RDFRuleStats(null, getReadTimestamp(), ruleState); }
protected void applyRule(AbstractTripleStore db, IRule rule, long expectedSolutionCount, long expectedMutationCount) throws Exception { applyRule(db, rule, null/* filter */, expectedSolutionCount, expectedMutationCount); }
public void test_compareEntailments() throws Exception { // String[] resource = new String[]{"/com/bigdata/rdf/rules/testOwlSameAs.rdf"}; // String[] resource = new String[]{"/com/bigdata/rdf/rules/testOwlSameAs.rdf"}; String[] resource = new String[]{"com/bigdata/rdf/rules/small.rdf"}; String[] baseURL = new String[]{""}; RDFFormat[] format = new RDFFormat[]{RDFFormat.RDFXML}; doCompareEntailments(resource, baseURL, format); }
public MyRuleFastClosure6(String name, final String database, final String focusStore, final IConstant<IV> rdfsSubPropertyOf, final IConstant<IV> propertyId, final Set<IV> set) { super(name, database, rdfsSubPropertyOf, propertyId, new MyFastClosure_6_RuleTaskFactory(database, focusStore, rdfsSubPropertyOf, propertyId, set)); }
/** * {@inheritDoc} * <p> * Visits elements in the source {@link IAccessPath} plus all entailments * licensed by the {@link InferenceEngine}. */ @Override public IChunkedOrderedIterator<ISPO> iterator() { return iterator(0L/* offset */, 0L/* limit */, 0/* capacity */); }
/** * Note: This is the set {P} in the fast closure * program. */ public Set<IV> getSet() { return getSubProperties(); }