[英]How to delete a graph schema using Gremlin
This question refers to Gremlin 3.0.2. 这个问题涉及Gremlin 3.0.2。
I want to delete the schema of a graph in order to clear out all metadata in the backend storage 我想删除图表的架构,以清除后端存储中的所有元数据
Using Java to talk to Titan one could write 使用Java与Titan交谈可以写
graph.close();
TitanCleanup.clear(graph);
Is there something similarly simple available in Gremlin? Gremlin有同样简单的东西吗? To make it more clearly, it's not about deleting all vertices and edges of the graph. 为了使其更清晰,它不是要删除图形的所有顶点和边缘。 This has already been done at this point. 这已经在这一点上完成了。
As of v3.2.x, TinkerPop only provides an API for graph elements ( Structure
) and traversals ( Process
). 从v3.2.x开始,TinkerPop仅为图元素( Structure
)和遍历( Process
)提供API。 It doesn't provide an abstraction over graph schema (properties and indexes): this is left to the responsibility of the implementer and the end user must use these third-party APIs. 它不提供对图模式(属性和索引)的抽象:这由实现者负责,最终用户必须使用这些第三方API。
You can dig the official TinkerPop mailing list for relevant discussions on the topic. 您可以挖掘官方TinkerPop邮件列表,以获取有关该主题的相关讨论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.