0x90
0x90

Reputation: 41002

why do I get No such property error: T for class: groovysh_evaluate in gremlin neo4j dbpeida?

gremlin> g
==> neo4jgraph[EmbeddedGraphDatabase [/Users/0x90/Downloads/dbpedia4neo]]
gremlin> g.v(123214).map()
==> value=U http://dbpedia.org/resource/Huey_Lewis_and_the_News
gremlin> g.v(123214).map()
==> value=U http://dbpedia.org/resource/Huey_Lewis_and_the_News
gremlin> v = g.idx(T.v)[[uri:'http://dbpedia.org/resource/Huey_Lewis_and_the_News']].next() 
==> No such property: T for class: groovysh_evaluate
gremlin> 

while do I get No such property: T for class: groovysh_evaluate while following http://markorodriguez.com/:

gremlin> v = g.idx(T.v)[[uri:'http://dbpedia.org/resource/Graph_theory']].next()
==>v[26634]
gremlin> v.map()
==>name=graph theory
==>uri=http://dbpedia.org/resource/Graph_theory

Upvotes: 1

Views: 1205

Answers (1)

VolkanT
VolkanT

Reputation: 634

The syntax in the blog post was for an older version of Gremlin[1].

You may use something like:

g.idx("your_index_name")[[uri:"http://dbpedia.org/resource/Graph_theory"]]

Here is the document for the new syntax

Upvotes: 3

Related Questions