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
Version 1.4.7. Select does not return the proper count of edges when doing "Select from User" returns the following result. My Script to setup this data at end of this message
create class User extends V;
create class Language extends V;
create class Label extends V;
create class Email extends V;
create class City extends V;
create Links/Edges
create class has extends E;
create class speaks extends E;
create class is extends E;
create class translatesTo extends E;
create class livesIn extends E;
create User Data
create vertex User set name = 'Luca';
create vertex User set name = 'Joe';
create Language Data
create vertex Language set name = 'En-uk';
create vertex Language set name = 'En-us';
create vertex Language set name = 'Fr-fr';
create vertex Language set name = 'Ru-ru';
create vertex Language set name = 'Ar-sy';
create Label Data
create vertex Label set name = 'Hello';
create vertex Label set name = 'Salut';
create vertex Label set name = 'Ciao';
create vertex Label set name = 'Good day';
create vertex Label set name = 'Bonjour';
create vertex Label set name = 'Hallo';
create vertex Label set name = 'Marhaba';
create vertex Label set name = 'Salut2';
create edge has from (select from User where name = 'Luca') to (select from Email where email = 'Luca@gmail.com');
create edge has from (select from User where name = 'Luca') to (select from Email where email = 'Luca@hotmail.com');
City
create vertex City set name = 'Montreal';
create vertex City set name = 'Toronto';
create vertex City set name = 'New York';
create vertex City set name = 'Roma';
edges for City
create edge livesIn from (select from User where name = 'Luca') to (select from City where name = 'Roma');
create edge livesIn from (select from User where name = 'Luca') to (select from City where name = 'Montreal');
index
create property speaks.out LINK;
create property speaks.in LINK;
CREATE INDEX unique_speaks ON speaks (in, out) UNIQUE;
create property translatesTo.out LINK;
create property translatesTo.in LINK;
CREATE INDEX unique_translatesTo ON translatesTo (in, out) UNIQUE;
create the links between the User->Language
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'En-uk');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'En-us');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'Fr-fr');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'Ar-sy');
create edge speaks from (select from User where name = 'Joe') to (select from Language where name = 'En-uk');
create edge speaks from (select from User where name = 'Joe') to (select from Language where name = 'En-us');
create the links between label and language
create edge is from (select from Label where name = 'Hello') to (select from Language where name = 'En-uk');
create edge is from (select from Label where name = 'Hello') to (select from Language where name = 'En-us');
create edge is from (select from Label where name = 'Salut') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Salut2') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Ciao') to (select from Language where name = 'It-it');
create edge is from (select from Label where name = 'Good day') to (select from Language where name = 'En-uk');
create edge is from (select from Label where name = 'Bonjour') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Hallo') to (select from Language where name = 'Ru-ru');
create edge is from (select from Label where name = 'Marhaba') to (select from Language where name = 'Ar-sy');
create the links between labels
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Good day') SET ncount = 3;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Hallo') SET ncount = 2;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Salut') SET ncount = 5;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Salut2') SET ncount = 7;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Ciao') SET ncount = 10;
create edge translatesTo from (select from Label where name = 'Good day') to (select from Label where name = 'Bonjour');
create edge translatesTo from (select from Label where name = 'Bonjour') to (select from Label where name = 'Marhaba');
create edge translatesTo from (select from Label where name = 'Hallo') to (select from Label where name = 'Marhaba');
create edge translatesTo from (select from Label where name = 'Salut') to (select from Label where name = 'Hallo') SET ncount = 1;
create edge translatesTo from (select from Label where name = 'Salut') to (select from Label where name = 'Salut2') SET ncount = 4;
The text was updated successfully, but these errors were encountered:
@Laa, as request by @enisher
Version 1.4.7. Select does not return the proper count of edges when doing "Select from User" returns the following result. My Script to setup this data at end of this message
----+------+----+-------+-----------+----------
|@Rid |name|out_has|out_livesIn|out_speaks
----+------+----+-------+-----------+----------
0 |#11:0 |Luca|[0] |[0] |[0]
1 |#11:-2|Joe |null |null |[0]
----+------+----+-------+-----------+----------
create classes/Vectors
create class User extends V;
create class Language extends V;
create class Label extends V;
create class Email extends V;
create class City extends V;
create Links/Edges
create class has extends E;
create class speaks extends E;
create class is extends E;
create class translatesTo extends E;
create class livesIn extends E;
create User Data
create vertex User set name = 'Luca';
create vertex User set name = 'Joe';
create Language Data
create vertex Language set name = 'En-uk';
create vertex Language set name = 'En-us';
create vertex Language set name = 'Fr-fr';
create vertex Language set name = 'Ru-ru';
create vertex Language set name = 'Ar-sy';
create Label Data
create vertex Label set name = 'Hello';
create vertex Label set name = 'Salut';
create vertex Label set name = 'Ciao';
create vertex Label set name = 'Good day';
create vertex Label set name = 'Bonjour';
create vertex Label set name = 'Hallo';
create vertex Label set name = 'Marhaba';
create vertex Label set name = 'Salut2';
emails
create vertex Email set email = 'Luca@gmail.com';
create vertex Email set email = 'Luca@hotmail.com';
edges for emails
create edge has from (select from User where name = 'Luca') to (select from Email where email = 'Luca@gmail.com');
create edge has from (select from User where name = 'Luca') to (select from Email where email = 'Luca@hotmail.com');
City
create vertex City set name = 'Montreal';
create vertex City set name = 'Toronto';
create vertex City set name = 'New York';
create vertex City set name = 'Roma';
edges for City
create edge livesIn from (select from User where name = 'Luca') to (select from City where name = 'Roma');
create edge livesIn from (select from User where name = 'Luca') to (select from City where name = 'Montreal');
index
create property speaks.out LINK;
create property speaks.in LINK;
CREATE INDEX unique_speaks ON speaks (in, out) UNIQUE;
create property translatesTo.out LINK;
create property translatesTo.in LINK;
CREATE INDEX unique_translatesTo ON translatesTo (in, out) UNIQUE;
create the links between the User->Language
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'En-uk');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'En-us');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'Fr-fr');
create edge speaks from (select from User where name = 'Luca') to (select from Language where name = 'Ar-sy');
create edge speaks from (select from User where name = 'Joe') to (select from Language where name = 'En-uk');
create edge speaks from (select from User where name = 'Joe') to (select from Language where name = 'En-us');
create the links between label and language
create edge is from (select from Label where name = 'Hello') to (select from Language where name = 'En-uk');
create edge is from (select from Label where name = 'Hello') to (select from Language where name = 'En-us');
create edge is from (select from Label where name = 'Salut') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Salut2') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Ciao') to (select from Language where name = 'It-it');
create edge is from (select from Label where name = 'Good day') to (select from Language where name = 'En-uk');
create edge is from (select from Label where name = 'Bonjour') to (select from Language where name = 'Fr-fr');
create edge is from (select from Label where name = 'Hallo') to (select from Language where name = 'Ru-ru');
create edge is from (select from Label where name = 'Marhaba') to (select from Language where name = 'Ar-sy');
create the links between labels
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Good day') SET ncount = 3;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Hallo') SET ncount = 2;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Salut') SET ncount = 5;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Salut2') SET ncount = 7;
create edge translatesTo from (select from Label where name = 'Hello') to (select from Label where name = 'Ciao') SET ncount = 10;
create edge translatesTo from (select from Label where name = 'Good day') to (select from Label where name = 'Bonjour');
create edge translatesTo from (select from Label where name = 'Bonjour') to (select from Label where name = 'Marhaba');
create edge translatesTo from (select from Label where name = 'Hallo') to (select from Label where name = 'Marhaba');
create edge translatesTo from (select from Label where name = 'Salut') to (select from Label where name = 'Hallo') SET ncount = 1;
create edge translatesTo from (select from Label where name = 'Salut') to (select from Label where name = 'Salut2') SET ncount = 4;
The text was updated successfully, but these errors were encountered: