protected abstract static class AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask extends Object implements IStepTask
getSet().| Modifier and Type | Field and Description |
|---|---|
protected IConstant<IV> |
propertyId |
protected IConstant<IV> |
rdfsSubPropertyOf |
| Constructor and Description |
|---|
AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask(String database,
String focusStore,
IRule rule,
IJoinNexus joinNexus,
IBuffer<ISolution[]> buffer,
IConstant<IV> rdfsSubPropertyOf,
IConstant<IV> propertyId)
(?x, {P}, ?y) -> (?x, propertyId, ?y)
Note: Both the database and the (optional) focusStore relation names
MUST be declared for these rules. |
| Modifier and Type | Method and Description |
|---|---|
RuleStats |
call()
Evaluate the rule.
|
protected abstract Set<IV> |
getSet()
Return the set of term identifiers that will be processed by the
rule.
|
protected IV[] |
getSortedArray(Set<IV> ivs)
Convert a
Set of term identifiers into a sorted array of term
identifiers. |
protected Set<IV> |
getSubProperties()
|
protected Set<IV> |
getSubPropertiesOf(IConstant<IV> propertyId)
|
protected IRelation<ISPO> |
getView()
|
public AbstractRuleFastClosure_3_5_6_7_9.FastClosureRuleTask(String database, String focusStore, IRule rule, IJoinNexus joinNexus, IBuffer<ISolution[]> buffer, IConstant<IV> rdfsSubPropertyOf, IConstant<IV> propertyId)
(?x, {P}, ?y) -> (?x, propertyId, ?y)
Note: Both the database and the (optional) focusStore relation names
MUST be declared for these rules. While the rule only declares a
single tail predicate, there is a "hidden" query based on the
[database + focusStore] fused view that populates the P,D,C,R, or T
Set which is an input to the custom evaluation of the rule.database - Name of the database relation (required).focusStore - Optional name of the focusStore relation (may be null).
When non-null, this is used to query the
fused view of the [database + focusStore] in
getView().rule - The rule.joinNexus - buffer - A buffer used to accumulate chunks of entailments.rdfsSubPropertyOf - The Constant corresponding to the term identifier
for rdfs:subPropertyOf.propertyId - The propertyId to be used in the assertions.protected IV[] getSortedArray(Set<IV> ivs)
Set of term identifiers into a sorted array of term
identifiers.
Note: When issuing multiple queries against the database, it is generally faster to issue those queries in key order.
protected abstract Set<IV> getSet()
Note: The subclass need only invoke getSubProperties() or
getSubPropertiesOf(IConstant) as appropriate for the rule.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.