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

Graql: Support for lists of arguments (ids, labels, properties) #62

Closed
grabl opened this issue Sep 21, 2018 · 1 comment
Closed

Graql: Support for lists of arguments (ids, labels, properties) #62

grabl opened this issue Sep 21, 2018 · 1 comment

Comments

@grabl
Copy link
Contributor

grabl commented Sep 21, 2018

This issue was originally posted by @haikalpribadi on 2018-04-22 22:47.

We want to implement a new feature in Graql syntax: the ability to provide a set of arguments to a given graql statement. For example, the ability to provide the following statement in the schema:

define person sub entity, has email [unique, max=3];

Defining multiple ids:

match $x isa person; $x id [V123, V456]; get;

-> useful for KGlib, set-at-a-time reasoning

Defining multiple values:

match $x has name [Bob, Alice, Stefan]; get

Defining multiple labels:

match $x isa $type; $type label [person, animal]; get;

All these would work as if the multiple elements were defined via a disjunction.

@marco-scoppetta marco-scoppetta transferred this issue from typedb/typedb May 1, 2019
@kasper-piskorski kasper-piskorski changed the title Graql: use square brackets to represent list of arguments Graql: Support for lists of arguments (ids, labels, properties) May 1, 2019
@alexjpwalker
Copy link
Member

Superseded by #213

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

4 participants