neo4j-apoc

Adding 5834580 of node to Spatial Layer

不羁的心 提交于 2019-12-24 07:24:08
问题 I am trying to create an R-TREE of 5834580 of nodes. I found in this question a similair problem and i tried it's solution, so this is my code : call apoc.periodic.commit("MATCH (pl:pickup_location) WITH collect(pl) AS pickup CALL spatial.addNodes('nyc',pickup) YIELD count RETURN count",{limit:1000}) however, since yesterday the computer didn't finish loading the result. today, i tried the second answer with iterate : CALL apoc.periodic.iterate( "MATCH (pl:pickup_location) RETURN pl", "CALL

Adding 5834580 of node to Spatial Layer

瘦欲@ 提交于 2019-12-24 07:21:12
问题 I am trying to create an R-TREE of 5834580 of nodes. I found in this question a similair problem and i tried it's solution, so this is my code : call apoc.periodic.commit("MATCH (pl:pickup_location) WITH collect(pl) AS pickup CALL spatial.addNodes('nyc',pickup) YIELD count RETURN count",{limit:1000}) however, since yesterday the computer didn't finish loading the result. today, i tried the second answer with iterate : CALL apoc.periodic.iterate( "MATCH (pl:pickup_location) RETURN pl", "CALL

Adding 5834580 of node to Spatial Layer

牧云@^-^@ 提交于 2019-12-24 07:21:07
问题 I am trying to create an R-TREE of 5834580 of nodes. I found in this question a similair problem and i tried it's solution, so this is my code : call apoc.periodic.commit("MATCH (pl:pickup_location) WITH collect(pl) AS pickup CALL spatial.addNodes('nyc',pickup) YIELD count RETURN count",{limit:1000}) however, since yesterday the computer didn't finish loading the result. today, i tried the second answer with iterate : CALL apoc.periodic.iterate( "MATCH (pl:pickup_location) RETURN pl", "CALL

Neo4j 3.3.0 docker image with APOC - was successfully initialized, but failed to start

只谈情不闲聊 提交于 2019-12-24 07:14:08
问题 I try to add APOC to my Neo4j instance from Neo4j 3.3.0 docker image but during the startup, I received the following error: neo4j-database> 2017-12-11 19:57:01.189+0000 ERROR [c.g.r.b.RuntimeKernelExtension] Could not start GraphAware Runtime because the database didn't get to a usable state within 5 minutes. neo4j-database> 2017-12-11 19:57:01.192+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@498f5728' was

Write or token create operations are not allowed in procedure using cypher projection

一个人想着一个人 提交于 2019-12-24 04:19:24
问题 When calling a procedure using an evaluated inner query (cypher projection)which would be creating an node or edge a forbidden error is thrown for the admin user. It is possible to run the query outside the procedure. Maybe it is something of an configuration issue? I am trying to run a query using the timetree procedure of GraphAware and the LabelPropagation of Neo4j. But I've been able to get the forbidden error using a much simpler query. I am using Neo4j Desktop. I have tried giving the

APOC procedure not found

谁都会走 提交于 2019-12-24 02:06:57
问题 CALL apoc.export.csv.query("match (m:Movie) where m.name='Matrix' return m.name","results.csv",{}) Error: Neo.ClientError.Procedure.ProcedureNotFound There is no procedure with the name apoc.export.csv.query registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed. Neo4j community version 3.2.6 plugin "apoc-3.2.3.5.jar" is already available in plugins directory. Windows 10 installation 回答1: Make sure that you

APOC procedure not found

荒凉一梦 提交于 2019-12-24 02:06:12
问题 CALL apoc.export.csv.query("match (m:Movie) where m.name='Matrix' return m.name","results.csv",{}) Error: Neo.ClientError.Procedure.ProcedureNotFound There is no procedure with the name apoc.export.csv.query registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed. Neo4j community version 3.2.6 plugin "apoc-3.2.3.5.jar" is already available in plugins directory. Windows 10 installation 回答1: Make sure that you

Building a complex output and ranking the records in Neo4j

北城以北 提交于 2019-12-13 02:43:12
问题 This issue is directly related to the previous post: How to calculate rank for float values in Neo4j? I am trying to merge the "rank" and "weight" values with origin and path. I could successfully do this for origin: CALL apoc.load.json("file:///.../input.json") YIELD value UNWIND value.origin AS orig MATCH(origin:concept{name:orig.label}) WITH value, collect(origin) as origins UNWIND value.target AS tar MATCH(target:concept{name:tar.label}) UNWIND origins AS origin WITH origin, target CALL

Convert multiple relationships between 2 nodes to a single one with weight

淺唱寂寞╮ 提交于 2019-12-11 23:24:12
问题 I have the following graph, describing co-occurrence of car brands in documents: CREATE (`0` :Car {value:"Ford"}) , (`1` :Car {value:"Subaru"}) , (`2` :Car {value:"VW"}) , (`0`)-[:`DOCUMENT` {value:"DOC-1"}]->(`1`) , (`0`)-[:`DOCUMENT` {value:"DOC-2"}]->(`1`) , (`1`)-[:`DOCUMENT` {value:"DOC-3"}]->(`2`); If there are many relationships between two nodes - for the purpose of visualization - I want to replace it with a single one and calculate the weight: VW ---1--- Subaru ---2--- Ford How can

Neo4j: Link Different Nodes to the one node

不想你离开。 提交于 2019-12-11 15:42:12
问题 Let's say you have the following 4 nodes: Set 1: (act: "Event Log", timestamp: 3461000) (act: "Uptime Report", timestamp: 3461000) Set 2: (act: "Event Log", timestamp: 149100) (act: "Uptime Report", timestamp: 149100) I am trying to figure out how to map each set of nodes to one node. I tried the following Cypher but all 4 nodes are mapping to only one node, (a) instead of creating two (a) nodes and mapping the 2 sets respectively. Is it necessary to have a condition that looks for the