neo4j

Neo4j Desktop install error in first step

落花浮王杯 提交于 2019-12-24 07:37:40
问题 I'm trying to install Neo4j Desktop on ubuntu 16.04 and I have installed JDK 8. I'm getting this error: Initialization error: Error: Shasum of the downloaded file did not match the expected value. Please try again! Does anyone know whats the problem? 回答1: my problem has been solved, the problem was from that I could not connect to Oracle servers because sanctions of my country by Oracle ... so I used VPN and the problem had been solved .. so, check if you can connect to oracle website or not

Return nodes who are connected by a common set of nodes

ⅰ亾dé卋堺 提交于 2019-12-24 07:37:15
问题 Is there a way in Neo4j, using either cypher or gremlin, to return a list of nodes that have a common set of nodes between them? An example would be Person1-[KNOWS]->Friend1 Person1-[KNOWS]->Friend2 Person1-[KNOWS]->Friend3 Person2-[HATES]->Friend2 Person2-[HATES]->Friend3 I want to start at Person1 and say, "Find me the people who hate all the people I know", which should return Person2 since Person1 knows Friend2,Friend3 and Person2 hates Friend2,Friend3 . I've started by finding the

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

Cannot start Neo4j - getting unable to bind to port

此生再无相见时 提交于 2019-12-24 07:12:59
问题 I am using mac os, every time I am trying to start Neo4j I am getting this error Unable to bind to port. Are you running another Neo4j process on this computer? tried to check the default port lsof -i :5001 but nothing is bind to that port same result checking the activity monitor shows that neo4j not running 回答1: Is 5001 your browser port ? I would check if there is usage on the following : Port 7474 (neo4j browser) : lsof -i -n -P | grep 7474 Port 1337 (neo4j-shell): lsof -i -n -P | grep

Neo4j/React: Parsing Neo4j Results for use in React

本秂侑毒 提交于 2019-12-24 07:08:07
问题 Before I go down this rabbit trail I want to make sure I am heading down the right trail. The query from Neo4j is returning the following: "data": { "action": [ { "action": "Changed", "timestamp": 1499348050000, "object": [ { "filename": "C:/Users/Public/Desktop/word.doc" } ], "Second": [ { "time": 1499348050 } ] } Now I would like to generate a Force Directed graph with the results above. The action node would have lines to the object and second node. However, all the examples that I have

Neo4j Cypher query for many to many relationship

℡╲_俬逩灬. 提交于 2019-12-24 07:03:08
问题 I have a graph that looks like the following: Brand--SOLD_BY-->Store One brand of a certain item can be sold by multiple stores. Similarly, a single store can sell multiple brands of items. What I want to achieve is find all the stores that sell a particular brand but in the result along with the store, I would also like the other brands that are sold by that particular store. For example: Brand1 is sold by StoreA, StoreB, StoreC. The result should look something like.. StoreA - Brand1,

Neo4j: find degree of connection

寵の児 提交于 2019-12-24 06:49:51
问题 I'm using Neo4j to find the degree of connection between users. I have data in the follower shape: (user)-[:INTERACTS_WITH]->(user) So if user_1 interact with user_2 and user_2 interacts with user_3, then user_1 and user_3 share a second-degree connection. Ideally, I would like to get the following dataset like this in return: degree count NULL 123 1 1050 2 3032 3 2110 ... ... Is there a better way to do this than to simply run shortestPath() function for every pair of users? If not, then