pieter
ATApache TinkerPop
•Created by pieter on 10/18/2024 in #questions
select T.id + optional properties
This is what I ended up going with,
Thanks
5 replies
ATApache TinkerPop
•Created by pieter on 10/18/2024 in #questions
select T.id + optional properties
Thanks, I'll try
coalesce
.5 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Ok, thanks
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Ok and that it not just saying that all properties are optional, but that they can have different types even if they are on the same label?
label: 'Person', "ID": 1, name: "John"
label: 'Person', "ID": 2, name: 1L
This kind of modelling is ok?
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Are labels on Neptune more like a tag, i.e. different vertices with the same label might have completely different properties?
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Yeah, I'd suggest that
TinkerGraph
not be used as a guide for schema/meta management but rather Janus
, ArcadeGraph
and others.20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Actually come to think of it, the above is wrong, as it needs to migrate all edges attached to the vertex also.
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
"
g.V(1).property(label, 'new-label')
and just change it for one vertex"
I see this as a,
On Sqlg
at least only some rdbms support transactional schema changes, which means its best to handle the schema outside of the data.20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
I'd prefer a more dedicated approach. An api (gremlin lang) that deals with schema creation and modification.
Gremlin comes with a implicit meta model, which can be supported fairly easily. We need to leave some extension points for all the implementation specific details that exist outside of Gremlin's meta model.
Stuff like partitions, gis, strange data types and ...
What I have in mind is something like,
From what I have seen this is the approach most implementations have taken.
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
What you are doing, I think of as a
renameVertexLabel
operation. Most graphs have a custom api to handle such things.20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/24/2024 in #questions
Why is T.label immutable and do we have to create a new node to change a label?
Hi,
Gremlin has no support for managing a graph's schema, so what you are doing is wrong.
20 replies
ATApache TinkerPop
•Created by Julius Hamilton on 9/20/2024 in #questions
Defining Hypergraphs
I always understood that back in the day Marko and crew decided that hypergraphs can be modeled by a property graph. You have to stick a vertex in the middle that represents the hyper edge.
This leaves the query language without any first class constructs about navigating a hyper edges but everything is reachable.
Another problem would be performance, the more abstraction away from the implementation on disc, the slower the graph becomes.
6 replies
ATApache TinkerPop
•Created by pieter on 11/17/2023 in #questions
search for vertices where multiple properties
Yes, however I am more interested in a general solution.
Something like this maybe?
This messes with the
has
signature, but gives the idea.6 replies
ATApache TinkerPop
•Created by pieter on 11/17/2023 in #questions
search for vertices where multiple properties
Thinking a bit more this one however is a little hard coded in the sense that it does not take a collection of sorts. Some kind of specialized
P.within
In my current use case there are thousands of name
, surname
pairs to filter on.6 replies
ATApache TinkerPop
•Created by pieter on 11/17/2023 in #questions
search for vertices where multiple properties
Ah thanks, that is a better query.
6 replies
ATApache TinkerPop
•Created by porunov on 5/26/2023 in #questions
Does bulking optimization provided by LazyBarrierStrategy improves query performance?
Don't know much about the Lazy barrier, however, Sqlg removes all TinkerPop barrier steps. TinkerPop has no notion of managing memory and nor should it. Loading a full query result into memory risks crashing the jvm. Better to let the underlying db manage the results.
9 replies