espeed / bulbs

A Python persistence framework for graph databases like Neo4j, OrientDB and Titan.

Home Page:http://bulbflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

g.getIndexedKeys on Titan fails

nvitucci opened this issue · comments

I've tried a Gremlin query against a standard Titan graph (the Graph of Gods) to fetch the indexed keys:

from bulbs.titan import Graph
g = Graph()
g.gremlin.query('g.getIndexedKeys(Vertex.class)')

It works but I get a "TypeError: string indices must be integers" exception when I loop over the results, while I should get four results ("reason", "age", "name", "place"). If I run a g.V query (g.gremlin.query('g.V')) and loop over the results everything works correctly.