Skip to content

Query result includes variable name?Β #40

@d-vyd

Description

@d-vyd

The answer set for this query var solution = prolog.GetAllSolutions(null, query: "person(P), loc(P,bedroom)."); is:

Solution 1
P (atom) = adam

Solution 2
P (atom) = clara

Solution 3
P (namedvar) = P

Given the content of the database, there should only be two solutions. Why is "P" included and how can I avoid it? Do I need to check for the type (namedvar) or phrase my queries differently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions