Class ContainPropositions


  • public class ContainPropositions
    extends Object
    Handles and evaluation contain proposition: Simple contain chain (e.g. CONTAINS [...] CONTAINS [...]...) are evaluated for existence of paths within defined templates Complex contain (expressed as logical expressions of Simple Contains) are evaluated as set operation (intersection, union. disjunction)
    • Constructor Detail

      • ContainPropositions

        public ContainPropositions​(IdentifierMapper identifierMapper)
    • Method Detail

      • evaluate

        public void evaluate​(KnowledgeCacheService knowledgeCache)
        evaluate the set of proposition IN-ORDER. The results are given as: - a list of templates for which the propositions are satisfied - paths in containers for each identified template
        Parameters:
        knowledgeCache -
      • resolvedTemplates

        public Set<String> resolvedTemplates()
        returns the list of templates for the expression
        Returns:
      • requiresTemplateWhereClause

        public boolean requiresTemplateWhereClause()
        true if this expression is for a simple COMPOSITION containment (e.g. no embedded CONTAINs)
        Returns:
      • hasContains

        public boolean hasContains()