Questions tagged [neo4j-java-api]

60 questions
1
vote
1 answer

How to get all node's relationships in neo4j using Java Connector Jar

Here's my graph I'm trying to get the details of the nodes and its relationship in java code and below is my code. I'm able to get the details of the nodes but not the relationships. And the java docs has no information and methods that allow…
Vivek
  • 3,523
  • 2
  • 25
  • 41
1
vote
1 answer

Manually add NodeEntity, Id, GeneratedValue, RelationshipEntity etc (not using annotations)

I have two maven projects; a) A REST Server project b) A Rest consuming client project I would like to make a 3rd project containing domain POJO classes - and add it as a dependency in the two other projects so I only have one project with the…
Kasper
  • 133
  • 7
1
vote
1 answer

Neo4j delete a node property with neo4j-jdbc

I have an edge with sevral properties. I would like to keep the edge but remove only the name property. My java Cypher is this : public static final String DELETE_EDGE_PROPERTY_QUERY = // "MATCH ()-[r]->() where id(r) = {1} REMOVE r.{2}…
ErEcTuS
  • 777
  • 1
  • 14
  • 33
1
vote
1 answer

Coding a type of random walk in Neo4j using the Traversal Framework

I'm currently working on a graph where nodes are connected via probabilistic edges. The weight on each edge defines the probability of existence of the edge. Here is an example graph to get you…
David
  • 23
  • 5
1
vote
1 answer

How to add user defined constraints on a node/relationship in Neo4j using Java API

Consider I have a node having Label L1 in Neo4j database. I need to put a constraint on all nodes having label L1 such that there shall be no outgoing edge from these nodes. So whenever user tries to add an outgoing edge from these nodes, a…
1
vote
1 answer

Finding longest branch of a tree in Neo4j

I currently have an append-only tree data structure in Java. The main purpose of this tree is to maintain a pointer to the longest branch. I implemented this by having a reference to the last nodes(s) in the longest branch(es) which is updated upon…
user8288651
  • 11
  • 1
  • 4
1
vote
1 answer

Neo4j get Node by specific properties Java API

Is there a way to get a node by specific attributes using the Java API? Specifically: By Name By Label By properties - (various properties) The only functions I found were: findNode(label) findNode(label, key, value) Which only supports one…
raycons
  • 735
  • 12
  • 26
1
vote
2 answers

In Neo4j, is there any way to restrict nodes and relation types in path while using Java API?

I have source node and destination node I want to put restriction on nodes and relation types in the path. I am using Neo4j Java API. Consider following toy example, We have three person nodes A, B & C. Source Node: A & Destination Node: B. There…
Anwar Shaikh
  • 1,591
  • 3
  • 22
  • 43
1
vote
0 answers

Neo4j java driver result returns only one row

I have about 20000 odd nodes and relationships in my neo4j schema. I am trying to query that data and display in my browser. I am using the neo-4j java driver with Spring jdbcTemplate. But below query MATCH(n)<-[r]-(m) return n,type(r),m limit…
Manu Bhat
  • 135
  • 2
  • 8
1
vote
1 answer

API for PL/SQL to Neo4j equivalent

Is any API or tool available to convert PL/SQL procedure, functions to neo4j equivalent ?? Currently I use Oracle 10 as my data source and planning to switch to Neo4j.
Balaji Reddy
  • 5,576
  • 3
  • 36
  • 47
1
vote
2 answers

Is it possible to determine if a `Node` is in a transaction in Neo4J using the Java API?

Is it possible to determine if a Node is in a transaction? It is possible to get a GraphDatabaseService by the method Node.getGraphDatabase. I would like to do something like this: public class Neo4JHelper { public void setProperty(Node node,…
David Berg
  • 1,958
  • 1
  • 21
  • 37
1
vote
3 answers

difference between storing data into neo4j graph database using Java and Spring?

I'm little confuse that if my project is on Spring and I want to use neo4j with java not with Spring Data . what is a good practice ? Thanks
1
vote
1 answer

Returning Neo4j server plugin results as graphML?

Is there a way to return the path from my server plugin in a graphML format? Like the way it can be done in the usual REST endpoint by providing resultDataContents as "graph".
mayank gupta
  • 201
  • 2
  • 10
1
vote
3 answers

Graph database in distributed env

I have a question concerning graph databases! Is there a mechanism to use graph databases in a distributed environment?! I mean can you distribute a graph database?! Can we even traverse a graph database in a distributed environment?!
0
votes
0 answers

neo4j kafka batch processor

I have a spring-kafka based consumer which processes the connection/edge records to neo4j, with batch size 100. What is the best way to implement batching using neo4j java sdk? Requirement: Caller should know which edge/connection got created…
Arjun
  • 6,501
  • 10
  • 32
  • 34