【发布时间】:2026-01-12 07:20:03
【问题描述】:
我正在尝试使用名为 goblin 的最新 OGM。 我阅读了示例,基本上我只想执行一个简单的查询: MyVertex.all() 应该返回“myvertex”类型的所有顶点,但我得到了
No such property: V for class: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
这是我正在做的事情:
import asyncio
from tornado.platform.asyncio import AsyncIOMainLoop
from goblin import properties, connection
from goblin.models import Vertex
@asyncio.coroutine
def find():
result = yield from MyVertex.all()
stream = yield from result.read()
return stream
find()
【问题讨论】:
-
您使用的是哪个版本的 Titan?通常,我在尝试从 goblin 运行 TinkerPop 2 兼容查询时看到了该错误。请注意,地精与 TinkerPop 3 兼容。在此处发布 MyVertex 类的代码也会对您有所帮助。
标签: python graph titan gremlin tinkerpop3