Questions tagged [neo4j-java-api]

60 questions
0
votes
1 answer

Parameterized Cypher query and Neo4J JDBC prepared statements

I have a parameterized cypher query which looks similar to this - FOREACH (rel IN {relations} | match (src:Biz_Table{db_name:rel.sdb_name, table_name:rel.stname}),(dest:Biz_Table{db_name:rel.ddb_name, table_name:rel.dtname}) create (src) -…
Manohar CS
  • 31
  • 8
0
votes
2 answers

Neo4j Cypher find all paths exploring sorted relationships

I'm struggling for days to find a way for finding all paths (to a maximum length) between two nodes while controlling the path exploration by Neo4j by sorting the relationships that are going to be explored (by one of their properties). So to be…
0
votes
0 answers

Neo4j bolt driver ClientException

I have loaded about 20000 odd nodes from the consumer complaints csv file available in the neo4j load csv example. I am using Neo4j bolt driver in my java class to query . Driver driver = GraphDatabase.driver( "bolt://localhost/trialschema",…
Manu Bhat
  • 135
  • 2
  • 8
0
votes
1 answer

Neo4j - org.neo4j.io.pagecache.impl.SingleFilePageSwapperFactory

I am facing this weird error while creating GraphDB object in java. My neo4j Version : 2.2.5 My code: public static void main(String[] args) throws FileNotFoundException, IOException, ParseException { GraphDatabaseService graphdb = new…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
1 answer

Neo4j Standalone Server: Enforcing Unique Constraint using Java API at Server start up

I am using Neo4j Server 2.3.2 version and using Unmanaged plug-ins to parse and load unstructured data into graph. While doing it I landed into a situation of duplicate nodes and slow throughput(even with batch processing) for sequential processing.…
eShark
  • 81
  • 8
0
votes
1 answer

resultset is not matching when executing cypher in neo4j-jdbc

I want to execute cypher statment using neo4j-jdbc jar remotely. When I execute the below cypher, I am getting resultset with 25 rows in neo4j web console. MATCH (n:USER) RETURN n LIMIT 25 When I execute the same program using the neo4j-jdbc…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
1 answer

Wrapping multiple database queries in one transaction

I am using Neo4j in embedded mode in my java application. Before upgrading to Neo4j 2.x, I was wrapping multiple db operations in one transaction. After upgrading to 2.x, I am explicitly performing each db operation in one separate transaction (this…
hasanatkazmi
  • 8,041
  • 2
  • 22
  • 18
0
votes
1 answer

Find path in Neo4j with directed edges

This is my first attempt at Neo4j, please excuse me if I am missing something very trivial. Here is my problem: Consider the graph as created in the following Neo4j console example: http://console.neo4j.org/?id=y13kbv We have following nodes in…
Agandalf
  • 83
  • 1
  • 6
0
votes
2 answers

Neo4j - unable to craete a relationship using cypher in java

I am failing to execute the cipher query through java while creating a relationship. It is not throwing any error, but no relationships are created. Tried with other cipher query to return a node, which is returning perfectly. But unable to…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
0
votes
3 answers

Neo4j interoperability between community and enterprise edition databases

I am having issue switching between neo4j enterprise and community versions.Since i was unable to do a graphml import,i switched to enterprise where i can import graphml databases.Once i am done i am trying to open the database file created in…
lost Coder
  • 577
  • 2
  • 8
  • 34
0
votes
0 answers

Unique constraint not getting respected in neo4j

I have created a neo4j DB locally and assigned some indices and unique constraint. Here is the :schema Indexes ON :Actor(social_id) ONLINE (for uniqueness constraint) ON :Category(name) ONLINE (for uniqueness constraint) Constraints ON…
lazywiz
  • 1,091
  • 2
  • 13
  • 26
0
votes
1 answer

Is there any specific way to write limit clause in eclipse for neo4j?

I am have following problems in neo4j eclipse implementation : 1 . I get error with the limit function Code: String rows = ""; try ( Transaction ignored = graphDb.beginTx(); Result result = graphDb.execute(…
Nahush
  • 411
  • 1
  • 6
  • 16
0
votes
2 answers

Complex queries in neo4j embedded java

How do I perform MATCH (p:Person:Actor)-[r:ACTED_IN]->(m:Movies{name:"ABC"}) RETURN p.name; In neo4j embedded Java . detailed explanation of the code would be of great help. note: I want to do this in native Java api not in cypher. It is supposed…
user4934354
0
votes
0 answers

NEO4J JDBC Add relationship error

I am trying to add a relationship to nodes using Neo4J JDBC driver and have formed the following query : MATCH (node1:USER {fameId : 'test1'}),(node2:BEAM {eventUId : 'E000000016'}) CREATE (node1)-[r:PERFORMED{type:'test'}]->(node2)` When I try to…
-2
votes
2 answers

Cannot implement CRUD operations through Neo4j in Spring Boot

I have a problem about implementing CRUD operations through the Neo4j query in Spring Boot. My issue is located at both CityRepository, RouteRepository, ShortestPathRepository and Route entity. 1 ) When I called listAll and getById method of…
S.N
  • 2,157
  • 3
  • 29
  • 78
1 2 3
4