Questions tagged [neo4j-java-api]
60 questions
5
votes
3 answers
getting properties of a node in neo4j java driver
I'm using neo4j, I have linux laptop with the server of neo4j, I did all configuration, so I can access from a mac to ip/browser, after that I'm trying to use that remotely from java project I'm using java-driver because neo4j-enbedded does not…

Pavul Zavala
- 427
- 5
- 11
3
votes
0 answers
getting relationships when cypher when querying for shortestPath
I am trying to find the shortest Path between two nodes and I would like to get the relationships(start node, end node and type) so I could generate a Subgraph in Java.
I am using this cypher :
MATCH (nodeA),(nodeB), p =…

ErEcTuS
- 777
- 1
- 14
- 33
3
votes
2 answers
Neo4j java connection not working
import org.neo4j.driver.internal.spi.*;
import org.neo4j.driver.v1.*;
import org.neo4j.driver.v1.Driver;
import org.neo4j.jdbc.ResultSet;
import org.neo4j.jdbc.bolt.BoltConnection;
import org.neo4j.jdbc.bolt.BoltDriver;
import static…

Jon Shkreli
- 61
- 2
- 5
3
votes
2 answers
Export Data to csv files from Neo4j pragmatically
I need your advice on neo4j export things…. I used ” apoc.export.cypher.query” to export my nodes and relationships to csv files , however the exported contents are cypher statements. This is a sample exported csv file :
begin
CREATE…

Lina
- 1,217
- 1
- 15
- 28
3
votes
0 answers
Neo4j StatementResult Traversing
I am currently working with a Neo4j database, version 3.0.3, inside a Java application, utilizing neo4j jdbc driver version 3.0.1 (yeah I know they don't match but I figured that is ok for now), and running queries that are pretty specific. I am…

Garret B
- 31
- 1
3
votes
1 answer
Any reason to call `tx.success()` on a Neo4j read-only transaction?
I'm using the Java API to improve performance of what was once an expensive Cypher query. I was refactoring just now and noticed that I'm calling tx.success(), even though I'm not changing any data. Is there any performance downside to marking a…

subvertallchris
- 5,282
- 2
- 25
- 43
2
votes
1 answer
Neo4J java driver - org.neo4j.driver.v1.exceptions.UntrustedServerException: Server provides no product identifier
I am unable to run any queries on Neo4J after I have updated my neo4j-java-driver from 1.0.5 to 1.7.2.
org.neo4j.driver
neo4j-java-driver
…

Valahu
- 763
- 2
- 8
- 15
2
votes
0 answers
How to use java 8 parallel stream to perform neo4j graph traversal and processing
I am currently using Neo4j Graph Database. I am trying to traverse nodes starting from a startNode in parallel. Following is the code:…

neo4jcoder
- 51
- 2
2
votes
1 answer
Determine Neo4j database version
The Neo4j Java API automatically updates outdated databases to the current version when I call
new GraphDatabaseFactory().newEmbeddedDatabase(File storeDir)
I would like to check what version the database is before doing that. Is there a way to do…

DeLoreanDriver
- 205
- 1
- 10
2
votes
2 answers
While Connecting to Neo4j to Android I'm getting an error
I wanted to use neo4j DB in my Android project. I'm trying to connect with Neo4j database with Android, while connecting I'm getting an error. I have added a dependency in my Android app level gradle .
compile…

Mishu
- 269
- 1
- 3
- 15
2
votes
1 answer
Cypher query execution time with Neo4j java driver
I am trying to find out execution time of my Cypher query with java driver.
Session session = driver.session();
session.run( "CREATE (a:Person {name:'Arthur', title:'King'})" );
StatementResult result = session.run( "Profile MATCH (a:Person) WHERE…

Ali Arslan
- 1,027
- 10
- 24
2
votes
1 answer
Neo4J Java Native APIs vs Traversal APIs vs Cypher
Has anyone done the performance evaluation for Neo4J Java Native APIs, Traversal APIs and Cypher.
Which of the above three options will yield me better result from performance perspective?
Also, for write operations, should I use Native java APIs or…

Piyush
- 101
- 4
2
votes
2 answers
Neo4J Java findNodes with other than a single string match
I'm successfully using the Neo4J Java API (currently version 2.2.1) to do simple queries like this:
Label label = DynamicLabel.label("User");
ResourceIterator providers = graphDb.findNodes(
label, "username", "player1"));
But is there…

Jeff G.
- 23
- 4
1
vote
0 answers
How to know if CREATE query failed in Memgraph through Neo4j Java driver?
Description
I'm attempting to use Memgraph in my application by connecting to it using the Neo4j Java driver. I have a constraint that nodes of a certain label must have a certain property. When I try to create a node without that property, the…

shadowyfour
- 11
- 2
1
vote
0 answers
issues on neo4j creating index via native api
I was trying to create indices for neo4j graph via native api, and I am using org.neo4j:neo4j:3.4.4, here is my code:
public static Boolean createIndex(GraphDatabaseService graphDb, Label label, String property){
Boolean ret = true;
try…

Victor Liu
- 53
- 3