Cypher left outer join sql analog

I'm trying to match all nodes with specific label that has no relationship or have specific relationship. something like this two queries combined: MATCH (f:Field) OPTIONAL MATCH (f)--(t:Type) WHERE id(t) = {id} RETURN f + MATCH (f:Field) WHERE n...
more »

2017-06-23 12:06 (2) Answers

Neo4j - Java heap space. Wrong query or settings?

i have a problem with neo4j. I don't know if problem is my query or something else. Intro I have to build an application that store bus/train routes. This is my schema: Nodes: Organizaton: company that have routes/bus etc.. Route: A bus route ...
more »

2017-04-02 14:04 (3) Answers

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

How do I convert ascii values back into String?

I am trying to convert String into ascii, alter the ascii value, and then convert those values back into a string. I though I was on the right track, but I am getting an error message telling me I must return a String; where did I go wrong? public s...
more »

2016-10-04 16:10 (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