pieter
ATApache TinkerPop
•Created by pieter on 11/16/2024 in #questions
Using java/gremlin inside python with Jpype!
I recently experimented with using Jpype to give the python world at my day job access to
Sqlg
. It seems a very easy and powerful way to give python code full access to the any java api. In my case I am making SqgGraph
available to python. It is about 5 lines of setup code and voila, the python code has the same functionality as native java.
Does anyone use Jpype, anything caveats I should know about?1 replies
ATApache TinkerPop
•Created by pieter on 10/18/2024 in #questions
select T.id + optional properties
I am trying to work out how to select vertex id and some optional properties.
select().by
does not work as it filters out not productive
properties.
Here is the sample graph I am testing this on.
The first gremlin produces one row as it filters out the 'B' with no 'prop2'
The second gremlin crashes with
I am looking to retrieve A.id, prop1, B.id, prop2 where prop1 and prop2 to are optional fields.5 replies
ATApache TinkerPop
•Created by pieter on 11/17/2023 in #questions
search for vertices where multiple properties
I need to search for vertices where multiple properties are a certain value.
Here is what I am able to come up with.
This will print out,
The second query is the results I am looking for, but is there a better way to do this?
Using
concat
and filter
is hard to optimize.6 replies