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

Materialized joins #5

Closed
mcollina opened this issue Apr 28, 2013 · 1 comment
Closed

Materialized joins #5

mcollina opened this issue Apr 28, 2013 · 1 comment

Comments

@mcollina
Copy link
Collaborator

As @dominictarr suggested in #4 :

a join is also a relationship on it's own, maybe it could return results in the {subject, object, predicate} triple also?

what about:

{ subject: 'daniele', object: 'marco', predicate: 'friend-of-friend' },
{ subject: 'daniele', object: 'matteo', predicate: 'friend-of-friend' },
{ subject: 'lucio', object: 'marco', predicate: 'friend-of-friend' },
{ subject: 'lucio', object: 'matteo', predicate: 'friend-of-friend' }

then, potentially, you could materialize these, or use them as parts of other joins?

An option might be something like:

db.materialize(conditions, 
{ subject: db.var("s"), predicate: db.var("p"), object: db.var("o") } , ....
@mcollina
Copy link
Collaborator Author

This has been published with #4.

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

No branches or pull requests

1 participant