简体   繁体   English

如何使用Gremlin删除图形模式

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

相关问题 如何使用 Python / Gremlin 为 Neptune 数据库定义架构和数据库? - How to define schema & database for a Neptune database using Python / Gremlin? 如何使用Gremlin从CosmosDB图生成自定义JSON输出? - How to generate a custom JSON output from a CosmosDB Graph using Gremlin? 如何使用gremlin获取图数据库中边字段的总和? - How to get the sum of a edge field in graph database using gremlin? 如何使用 TinkerPop/Gremlin 处理图形数据的大型 .kryo 文件 - How to process large .kryo files for graph data using TinkerPop/Gremlin 如何使用 Gremlin 检查图形中是否存在节点/顶点/边 - How to check the node/vertex/Edge is present in the Graph using Gremlin 使用 gremlin 查询 ACL/权限图? - Querying ACL/permissions graph using gremlin? Gremlin Python Gizmo如何在图db中查询 - Gremlin Python Gizmo how to query in graph db 如何用gremlin在titan graph数据库中找到clique? - How to find clique in titan graph database with gremlin? 如何通过使用Gremlin在图中通过公共同级对不同父级的所有同级节点进行分组 - How to group all sibling nodes from different parents by common sibling in a graph using Gremlin 如何使用C#在gremlin服务器中创建,更新和删除边缘和顶点? - How to create , update and delete edges and vertices in gremlin server using C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM