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
  • 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:
      getHead in interface fr.inria.rules.dlgpemodel.api.sentences.IFact
      Returns:
      a conjunction view over the current fact base content
    • getDescription

      FactBaseDescription getDescription(Predicate viewPredicate)
      Returns the storage description associated with a predicate.
      Parameters:
      viewPredicate - a predicate
      Returns:
      the description of the storage
    • getType

      FactBaseType getType(Predicate viewPredicate)
      Returns the storage type associated with a predicate.
      Parameters:
      viewPredicate - a predicate
      Returns:
      the type of storage used for the given predicate
    • getColumnsType

      default List<ColumnType> getColumnsType(Predicate viewPredicate)
      Returns the column types used to expose a predicate.
      Parameters:
      viewPredicate - a predicate
      Returns:
      the type of the columns for the given predicate
    • clear

      default void clear()
      Removes all atoms from the fact base.
      Specified by:
      clear in interface Writable