Questions tagged [neo4j-apoc]

APOC is short for "Awesome Procedures on Cypher." Introduced in Neo4j release 3.0, APOCs are callable procedures which extend the Cypher query language.Questions with the neo4j-apoc tag should be for "small, generic helper functions for common tasks" that are not available in the Cypher query language.

APOC procedures are "User Defined Procedures." They are similar to stored procedures in some relational databases. APOCs can be written in any language that runs on the JVM. Questions tagged with neo4j-apoc should have an accompanying tag for the specific language being used.

Built in procedures are included in Neo4j releases. Before posting a question on StackOverflow, please consult the Neo4j documentation and ask if your task is possible in the public chat channels.

685 questions
0
votes
1 answer

Improve Neo4j query performance

I have a Neo4j query with searched multiple entities and I would like to pass parameters in batch using nodes object. However, I the speed of query execution is not quite high. How can I optimize this query and make its performance better? WITH…
Cassie
  • 2,941
  • 8
  • 44
  • 92
0
votes
1 answer

Handling empty array types when using APOC to import a CSV to neo4j

I have a csv file wherein some fields are array-types. Fields are separated with , and array items are separated with ;. For example: index, name, friends,…
Arthur D.
  • 399
  • 1
  • 8
0
votes
1 answer

How to use Neo4j APOC when creating a DB in Java?

Instead of creating my Neo4j DBs using the Neo4j Desktop, I create it in a Java app from scratch. I usually have two csv files: a nodes file and a relationships file. So, I create my DBs in two steps: first I create all nodes with a Cypher query and…
Vicente
  • 35
  • 5
0
votes
1 answer

Neo4J Insertion taking time

I have a query which is taking the long time to insert in neo4j roughly the query looks like following : create index on :symaccess_symdev(dir_port); create index on :symaccess_symdev(host_lun); create index on…
0
votes
1 answer

NEO4j Return a nested, hierarchical JSON from a DB

I have a Tree Model on db like it's shown on the picture City node is linked to Region node by IS_A_City_BELONGING_TO Sector node is linked to Region node by IS_A_SECTOR_BELONGING_TO_THAT_REGION Sector node is linked to City node by…
Schwertfisch
  • 133
  • 3
  • 16
0
votes
2 answers

Unparseable date: "NULL" with APOC.DATE.PARSE

I am using apoc to calculate difference between two dates. It works when I supply value for N.ID in the MATCH clause. But it fails when I remove N.ID because I am trying to process the code for a bunch of IDs not a single one. MATCH…
0
votes
1 answer

How do I return the count of each relationship type from apoc.path.subgraphall in neo4j?

I'm working with the basic data set that neo4j provides from the :play movies command. I am attempting to first find the subgraph that a specific nodes is connected to, which I do with this call: MATCH (movie:Movie) WHERE movie.title = "Cloud…
hhurja
  • 3
  • 2
0
votes
1 answer

Neo4j Gephi Cypher error: Error with cypher query on nodes without property "name"

This question is similar to the one asked in apoc.gephi.add doesn't work : NODE[25512922] has no property with propertyKey='name' yet, I want to add a few things: the issue is with Neo4j 3.2.12 and APOC version 3.2.0.3, if the node does not contain…
0
votes
1 answer

Missing APOC procedure:

I have installed 3.3.5 and APOC 3.3.0.3. I'm trying to use the apoc.spatial.geocodeOnce procedure but when I invoke it, I see the following message: Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure…
jvilledieu
  • 535
  • 2
  • 12
0
votes
1 answer

neo4j cypher create relation between two nodes based on an attribute String value

I have a Node with Label Experiment with an attribute called ExperimentName. This ExperimentName is based on the concatenation of 3 different variables "Condition (ExperimentProfile1) Dose" Example : Control diet (MOA77) LD Control gavage(MOA66)…
ErEcTuS
  • 777
  • 1
  • 14
  • 33
0
votes
1 answer

Neo4j - Cypher node and relationship relation

I have the following query: MATCH (dg:DecisionGroup)-[:CONTAINS]->(childD:Decision) WHERE dg.id = {decisionGroupId} MATCH (filterCharacteristic1:Characteristic) WHERE filterCharacteristic1.id = 1 WITH dg, filterCharacteristic1 CALL…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

I am trying to import json file into neo4j,

I am getting this message Neo.ClientError.Statement.SyntaxError: Invalid input '@': expected whitespace, a property key name, '}', an identifier or UnsignedDecimalInteger (line 1, column 152 (offset: 151)) This is the code i used in cypher…
0
votes
1 answer

RULE planner does not support calling procedures (when using apoc.do.when)

Related to That previous question How to make the Cypher request to handle those both cases without duplicating Nodes I tried to solve this using apoc.do.when but I got this Error I don't know how to solve…
Schwertfisch
  • 133
  • 3
  • 16
0
votes
2 answers

Neo4j Cypher manual relationship index, APOC trigger and data duplication 2

Continuing with the following question Neo4j Cypher manual relationship index, APOC trigger and data duplication I have created the scenario which reproduces the issue: CALL apoc.trigger.add('TEST_TRIGGER', "UNWIND…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Neo4j Cypher manual relationship index, APOC trigger and data duplication

I have the following query that uses plain relationship operations for node filtering: MATCH (dg:DecisionGroup)-[:CONTAINS]->(childD:Decision) WHERE dg.id = 1 MATCH…
alexanoid
  • 24,051
  • 54
  • 210
  • 410