Interface DatalogDelegable
- All Superinterfaces:
Iterable<Atom>, MaterializedData, QueryableData, TermCompound, Writable
- All Known Implementing Classes:
RDBMSStore, TripleStoreStore
This interface represents storage systems that can directly apply datalog
rules as part of their implementation. Datalog rules are rules without
existential variables.
This is extended to the direct evaluation of conjunctive queries.
This is extended to the direct evaluation of conjunctive queries.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Iterator<Substitution> Evaluate the given (conjunctive) queryEvaluate the given (conjunctive) querybooleandelegate(Collection<FORule> rules) Apply all the given (datalog) rules.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface MaterializedData
contains, getAtomsByPredicate, getAtomsByTerm, getAtomSet, getTermsByPredicatePosition, isEmpty, iterator, size, streamMethods inherited from interface QueryableData
estimateBound, estimateBound, evaluate, evaluate, getAtomicPattern, getPredicates, getSupportedOperations, hasPredicateMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getTerms, getVariables
-
Method Details
-
delegate
Apply all the given (datalog) rules.- Parameters:
rules- the rules to apply- Returns:
- true iff at least one atom have been produced by the application of the rules
- Throws:
Exception- if a given rule is not datalog. The exact type is depending on the implementation
-
delegate
Evaluate the given (conjunctive) query- Parameters:
query- the query to evaluatecountAnswersOnly- true iff the query has to return only the number of answers- Returns:
- an
IteratorofSubstitutionover all the answers of the given query with respect to the query answer variables. - Throws:
Exception- if the given query is not conjunctive. The exact type is depending on the implementation
-
delegate
Evaluate the given (conjunctive) query- Parameters:
query- the query to evaluate- Returns:
- an
IteratorofSubstitutionover all the answers of the given query with respect to the query answer variables. - Throws:
Exception- if the given query is not conjunctive. The exact type is
-