Unable to delete/modify vertices of static labels


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[8196228]
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.

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.