wiebe
ATApache TinkerPop
•Created by wiebe on 6/1/2023 in #questions
G.V() Query syntax error
This query from the reference, fails in gdotv 1.28.62:
V().has('name',not(within('josh','marko'))).elementMap()
With :
"Syntax Error (ln 1:21): Missing Gremlin Step Parameters or closing ')' symbol"
This succeeds:
V().has('name',without('josh','marko')).elementMap()
Equally, g.V().has('name',neq('josh')).elementMap() succeeds, while g.V().has('name',not(eq('josh'))).elementMap() gives an error.
11 replies
ATApache TinkerPop
•Created by wiebe on 4/24/2023 in #questions
g.V(1).property() on 1 item fails in 1.18.49
It seems 'anything property' on single item fails in gdotv 1.18.49:
g.V(1).properties() -> []
g.V(1).propertyMap() -> []
g.V().propertyMap() is OK.
g.V().limit(1).propertyMap() is also OK.
12 replies
ATApache TinkerPop
•Created by wiebe on 4/20/2023 in #questions
g.E().properties().element() gives weird (wrong?) results
g.E().properties().element() doesn't return what I expect.
Using TinkerPop modern:
g.E().properties().element()
[e[7][1-knows->2],
e[8][1-knows->4],
e[8][1-knows->4],
e[9][1-created->3],
e[9][1-created->3],
e[12][6-created->3]]
Item 1 (2nd) and 2 are duplicate, so are 3 and 4. e[10][4-created-5] and e[11][4-created-3] are missing.
g.E().properties().element().path() (and g.E().properties().path() too) work as expected:
path[e[7][1-knows->2], p[weight->0.5], e[7][1-knows->2]],
path[e[8][1-knows->4], p[weight->1.0], e[8][1-knows->4]],
path[e[9][1-created->3], p[weight->0.4], e[9][1-created->3]],
path[e[10][4-created->5], p[weight->1.0], e[10][4-created->5]],
path[e[11][4-created->3], p[weight->0.4], e[11][4-created->3]],
path[e[12][6-created->3], p[weight->0.2], e[12][6-created->3]]
I upgraded to gdotv 1.18.49. The results are different, but still unexpected (still 2 duplicate edges, and 2 edges missing).
26 replies
ATApache TinkerPop
•Created by wiebe on 4/20/2023 in #questions
Readable IDs vs GUIDs
I just upgraded gdotv from 0.9.x to 1.18.49 to check if an unexpected result still persists.
However, the query results with the GUIDs make them near impossible to read. There's no way to check the result against the images of the modern dataset.
Is there a way to get the old, normal IDs back (v1, v2, etc)?
13 replies
ATApache TinkerPop
•Created by wiebe on 4/4/2023 in #questions
What is the ordering of group?
For instance (on Tinkerpop modern)
g.V().group().by('age').by('name')
gives
[{32=[josh], 35=[peter], 27=[vadas], 29=[marko]}]
There must be some logic to it?
(Understanding this would help me for unit testing, allowing me to compare results that are actually the same)
16 replies