Interface FactBase
- All Superinterfaces:
fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo, fr.inria.rules.dlgpemodel.api.sentences.IFact, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, fr.inria.rules.dlgpemodel.api.sentences.ISentence, Iterable<Atom>, Labeled, MaterializedData, Printable, QueryableData, Sentence, TermCompound, Writable
- All Known Implementing Classes:
DefaultInMemoryAtomSet, FactBaseDelAtomsWrapper, FederatedFactBase, LightInMemoryGraphStore, RDBMSStore, SimpleInMemoryGraphStore, TripleStoreStore
public interface FactBase
extends MaterializedData, Writable, Printable, Sentence, fr.inria.rules.dlgpemodel.api.sentences.IFact
A FactBase represents a set of Atom seen as a conjunction
- Author:
- Florent Tornil, Federico Ulliana, Guillaume Pérution-Kihli
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo
IDENTFields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclear()Removes all atoms from the fact base.default List<ColumnType> getColumnsType(Predicate viewPredicate) Returns the column types used to expose a predicate.getDescription(Predicate viewPredicate) Returns the storage description associated with a predicate.default fr.inria.rules.dlgpemodel.api.formulas.IFormulagetHead()Not so efficient implementation of IFact's getHead().Returns the storage type associated with a predicate.Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo
getIdentifier, getInfo, getItemInfo, setIdentifier, setInfo, setItemInfoMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.ISentence
setPatternsMethods 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 Sentence
getLabel, getPatterns, setLabelMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getTerms, getVariables
-
Method Details
-
getHead
default fr.inria.rules.dlgpemodel.api.formulas.IFormula getHead()Not so efficient implementation of IFact's getHead(). Should only be used for writing on the DLGPE side.- Specified by:
getHeadin interfacefr.inria.rules.dlgpemodel.api.sentences.IFact- Returns:
- a conjunction view over the current fact base content
-
getDescription
Returns the storage description associated with a predicate.- Parameters:
viewPredicate- a predicate- Returns:
- the description of the storage
-
getType
Returns the storage type associated with a predicate.- Parameters:
viewPredicate- a predicate- Returns:
- the type of storage used for the given predicate
-
getColumnsType
Returns the column types used to expose a predicate.- Parameters:
viewPredicate- a predicate- Returns:
- the type of the columns for the given predicate
-
clear
-