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
2
votes
0 answers

Neo4j Automatic Indexing using Neography

Trying to implement auto_indexing using the details gleaned from this thread Not really getting any success in retrieving nodes using the index. My…
udit
  • 2,745
  • 3
  • 33
  • 44
2
votes
1 answer

Updating a node and its accompanying indexes in neo4j using neography

How do I update a given property of a node using neography? And if its an indexed field. will the indexes get updated automatically? I know on the console, its as trivial as cd -a 15 set username foobar Of course this doesnt update any…
udit
  • 2,745
  • 3
  • 33
  • 44
1
vote
2 answers

Is there a way to wipe an entire Neo4j database via the REST API?

I'm using the Neography gem to interact with a Neo4j database through the REST API. I don't see any way in Neography itself (though if it's there, I'd love to use it!), nor have I been able to find by searching on Google whether this is possible…
Dan Tao
  • 125,917
  • 54
  • 300
  • 447
1
vote
2 answers

Neo4j JSON Objects to Elements

I'm not sure that I'm using the correct terminology, so feel free to correct it when necessary. I (think) I have JSON objects that I'm attempting to convert into an array of elements. I'm using Neography in Ruby to query a Neo4j database, and when I…
stephen
  • 195
  • 9
1
vote
0 answers

Where put Neography Rest wrapper in rails

I have a bunch of functions in my controller that help me access Neo4j through the Neography::Rest function but I want to move it into its own class. Where can I put it so I can call Neo.blabla inside any controller like a Model? I tried to put it…
samst
  • 536
  • 7
  • 19
1
vote
1 answer

How to acquire write lock on a node?

I want to do something like this (ruby, cypher queries): // ACQUIRE WRITE LOCK ON NODE 1 // SOME CODE THAT DO READ AND THEN WRITE, e.g.: results = neo.query("MATCH (n {id: 1}) RETURN n") ... case results.size when 0 …
mirelon
  • 4,896
  • 6
  • 40
  • 70
1
vote
2 answers

Reading lots of csv data into neo4j using execute_query, ruby and neography

I wrote a quick ruby routine to load some very large csv data. I got frustrated with various out of memory issues trying to use load_csv so reverted to ruby. I'm relatively new to neo4j so trying Neography to just call a cypher query I create as a…
ftroop
  • 21
  • 3
1
vote
1 answer

Neo4j Batch Inserts

I used the Neo4j API to batch insert a few million records, which normally would take much longer if done individually. The import finished considerably faster but I do not see the millions of records I inserted. Does Neo4j keep some form of queue…
Jey Balachandran
  • 3,585
  • 5
  • 27
  • 36
1
vote
1 answer

How to filter edges by time stamp in neo4j?

I have a graph of the form: (products:Product)-[:in_stock { updated: timestamp }]->(stock_items:StockItem { quantity: q })-[:stored_at]->(locations:Location) Obviously more to it that that but you get the gist. The stock_item nodes and in_stock…
Richard Jordan
  • 8,066
  • 3
  • 39
  • 45
1
vote
1 answer

Error in starting the neo4j Server (Neography, Ruby)

The server suddenly stopped to work and on restarting it gave the following error. Couldn't find anything related to this online. Any idea what is wrong and how to resolve this? org.neo4j.server.logging.Logger log SEVERE: …
red-devil
  • 1,064
  • 1
  • 20
  • 34
1
vote
1 answer

Neo4J Arrays in MATCH query

The intention of my Query is to mark similar words. CREATE CONSTRAINT ON (n:Word) ASSERT n.title IS UNIQUE MATCH (n) WHERE ID(n)={id} MERGE (o:Word{title:{title}}) WITH n,o MERGE n-[r:SIMILAR{location:'{location}'}]->o RETURN ID(o) n is a…
wintersolutions
  • 5,173
  • 5
  • 30
  • 51
1
vote
1 answer

How to use "MATCH.. CREATE UNIQUE.." with neography

I'm trying to write an importer script that will take a MySQL resultset and add nodes and relationships in my Neo4J DB. To simplify things, my resultset has the following fields: application_id amount application_date account_id I want to create a…
Zach Moshe
  • 2,782
  • 4
  • 24
  • 40
1
vote
1 answer

Arrays in NEO4j using Neography+Heroku

I am running a rake process that imports my data into Neo4j. It's all fine until arrays come up. Here's a sample: {:spelling=>"the", :letters=>["T","H","E"], :length=>2, :rank=>1, :part_of_speech=>"article"} Here's the ruby code for importing it…
1
vote
1 answer

Neo4j, long linked lists, timeouts, - should I use an index instead? (Neo 1.9)

I'm using a linked list to keep track of a user's activities, but I want to keep track of every activity, not just the last 20 or so.. So over time, a user might have 5000 nodes in the list.. (Neo 1.9, Neography Gem, ROR 3.2...) When I use cypher to…
1
vote
1 answer

Is it possible to share a common Neo4j db by two Rails apps, each using Neography?

While using the Neography gem to implement a Neo4j database on a Rails app, it so appears that the database is local to that particular Rails app's embedded Neo4j server. I wish to share a common Neo4j DB between two Rails apps, just the way you…