MadeInChimpanzee
MadeInChimpanzee
ATApache TinkerPop
Created by MadeInChimpanzee on 6/1/2023 in #questions
The latest version of gremlin console cannot start on windows
I didn't notice. thank you
4 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
thanks so much. Great tip by me as a Gremlin newbie. If I can learn a little more deeply, I would like to contribute to the project by adding documentation for beginners.
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
I'm a little confused by the by step way of thinking that I was taught before.
......2> where('b', eq('a').and(neq('a'))).
......3> by('pattern').
......4> by('pattern').
......5> by().
......2> where('b', eq('a').and(neq('a'))).
......3> by('pattern').
......4> by('pattern').
......5> by().
I would like to make the following comparisons: Step X also seems to require a by without an argument, but I have no choice but to understand this as a specification. I can't understand it intuitively. (sorry for my poor english...)
b.pattern[from 1st by step ('pattern')] = a.pattern[from 2nd by step ('pattern')]
b.vartex[from X by step] ≠ a.vartex[from 3rd by step()
b.pattern[from 1st by step ('pattern')] = a.pattern[from 2nd by step ('pattern')]
b.vartex[from X by step] ≠ a.vartex[from 3rd by step()
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
It would be even better if the following query you showed me before works, because the comparison conditions can be arranged simply.
g.V().has('Question','code','0003').as('a').
out('has').in('has').as('b').
where('b', eq('a').and(neq('a')).and(gt('a'))).
by('pattern').
by('pattern').
by().
by('difficultyInPattern').
bothE()
g.V().has('Question','code','0003').as('a').
out('has').in('has').as('b').
where('b', eq('a').and(neq('a')).and(gt('a'))).
by('pattern').
by('pattern').
by().
by('difficultyInPattern').
bothE()
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
thanks so much. I understood very well! By what you mean by item is the number of elements in the step that applies by, right?
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
Thanks for answering. I was able to retrieve the desired data with the first query you wrote. But one question remains. It is that the behavior of by step cannot be understood intuitively. Is my by step understanding below correct?
1st by step => Specification to refer to the pattern value of b
2nd by step => Specification to refer to the pattern value of a (eq('a'))
3rd by step => Specification to refer to the vertexId of b (neq('a'))
4th by step => Omitted
1st by step => Specification to refer to the pattern value of b
2nd by step => Specification to refer to the pattern value of a (eq('a'))
3rd by step => Specification to refer to the vertexId of b (neq('a'))
4th by step => Omitted
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
attach the data
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
Thank you during this period. let me ask you one more question. Can the where in this query be a little simpler? ■query
g.V()
.has('Question','code','0003').as('q1')
.out('has')
.in('has')
.where(eq('q1')).by('pattern')
.where(neq('q1')).as('q2')
.where('q2',gt('q1')).by('difficultyInPattern').bothE()
g.V()
.has('Question','code','0003').as('q1')
.out('has')
.in('has')
.where(eq('q1')).by('pattern')
.where(neq('q1')).as('q2')
.where('q2',gt('q1')).by('difficultyInPattern').bothE()
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
thank you! I always use it conveniently!
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
thank you! I was able to do what I want to do! We will also learn about the by step. Thanks for the nice tip! I'll attach the script next time!
19 replies
ATApache TinkerPop
Created by MadeInChimpanzee on 4/6/2023 in #questions
tell me writing query this pattern
It's just a little while... can someone tell me...
19 replies