You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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:
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.
The text was updated successfully, but these errors were encountered: