Neo4j - Get node containing a list of children

I have a Document - [:Contains] -> Keyword relationship. I would like to obtain all the documents having a specified list of keywords. So far I managed to do this: Match (d:document)-[:CONTAINS]->(k1:keyword {keyword:"key1"}) WITH d,k1 MATCH (d)-...
more »

2017-01-18 01:01 (2) Answers

Search in hierarchical tree on neo4j

I have a database organized in several hierarchical trees. Nodes are organized by number.Nodes that begin with the same number are interconnected by relationships. For example: (5)-[connect]-(50)-[connect]-(507)... etc. I want to search, for example...
more »

2017-01-09 14:01 (1) Answers

Neo4j limit a property value to only x changes

Is there a way on Neo4J to say for a query like this MATCH (p1:BusStop {idStop: "1293"}), (p2:BusStop {idStop: "1052"}), path = shortestpath((p1)-[:PATH*]-(p2)) RETURN path That i want it to keep for all the path the same property value. Some...
more »

2016-11-09 14:11 (1) Answers

Insert array of objects as property into neo4j

I am trying to insert array of objects as property to node. I tried MERGE (ss:Label1 {sId: 12345}) ON MATCH SET ss.id = 14770746012, ss.setC = 1,ss.nl = [{id: 24, status: 0}] ON CREATE SET ss.id = 14770746012, ss.setC = 1,ss.nl = [{id: 24, statu...
more »

2016-10-25 12:10 (3) Answers

Neo4j - Spring get String list from labels

How can i retrieve in Spring a List from this query MATCH (n) WITH DISTINCT LABELS (n) as labels RETURN labels Which doesn't create a node, but return just some strings referred to all different labels in my neo4j database? ...
more »

2016-10-04 21:10 (1) Answers

Store data into neo4j from eclipse

I have a gml file that I read it with java in eclipse and I want to know how to store the result of the code below in neo4j: TinkerGraph graph = new TinkerGraph(); GMLReader gml= new GMLReader(graph); gml.inputGraph("/home/salma/Desktop/cel...
more »

2016-08-01 15:08 (1) Answers

Combining a Graph Database and an RDBMS

Is it bad design / difficult to implement two or more databases for an application? For instance, let's say I have User objects which I would like to store into a relational database. These 'User' objects have relationships with one another and have...
more »

2016-07-28 23:07 (1) Answers

How to build neo4j-jdbc driver from official repo?

I wanted to use the neo4j-jdbc (https://github.com/neo4j-contrib/neo4j-jdbc) to connect to my Neo4j 3.0 server. I'd like to build the driver myself so that I can add it to another project as a jar file. I'm struggling to understand the readme on the ...
more »

2016-07-26 18:07 (1) Answers

Neo4j read_only doesn't work

So... I know there's quite a few articles and stuff to read about how to set Neo4j in read-only mode. Problem is, it doesn't seem to work for me. I've got an existing database in Neo4j 3.0.3 (I'm not the one who put it together though, so I'm really...
more »

2016-07-06 14:07 (1) Answers

Neo4j: search in children too

I have a simple parent/child graph in neo4j. I would like search the parents (and its children) with a property value in parent node or in child node. A parent can have (or not) a list of children I tried this query MATCH (p:Parent) WHERE p.last...
more »

2016-06-27 10:06 (1) Answers

Neo4j single instance of connection

I'am working at application in ASP.NET MVC 5 which is supported by Neo4j graph database. I'am using Neo4jClient and Neo4j.AspNet.Identity. To connect with database there is a class called GraphClient. Below is the way to instatiate connection: var c...
more »

2015-12-06 14:12 (1) Answers