Re: [TinkerPop] Unable to query with g.V.has(), g.E.has(), and unable to use T.eq in a has query

188 views
Skip to first unread message

Marko Rodriguez

unread,
May 16, 2013, 12:34:22 PM5/16/13
to gremli...@googlegroups.com
Hi,

This sounds like the MongoDB implementation is not fait fully implementing the Blueprints interface semantics correctly. 

You might want to make this a ticket on the repo of BlueprintsMongoDB.

HTH,
Marko.


On May 16, 2013, at 10:30 AM, Nathan Pensack-Rinehart <nath...@gmail.com> wrote:

In the MongoDB blueprints implementation, I am unable to use Gremlin to execute a query like this:

g.V.has("foo","bar").

When running this query, I get the response:
==>null

g.V for that matter is also null:
==>null

When I would have expected all vertices returned. As a work around I can run something like this:

g.query().has("foo","bar").vertices() or g.query.has("foo","bar").edges()

Continuing this issue, I am unable to run:
g.query().has("foo","bar", T.gte).vertices()

but instead have to run:
g.query().has("foo","bar", Query$Compare.GREATER_THAN_EQUAL).vertices()

Anyone have  thoughts as to what's going on with this?

Thanks!


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nathan Pensack-Rinehart

unread,
May 16, 2013, 12:46:44 PM5/16/13
to gremli...@googlegroups.com
Would you know what it's not implementing correctly?  I am having the same issue with another graph implementation I am working on as well. In fact, I only have success with these g.V, etc queries, when I use the included graphs with Gremlin.

Marko Rodriguez

unread,
May 16, 2013, 12:51:50 PM5/16/13
to gremli...@googlegroups.com
Hi,

g.V should return all the vertices in the graph.
g.V.has('foo','bar') should return all the vertices in graph that have key foo, value bar.

These are very basic queries and if they are not behaving correctly, then I suspect the Blueprints implementation is not correct.

………. If this is happening with other Blueprints graphs, then the only thing I can think is that maybe your data is not in the graph? .. ? … I don't know. I have never played with BlueprintsMongoDB so I can't say. If its happening with, lets say, OrientDB/Titan/Neo4j/TinkerGraph, I can help you out.

Marko.

Nathan Pensack-Rinehart

unread,
May 17, 2013, 12:20:31 PM5/17/13
to gremli...@googlegroups.com
Thanks for the response!

I was under the impression that if a blueprints graph implementation passes all the blueprints tests, the graph will work with the rest of the Tinkerpop stack (such as Gremlin).

It's looking like I can only run queries in the Java way (g.query().has(...) ... .vertices()) instead of the g.V.has(...), which I assume is the Groovy way?  Is there a Groovy test suite I can run, or configuration I can check for that?

-Nathan

Nathan Pensack-Rinehart

unread,
May 17, 2013, 12:24:53 PM5/17/13
to gremli...@googlegroups.com
The MongoDB Blueprints implementation tests all run successfully (I implied this, but never explicitly said it. Oops!)
Reply all
Reply to author
Forward
0 new messages