Questions tagged [neography]

Neography is a thin Ruby wrapper to the Neo4j Rest API

Neography is a thin Ruby wrapper to the Neo4j Rest API

54 questions
22
votes
2 answers

How to delete all relationships in neo4j graph?

I need to delete all relationships between all nodes. Is there any way to delete all relationships in the neo4j graph? Note that I am using ruby bindings - the neography gem. There is no info about that in the wiki of the gem. I've also tried to…
roman
  • 5,100
  • 14
  • 44
  • 77
6
votes
1 answer

slow neo4j cypher query

I'm trying to find out why my cypher query is running so slow (2-5 seconds for only 5000 nodes). The query is trying to find all the jobs the a profile can reach inside his network (a job the his friends or his friends of friends work in the same…
Gady
  • 1,514
  • 2
  • 16
  • 32
5
votes
4 answers

How to save neo4j database?

I'm using neo4j for the first time, neography for Ruby. I have my data in csv files. I can successfully populate the database through my main file, i.e. create all nodes. So, for each csv file (here, user.csv), I'm doing - def create_person(name,…
theharshest
  • 7,767
  • 11
  • 41
  • 51
4
votes
0 answers

Create a node of a certain type using neography

I'm successfully using the neography gem, with one small problem. I cannot seem to specify the type of node I want. The API I'm using is: @neo.create_node({doors: 4, brand: 'ford', model: 'fiesta'}) I want to be able to do the equivalent of: CREATE…
Abe Petrillo
  • 2,368
  • 23
  • 34
4
votes
3 answers

Neography: Traversal vs. Cypher

Im currently building something with Neo4j and Neography and were wondering what is preferred: Using the traverse method or a Cypher query? Personally, I like Cypher, but I have no idea which is better/more performant
nambrot
  • 2,551
  • 2
  • 19
  • 31
3
votes
1 answer

Excon::Error::Socket: end of file reached (EOFError), neography gem

I have been using neography gem for my rails project and sometimes I end up getting the following error: #error inspect Could someone help me troubleshooting this error? Also I am not able to…
Bist S
  • 41
  • 1
  • 1
  • 4
3
votes
1 answer

neography get actual node or node id from index

I am using the below to get nodes from an index: neo.get_node_index('nodes_index', 'type', 'repo') Which works fine. However, the data returned is a Hash object, as below: >…
Ashley
  • 5,939
  • 9
  • 39
  • 82
3
votes
1 answer

Neo4j & Neography - get cypher query results in a hash / openstruct object

I'm using the awesome neography gem and have run into a slight problem converting the results of a Cypher query to a structured object (OpenStruct.new... ) I don't know how to create a hash or a OpenStruct from the columns and data query results,…
2
votes
1 answer

Parse a big file and populate a Neo4j database

I am working on a Ruby on Rails project that will read and parse somewhat big text file (around 100k lines) and build Neo4j nodes (I am using Neography) with that data. This is the Neo4j related fraction of the code I wrote: d=…
AGarofoli
  • 157
  • 1
  • 12
2
votes
3 answers

Ways to remember and reuse previous query result in Neo4j

I am coding in Ruby using Neo4j with the gem Neography. When doing query, I use the method execute_neo4j_query provided by Neography. I am not sure about the best practice. Suppose I use following code to fetch a user: user1 =…
HanXu
  • 5,507
  • 6
  • 52
  • 76
2
votes
1 answer

R14 Memory quota exceeded on Heroku for background job running with Sidekiq

We're running sidekiq workers that utilize neography to do batch operations. Our batch array holds up to 400 operations before flushing (we've tried lower numbers as well). We hit the R14 memory error on heroku and things grind to almost a halt, so…
Quentin Rousseau
  • 330
  • 5
  • 13
2
votes
1 answer

Ruby server won't start with neography

I have ruby file which im running in my mac with OSX 10.9 that is a combination of sinatra and geography which i have both installed. when i use require 'sinatra' on the file everything is fine, but when i insert require 'neography' it gives me this…
AJ_1310
  • 3,303
  • 3
  • 19
  • 26
2
votes
1 answer

Neography and Rails

I am experimenting using Neography with Rails 3 and can't quite understand where to specify DB connections, Model Validations (validates_presence_of) etc. The examples available for Neography does not have one for Rails. Would appreciate any…
Bala
  • 11,068
  • 19
  • 67
  • 120
2
votes
2 answers

Neography and Neo4j dilemma

I'm trying to implement a rails application with neo4j. For hosting I found that Heroku supports neo4j REST (public beta). Looking for gems I found neography and neo4j. I started with neo4j and didn't find support for REST. Is it possible to work…
dotoree
  • 2,983
  • 1
  • 24
  • 29
2
votes
1 answer

parameterized Cypher query not working in Neography

Trying to execute a parameterized Cypher query with Neography v0.0.23. Even though the non-parameterized version works: Neo.execute_query("start n=node(3) return n") => {"data"=>[[{.... The parameterized version doesnt…
udit
  • 2,745
  • 3
  • 33
  • 44
1
2 3 4