【问题标题】:What is the equivalent of Titan getType in Blueprints?蓝图中 Titan getType 的等价物是什么? 【发布时间】:2014-03-07 18:32:18 【问题描述】: 我想尽可能多地改用蓝图,那么我该如何在蓝图中使用 Titan 的 getType? 【问题讨论】: 标签: graph graph-databases titan tinkerpop 【解决方案1】: 在蓝图中,没有像 TitanKey 这样的类型的特殊类,因为这不是每个图形框架都需要的。 在蓝图中,您只需将键名指定为 String。底层图形实现,在你的例子中是 TitanBlueprintsGraph,然后包装自己。 您可以看到here,如何获取特定蓝图元素上的所有键和here,如何设置它们。 This is 其中titan 封装了字符串和密钥,而您可以看到here 它是如何实现的。 【讨论】: 好答案,@Chasmo。在 TinkerPop3 中更是如此。所有索引创建功能都必须通过本机 Graph API 执行。图提供者之间存在太多差异,无法概括索引创建和管理。 听起来不错。我很高兴看到 TinkerPop3 及其在生产中的表现。