neo4j

neo4j, Sorry! Too many neighbours [closed]

别等时光非礼了梦想. 提交于 2019-12-11 13:19:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have a node that has 39 sub-nodes, when I using neo4j browser, I dbclick this node, and alert "Sorry! Too many neighbours", anyone know how to solve this problem? Is there any better and high performance neo4j graph view tool? 回答1: Neo4j has a shell.you can try it. if you running it in the local y can simple

how to warm up page cache in neo4j

ぐ巨炮叔叔 提交于 2019-12-11 13:13:48
问题 I'm executing allShortestPaths query in neo4j.After a lot of tests, I have found that when executing the allShortestPaths query for the first time, it takes about 2~3 seconds, but when executing the same query again, it always takes less than 500ms. After studying the neo4j documentation, I have known it has the page cache system. In neo4j-operations-manual, it says "When Neo4j starts up, its page cache is empty and needs to warm up", I am wondering how to warm up the page cache manually,and

how to import csv file into neo4j NumberFormatException

烈酒焚心 提交于 2019-12-11 12:57:24
问题 I have followed steps of maxdemarzi. And i took the csv datas of this example. However, it took this error when execute this command. java -server -Dfile.encoding=UTF-8 -Xmx4G -jar batch-import-jar-with-dependencies.jar neo4j/data/graph.db BeerNodes.csv BeerRelationships.csv Usage: Importer data/dir nodes.csv relationships.csv [node_index node-index-name fulltext|exact nodes_index.csv rel_index rel-index-name fulltext|exact rels_ind ex.csv ....] Using: Importer neo4j/data/graph.db BeerNodes

Neo4j - Finding the Shortest Path between two nodes based on relationship property

China☆狼群 提交于 2019-12-11 12:56:26
问题 I'm trying to figure out if there's someway to get the shortest distance between two nodes based in a relationship sum, given this example: neo4j image example Code for image above: CREATE (some_point_1:Point {title:'Some Point 1'}) CREATE (some_point_2:Point {title:'Some Point 2'}) CREATE (some_point_3:Point {title:'Some Point 3'}) CREATE (some_point_4:Point {title:'Some Point 4'}) CREATE (some_point_5:Point {title:'Some Point 5'}) CREATE (some_point_6:Point {title:'Some Point 6'}) CREATE

Using Neo4j to build a Master Data Management

佐手、 提交于 2019-12-11 12:36:59
问题 I am trying to use Neo4j to build an MDM. I am just trying to model our customer database with some properties, like email, documentNumber, address, phone, mobilephone and so on. The problem is that our database is too dirty. For example, I have users with same documentNumber (it is like a ssn.). And when I look to these registries I can see that they are actually the same person. For discover pattern through relationship I need to dedup/clean records. But I am afraid of loosing information

Neo4j 2.2 Cypher locking regression?

家住魔仙堡 提交于 2019-12-11 12:35:03
问题 I have some code that needs to acquire a write lock on a node. For various reasons it is inconvenient to use the Java API to acquire the lock, so I acquired it in Cypher 2.1 by setting a dummy value on the node. Then I use the node in a different query. In 2.1, calling SET n._lock = 1 was sufficient to acquire a write lock on the node for the rest of the transaction. However, when I upgrade to 2.2, I have a test that fails, because the write lock appears to be lost between queries within the

Cypher: How to return a node if the relationship doesn't exist?

南笙酒味 提交于 2019-12-11 12:32:43
问题 I have User and Building labels for nodes, the relationships are User-[:HAS_PERMISSION]->Building To get all buildings that a user is having permissions to so I use MATCH (u:User {id: {id}}),(u)-[r:HAS_PERMISSION]->(b:Building) return b How can I just return the user in case he exists and there are no relationships? (basically I also want to know if the user exists at all..) 回答1: Not sure if I understand your question correctly, but I think you'll need an OPTIONAL MATCH . This query shows all

Geohash NEO4j Graph with Spark

笑着哭i 提交于 2019-12-11 12:31:41
问题 I am using Neo4j/Cypher , my data is about 200GB , so i thought of scalable solution "spark". Two solutions are available to make neo4j graphs with spark : 1) Cypher for Apache Spark (CAPS) 2) Neo4j-Spark-Connector I used the first one ,CAPS . The pre-processed CSV got two "geohash" informations : one for pickup and another for drop off for each row what i want is to make a connected graph of geohash nodes. CAPS allow only to make a graph by mapping nodes : If node with id 0 is to be

Unable to install gremlin-neo4j through gremlin shell

血红的双手。 提交于 2019-12-11 12:28:19
问题 So, I'm going through the tutorial on getting started with the TinkerPop 3.0 stuff. I've gotten the basic API working with the TinkerGraph stuff, and I'm moving on to try and interface with my local Neo4j instance (Community 2.2.2). I'm working through the tutorial here: http://tinkerpop.incubator.apache.org/docs/3.0.0.M9-incubating/ but, the neo4j-gremlin plugin does not appear to exist as documented. Neither the gradle line: compile group : 'org.apache.tinkerpop', name: 'neo4j-gremlin',

Why does the cleandb extension refuse to delete my neo4j graph database?

半城伤御伤魂 提交于 2019-12-11 12:18:59
问题 When trying to purge neo4j (1.8.2) with the cleandb extension (for neo4j 1.8), it fails: [path] ? curl -v -X DELETE 'http://localhost:7475/db/cleandb/12sE$lkj3%' * About to connect() to localhost port 7475 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 7475 (#0) > DELETE /db/cleandb/12sE$lkj3% HTTP/1.1 > User-Agent: curl/7.29.0 > Host: localhost:7475 > Accept: */* > < HTTP/1.1 500 Internal Server Error < Content-Length: 0 < Server: Jetty(6.1.25) < * Connection #0 to host