- Unable to delete/modify vertices of static labels
Re: Unable to delete/modify vertices of static labels
toggle quoted messageShow quoted text
If you need to modify a vertex or possibly delete it before the TTL, then you'll probably want to create a regular vertex. You could create a 'ttl' property and a mixed index on it. In this way, you could create a reaper process that does g.V().has('mylabel', 'ttl', lt(currentTime-ttl)).drop().
On Mon, Sep 25, 2017 at 2:11 AM, <abhayti...@...>
I have made some vertices using Janusgraph-api in java and used Cassandra as backend db. I wanted to use TTL, so I made static vertex labels using JanusgraphManagement. Vertex Labels were made using this code :-
JanusGraphSchemaType vertexLabel = mgmt.makeVertexLabel(label).setStatic().make();
But now I am unable to delete those vertices, as it is throwing this error everytime :-
org.janusgraph.core.SchemaViolationException: Cannot modify unmodifiable vertex: v
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.verifyWriteAccess(StandardJanusGraphTx.java:281) ~[janusgraph-core-0.1.1.jar:na]
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.removeRelation(StandardJanusGraphTx.java:605) ~[janusgraph-core-0.1.1.jar:na]
I understand that, since vertex labels are static, we cannot delete it. So, is there any way, wherein we may be able to delete/modify vertices as well as set TTL to them using Janusgraph and Cassandra.
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/3a627d39-1f9b-42cb-9d7a-0e6cf21a13e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Join email@example.com to automatically receive all group messages.