Questions tagged [neo4j-java-api]
60 questions
0
votes
2 answers
How to delete relationships with properties by passing parameters?
env:
Neo4j-4.4.x
neo4j-jdbc-driver 4.0.9
Image that I execute the following cypher to get a ‘teacher’ node and a ‘student’ node, the relationship between them is ‘educate’, and the relationship has a year attribute.
cypher:
merge…

Arthur_Morgan
- 73
- 7
0
votes
1 answer
Neo4j Java driver 4.4 IN clause
I want to run the following query however, I am getting some errors. I tested my query on neo4j workspace and it was working. I could not find any source for Java driver using IN query so I am not sure what is wrong with my code. I am using Neo4j…

firemancer
- 25
- 7
0
votes
1 answer
Using Maven with Neo4j User-Defined Procedures
I copied this github repository as a template for using User-Defined Procedures in Neo4j.
https://github.com/maxdemarzi/medicare
I added some procedures, used "mvn clean package", and was able to see these procedures in my database after putting the…

ochst
- 1
0
votes
1 answer
Get transaction id when using neo4j Bolt drivers (Python or Java)?
I'm trying to build a REST API to hide the complexity of Cypher from the user who will use my program building simple and high-level API calls to interact with the Neo4j Graph.
I want to give the user the possibility to work with transactions like…

AGL
- 116
- 1
- 7
0
votes
2 answers
get path after querying neo4j java
I'm trying to do a query to fin all possible paths that correspond to the pattern "(Order) - [ORDERS] -> (Product) - [PART_OF] -> (Category)" and would like to get the whole path (i.e. all 3 nodes and 2 relationships as their appropriate classes).…

Bao Nguyen
- 11
- 1
0
votes
1 answer
Neo4j cypher return Path with a specific format
I have a cypher query to return the shortest Path between two nodes.
I am using Java JdbcTemplate.
MATCH (nodeA),(nodeB), p = shortestPath((nodeA)-[*..15]-(nodeB)) " //
+ "WHERE ID(nodeA) = {1} and ID(nodeB) = {2} RETURN nodes(p) as…

ErEcTuS
- 777
- 1
- 14
- 33
0
votes
2 answers
Neo4j performance Neo4j REST API Vs Neo4j Java Driver
Our current implementation has all calls to Neo4j through REST API. We are in process of replacing some of the code through neo4j-java-driver.
We had some issues with performance which we tried to resolve through Cypher optimization and moving load…

Vishwa
- 31
- 4
0
votes
0 answers
Long response time in Neo4J query through rest api
I have a RESTFul API which queries embedded neo4j database for recommendations for a user by hitting http:IP_ADDRESS/myapplication/user/{userId}/recommendations
I'm observing a very weird issue that for a particular user the response time to fetch…

Kabhi
- 135
- 1
- 12
0
votes
1 answer
How to check if a Neo4j database existis at a given location
Calling
new GraphDatabaseFactory().newEmbeddedDatabase(File storeDir);
in the Neo4j Java API not only opens a database at a given location but also creates one if it doesn't already exist.
I would like to check if a Neo4j database exists in a given…

DeLoreanDriver
- 205
- 1
- 10
0
votes
1 answer
Neo4J Browser ServiceUnavailable failure after connecting with Neo4J Java driver
I regularly use Neo4J Browser on http://localhost:7474/browser/. However, yesterday I used the java driver to connect to Neo4J and execute queries. Since then, I'm unable to login to Neo4J Browser.
I start Neo4J from the terminal (I'm on ubuntu)…

Manish Giri
- 3,562
- 8
- 45
- 81
0
votes
1 answer
Neo4J Driver Node Merge/Creation - is there a cleaner way to deal with properties
I am currently playing with Neo for creating a monitoring API (Currently using the 1.4.2 Java driver). Part of this involves creating my own MonitorNode/MonitorEdge graph (those are my own classes), then syncing those with my Neo instance. My…

user3654762
- 41
- 5
0
votes
1 answer
neo4j user defined procedure: "cannot find symbol: class Transaction"
I am trying to build a simple user defined procedure using the example user defined procedure supplied by neo4j. However, when I try to get a Transaction instance using "Transaction tx = db.beginTx()", the compiler complains that it cannot resolve…

Joel Stevick
- 1,638
- 2
- 16
- 22
0
votes
2 answers
How do I (cypher) query Neo4j embedded graph database from java program for Neo4j 3.x?
Neo4j has grown a lot since I last used it (milestone 2.0 to 3.0). I wanted to use cypher from java program with embedded graph database (GraphDatabaseService).
I used to create an ExecutionEngine and go from there for this earlier.
It appears that…

sbhatt
- 485
- 2
- 15
0
votes
1 answer
Prevent overriding of data in Neo4J graph database
I am using community version of Neo4J as my graph database. I want to prevent the overriding of repeated data when the graph is rebuilt.
For example:
Let's say my code fetch some data from a relational database and creates the Neo4J graph. The size…

Kabhi
- 135
- 1
- 12
0
votes
1 answer
How to automate Node naming in neo4j using loop?
I have list of String and i want to import all the elements to the graph database. By saying import i mean, i want to set the String as the Node's property. The size of the list is gonna be massive. So is there any way to automate Node naming ?…

maxime
- 35
- 6