neo4j-apoc

How do I fix this Neo4j APOC query that creates nodes froma CSV file?

六眼飞鱼酱① 提交于 2019-12-11 05:28:46
问题 I want the query to read the CSV file and create a node for each row in the file. Here's the query: CALL apoc.load.csv('FILE:///C:/Temp/Test/Test/Neo4jTest/import/Neo4j_AttributeProvenance.csv',{sep:","}) YIELD map CALL apoc.create.node(map.NodeType, {key:map.NodeID}) yield node return count(*) Here's the error: Can't coerce `RootNode` to List<String> Here's the data file: NodeType,NodeID,SchemaName,TableName,AttributeName,DataType,PreviousNodeID RootNode,queryprocessingtest.q01

NullPointer using apoc.map.fromPairs in Neo4j Cypher Query

北城余情 提交于 2019-12-11 04:27:09
问题 I am using the code below to return all nodes that are 3 inward facing edges from a specific node (id(65)) and format the result as JSON Graph with the help of the apoc.map.fromPairs procedure. I am getting an error if there are no nodes that are 3 edges away from the starting node. It seems that the apoc.map.fromPairs procedure throws the belowerror running against the "null" used for missing parts of the pattern when I include the OPTIONAL statement. Failed to invoke function apoc.map

How to use apoc.load.csv in conjunction with apoc.create.node

此生再无相见时 提交于 2019-12-08 04:07:40
问题 I need to import a CSV file and create a node from each record. I am using APOC because supposedly I can use a column in the CSV file to define each node type as the nodes are created. This doesn't work: CALL apoc.load.csv('FILE:///C:/Temp/Test/Test/Neo4jTest/import/Neo4j_AttributeProvenance.csv',{sep:","}) YIELD map CALL apoc.create.node(['map.AttributeName'], {key:['map.NodeID']}) return count(*) This is the error: Procedure call inside a query does not support naming results implicitly

apoc.gephi.add doesn't work : NODE[25512922] has no property with propertyKey='name'

烈酒焚心 提交于 2019-12-08 04:07:34
问题 I'm currently trying to set up a streaming connection between a Neo4j DB and Gephi. I use then Apoc with apoc.gephi.add. match path = (p:Person)--(a:Address) call apoc.gephi.add(null, 'workspace1', path) yield nodes, relationships return nodes, relationships limit 20 But I have a problem with this, whom I don't understand the cause. my execution result So Neo4j saying me that I don't have property with propertyKey="name". I tested the query on a movie DB previously and it worked, but there is

UNWIND multiple unrelated arrays loaded from JSON file

六月ゝ 毕业季﹏ 提交于 2019-12-06 05:44:50
问题 I'm trying to UNWIND multiple array properties with a single call to apoc.load.json(). The version I have doesn't fully work: some relationships don't get loaded. My guess is that it's due to the piping of output via the WITH command. I can have it all load if I run the unwinds separately for each array-based property, but I'm curious as to how it can be done all together. Any insights and pointers are appreciated =) //LOAD CLASSES AND UNWIND COMMON ITEMS,COMPANIONS,LOCATIONS CALL apoc.load

How to install apoc for neo4j?

时光毁灭记忆、已成空白 提交于 2019-12-01 17:48:53
According to https://neo4j-contrib.github.io/neo4j-apoc-procedures/ , one only needs to download the binary jar from http://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/3.1.0.3 to place into the folder "Neo4j CE 3.1.1\plugins". I did so. However, I was unable to call "call apoc.help("apoc")" from the http://localhost:7474/browser/ . cybersam If you installed neo4j using a Windows or Mac installer (which most people do), and not from a zip or tar file, then the plugins folder should be in your database folder, not in your neo4j installation folder. Here is a related answer with a

How to install apoc for neo4j?

和自甴很熟 提交于 2019-12-01 16:02:11
问题 According to https://neo4j-contrib.github.io/neo4j-apoc-procedures/, one only needs to download the binary jar from http://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/3.1.0.3 to place into the folder "Neo4j CE 3.1.1\plugins". I did so. However, I was unable to call "call apoc.help("apoc")" from the http://localhost:7474/browser/. 回答1: If you installed neo4j using a Windows or Mac installer (which most people do), and not from a zip or tar file, then the plugins folder should be in

Visualize connected components in Neo4j

你离开我真会死。 提交于 2019-12-01 14:27:45
I can find the highest densely connected component in the graph using the code below: CALL algo.unionFind.stream('', ':pnHours', {}) YIELD nodeId,setId // groupBy setId, storing all node ids of the same set id into a list MATCH (node) where id(node) = nodeId WITH setId, collect(node) as nodes // order by the size of nodes list descending ORDER BY size(nodes) DESC LIMIT 1 // limiting to 3 RETURN nodes; But it does not help me visualize the topmost densely connected component (sub-graph) because the output graph it emits are disjoint nodes. Is it possible to visualize the densely connected

APOC is only partially installing its extension in neo4j (one procedure)

梦想的初衷 提交于 2019-11-27 15:22:31
I downloaded apoc-3.1.0.3-all.jar and placed it in the plugins for my windows7 Neo4J 3.1.1 system. C:\Users>java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) Killed the Neo4J process on the computer, and then restated the server. I am only seeing one apoc procedure listed, others give an error about missing procedure. ThereNo sign of errors in the neo4j log. I tried unblocking the jar, and restarting the server. No luck. I have no problem with doing Call db.schema() But something as

APOC is only partially installing its extension in neo4j (one procedure)

会有一股神秘感。 提交于 2019-11-26 17:11:51
问题 I downloaded apoc-3.1.0.3-all.jar and placed it in the plugins for my windows7 Neo4J 3.1.1 system. C:\Users>java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) Killed the Neo4J process on the computer, and then restated the server. I am only seeing one apoc procedure listed, others give an error about missing procedure. ThereNo sign of errors in the neo4j log. I tried unblocking the jar,