Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Index does not return value for query with 3 EvaluationLink and 3 variables #3

@stellarspot

Description

@stellarspot

Data:

(ImplicationLink
 (AndLink
  (EvaluationLink
   (PredicateNode "P")
   (ListLink
    (ConceptNode "A1")
    (ConceptNode "A2")))
  (EvaluationLink
   (PredicateNode "P")
   (ListLink
    (ConceptNode "A1")
    (ConceptNode "A3")))
  (EvaluationLink
   (PredicateNode "P")
   (ListLink
   (ConceptNode "A2")
   (ConceptNode "A3")))))

Query which can be placed into patternIndexQueryExample.cc file (see #1 and #2)

        std::string queryStr1 = "(ImplicationLink \
                                  (AndLink\
                                   (EvaluationLink\
                                     (PredicateNode \"P\")\
                                       (ListLink\
                                         (VariableNode \"A1\")\
                                         (VariableNode \"A2\")\
                                       )\
                                   )\
                                   (EvaluationLink\
                                     (PredicateNode \"P\")\
                                       (ListLink\
                                         (VariableNode \"A1\")\
                                         (VariableNode \"A3\")\
                                       )\
                                   )\
                                   (EvaluationLink\
                                     (PredicateNode \"P\")\
                                       (ListLink\
                                         (VariableNode \"A2\")\
                                         (VariableNode \"A3\")\
                                       )\
                                   )\
                                  )\
                                 )";

The result is

Query 1:
Result: (ListLink
) ; [9224779411738298928][1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions