Questions tagged [node-neo4j]

It uses Neo4j's REST API.

This library supports and has been tested against Neo4j 1.4 through Neo4j 1.8.

Here's a simple example:

var node = db.createNode({hello: 'world'});     // instantaneous, but...
node.save(function (err, node) {    // ...this is what actually persists.
    if (err) {
        console.err('Error saving new node to database:', err);
    } else {
        console.log('Node saved to database with id:', node.id);
    }
});
53 questions
0
votes
1 answer

Neo4J Write: CPU at 100% when there is a lot of write

I ran around 3k write queries in around 1 minutes, the CPU hits 100%. Here is the jstack log: jstack when CPU at 100%. Can anyone tell me what is going on from the jstack logs,so that I can optimize my writes? I am using Node.js Neo4J client(runs on…
Krishna Shetty
  • 1,361
  • 4
  • 18
  • 39
0
votes
1 answer

Node-Neo4j How to check if node exists(persistently)?

I'm using Node-Neo4j client for my db. I want to create unique node, but I couldn't find how to do that in the documentation of Node-Neo4j. I used the logic below to check if a node exists or not: person_param = {'name': namesurname, 'userid':…
0xmtn
  • 2,625
  • 5
  • 27
  • 53
0
votes
3 answers

Check if node exist in my database Neo4j

please i can't check and create a node plus a relationship to pre-existing node. i need to check if node pre-existing in my Neo4j database and create a node plus relationship to this node. Thank you
Ismahane
  • 27
  • 2
  • 8
0
votes
0 answers

Setting access rules on nodes in Neo4J

Iam trying to create a Who know's who type of app and want restrict /render the graph based on Profile/Who is viewing it E.g If I am seeing my friends I would see my data and if someone else is seeing it they see their respective data How to…
josh
  • 11
0
votes
2 answers

How to get distinct node on condition Cypher-Neo4j

I am new to neo4j, I have the following situation As shown in the figure above I have an Node Admin and nodes Folder1, Folder2,Folder3and other group of nodes like FileA,FileB,FileC,FileD. The Admin node has an :access relationship with property…
SarathSprakash
  • 4,614
  • 2
  • 19
  • 35
0
votes
1 answer

duplicated one node in path - cypher (query all path between two nodes)

I have got nodes connected like in the picture from the link I do query START a=node(27), b=node(0) MATCH p=b<-[*]-a RETURN p I expect that I will get 3 paths but got 6. First 3 are correct but the last 3 have got duplicate 'node 0' For…
trojek
  • 3,078
  • 2
  • 29
  • 52
0
votes
2 answers

What is the cypher Query for creating multiple relationship using label and its property value in Neo4j?

I had two set of nodes come under two different labels in neo4j(2V) CREATE ( p1:pharma { name: "Magnesium", id: 12 } ) CREATE ( p2:pharma { name: "Hyoscine Butylbromide", id: 22 } ) CREATE ( p3:pharma { name: "Propantheline Bromide", id: 23 }…
Gopipuli
  • 393
  • 1
  • 12
  • 37
0
votes
3 answers

How to import data into neo4j (neo4j-community-2.0.0) in windows 7?

I got the below link to do this but the problem is that it's for linux users !!! http://blog.neo4j.org/2013/03/importing-data-into-neo4j-spreadsheet.html Please help me to get this done on windows ? Thanks in advance. I am new to neo4j and got only…
Gopipuli
  • 393
  • 1
  • 12
  • 37
0
votes
1 answer

Consolidating results of cypher query when two result nodes are the same

Take for example the following scenario: A hospital node is related to many doctor nodes. Doctor nodes are related to other doctors representing when they refer a patient to another doctor. These referrals can be to a doctor at a different hospital.…
Leah Sapan
  • 3,621
  • 7
  • 33
  • 57
0
votes
1 answer

Error in spring data neo4j sample when using GraphRepository

Hi i have downloaded one sample code for spring data neo4j. i am facing the below error can someone help on this. Code snippet: public interface PersonRepository extends GraphRepository { Person findByName(String name); …
naveena
  • 33
  • 1
  • 1
  • 5
0
votes
0 answers

Identifying the delta between two graph images

How we can identify the differnece between two nodes in Neo4j from time to time.In other words i have two graph images and my task is to identify the delta between these two.. Any suggestions? Here i will have access to a neo4j DB which will be…
Sujana
  • 331
  • 1
  • 3
  • 12
0
votes
1 answer

My java programme is getting failed to update Neo4j DB

my local neo4j db path is C:\neo4j-community-1.9.3_bup I have created a simple java program to connect to neo4j DB and insert some nodes. But after insertion when i am trying to retrive these nodes through Neo4jDataBrower these are not…
Sujana
  • 331
  • 1
  • 3
  • 12
0
votes
2 answers

newEmbeddedDatabase api needs a path on file system. why cant it use in-memory?

My need is to use neo4j embedded in my java appliation . As I do not want to store anything on file system, I want to create my database in-memory. Is it possible in neo4j when it is embedded in my java application?
inlineMacro
  • 69
  • 1
  • 7
0
votes
1 answer

Neo4j REST API List All Labels returns labels when graph is empty?

I'm currently working on a REST API wrapper for Neo4j written in node.js. Why does the REST API return labels of nodes that are removed? Can I get all labels of existing nodes? Code can be found at: https://github.com/Stofkn/node-neo4j (main.js…
Stofkn
  • 1,428
  • 16
  • 24
0
votes
1 answer

Can't recreate just deleted node with UniqueNodeFactory

I just created a node with UniqueNodeFactory and his relationship with UniqueRelationshipFactory. I deleted the the node with the NeoEclipse and then I tried to recreate the same node and I get no exception and the node it's not recreated again.…