Skip to content

add extra_edges and extra_nodes to Result #95

@patrickkwang

Description

@patrickkwang

Servers occasionally want to return more information than was asked-for in the query graph. Rather than modifying the query graph and adding bindings, which could be confusing to the client, it may be more sensible to create fields in each result in which to store this "extra" information.

extra_nodes and extra_edges could be simple lists of knowledge-graph node ids and edge ids, respectively. Then each result is a subgraph of the knowledge graph in which a subset of nodes and edges are bound to elements from the query.

One potential problem with this approach is that it does not allow specification of exactly where in the result graph an extra edge is used. A result in general may include the same knowledge-graph node bound to multiple query-graph nodes, and an extra edge may be relevant to any number of these node instances. Which one(s) will be ambiguous.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions