Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label BGPs with :as #200

Open
quoll opened this issue Jul 14, 2021 · 0 comments
Open

Label BGPs with :as #200

quoll opened this issue Jul 14, 2021 · 0 comments

Comments

@quoll
Copy link
Contributor

quoll commented Jul 14, 2021

Basic Graph Patterns in queries will match to statements, but statements also have IDs (already in durable storage. #198 for in-memory)

Add an :as modifier to :where clauses. This follows a BGP.
e.g.
[:find ?v :stmt :where [?node :name "example"] [?node :attribute ?v] :as ?stmt]

This will bind the statement ID to the ?stmt variable.

Issue #199 is already looking to extend the resolve-triple function to 6 arity, though because storage already treats statement IDs as the 4th element of a tuple then this may be a simple 5-arity extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant