gremlin Questions

2

Imagine a social network app. Users follow other users and users take photos. Photos have tags of other users. I'm trying to get an effective Cosmos db implementation of a graph for that app. I pr...

1

Solved

I'm trying to use the gremlin npm module and connect to a Neptune database. During testing, I tried having gremlin connect to an inactive endpoint and invalid url to make the system more resilient....
Sterlingsterlitamak asked 31/5, 2020 at 18:29

2

Solved

I'm currently using TinkerPop java APIs for graph traversal. Currently I had to create a duplicate copy of the same traversal to compute the count. Long allUsersCount = gt.V().hasLabel("user").has...
Mutual asked 3/6, 2020 at 15:26

2

As my last post at 403 Forbidden error for Gremlin to AWS Neptune, I could successfully connect to my Neptune Cluster DB via my Tinkerpop Gremlin console v 3.4.3 that installed at my EC2 instance a...
Monobasic asked 15/5, 2020 at 2:2

2

In our graph, there are a lot of vertices which have more than 100k of outgoing edges. I would like to know what are the approaches to handle all palettes of situation which come out of this. Let...
Uticas asked 15/1, 2019 at 9:12

1

Solved

Thanks a lot for your help in advance I'm trying to setup my AWS Neptune environment by following the instruction at https://docs.aws.amazon.com/neptune/latest/userguide/get-started.html . The set...

7

Solved

Im using OrientDB type graph. I need syntax of Gremlin for search same SQL LIKE operator LIKE 'search%' or LIKE '%search%' I've check with has and filter (in http://gremlindocs.com/). However it...
Casefy asked 30/9, 2013 at 1:4

1

Solved

I'm trying to write a single query that satisfies two requirements in the response object: Must include all properties of a vertex, without specifying individual fields in the query. Must flatten...
Demulcent asked 19/2, 2020 at 18:48

2

Solved

In Tinkerpop 3, how to perform pagination? I want to fetch the first 10 elements of a query, then the next 10 without having to load them all in memory. For example, the query below returns 1000,00...
Wendelin asked 3/10, 2016 at 8:3

2

Solved

I wanted to model partner relationship like the following, which I expressed in the format of labeled property graph. I wanted to use RDF language to express the above graph, particularly I want...
Gereld asked 28/4, 2019 at 0:11

2

Solved

The Unit test code from the simplegraph-core testsuite below displays the region count of airports but it is not ordered as I would have expected. The result starts with: NZ-BOP= 3 MZ-A= 1 MZ-B= ...
Morlee asked 19/3, 2018 at 9:19

2

Let's say I want to get a few vertices from my database: g.V(1, 2, 3) And then I have another set of vertices: g.V(4, 5, 6) Imagine it's not just g.V(), but some more complicated traversal to...

1

Solved

So SPARQL documentation contains examples how to specify multiple fields to search for: PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX neptune-fts: <http://aws.amazon.com/neptune/vocab/...
Megara asked 15/1, 2020 at 9:2

2

Solved

I'm having a vertex with following details: http://localhost:8182/?gremlin=g.V(4192) { "requestId": "6ce01f3b-f623-41f6-bb03-dd56014e0701", "status": { "message": "", "code": ​200, "attrib...
Dietetics asked 18/5, 2016 at 12:57

1

Solved

What is the difference between next() and iterate() when working with gremlin? Why does next() return the added vertex when calling g.addV(), but iterate() does not? When should I use next() and wh...
Austinaustina asked 25/11, 2019 at 1:39

5

g.v(1).id gives me vertex 1 id, g.v(1).map gives me vertex 1 properties. But, how can I get a hash with id and propeties at the same time
Vella asked 9/9, 2011 at 13:23

9

Solved

I'm starting to develop with Neo4j using the REST API. I saw that there are two options for performing complex queries - Cypher (Neo4j's query language) and Gremlin (the general purpose graph query...
Cruet asked 11/12, 2012 at 17:4

5

Solved

I am looking to quickly insert multiple vertices using Azure Cosmos DB Graph-API. Most of the current Microsoft samples create the vertices one by one and execute a Gremlin query for each, like so:...
Agglutinogen asked 2/6, 2017 at 14:54

1

Solved

I am trying to run a gremlin query which groups vertices of a certain label into several groups by a certain field (assume it is 'displayName') and limit the number of groups to n and the number of...
Czardom asked 14/7, 2019 at 13:21

1

Solved

I have following graph: g.addV('TEST').property(id, 't1') g.addV('TEST').property(id, 't2').property('a', 1) If I do: g.V('t2').project('a').by(values('a')) the traversal works and returns map w...
Fresh asked 19/6, 2019 at 14:18

2

Solved

I'm querying a database in Javascript where I get back a Map object. The problem is that the key of some entry in the map is an object, an EnumValue to be precise. I can't seem to find a way to di...
Haste asked 16/6, 2019 at 17:24

1

Solved

I want to add more than one property to a vertex, but from the outset do not explicitly know what those properties might be. For example, say for one person to be added as vertex to the graph, we h...
Meri asked 14/6, 2019 at 17:46

1

Solved

In this stackoverflow question a suggestion was made to use the query supplied in the first answer to do a particular gremlin_python traversal. Namely g.V().has('name', 'USA').limit(1000).hasLabel...
Styrax asked 31/5, 2019 at 15:53

1

Solved

I currently have a query that gives me the count of each label: g.V().group().by(label).by(count()) However this is resulting in a column for each label. I want to project two columns "Entity Type...
Classical asked 6/5, 2019 at 17:23

3

Solved

I'm using gremlinpython 3.4.1 on Python 3.7.2, and when get vertex/edge responses it is providing <T.id: > for id and <T.label: 3> for the label. How would I get it to provide the strin...
Incorporeal asked 3/5, 2019 at 4:31

© 2022 - 2024 — McMap. All rights reserved.