neo4j

Neo4j on Amazon EC2 - Not accessible from remote machines

守給你的承諾、 提交于 2020-01-02 19:11:26
问题 I am currently attempting to get neo4j installed properly on an EC2 instance with RHEL. Currently I can not hit the server on port 7474 from a browser to see the neo4j webadmin or browser. As of right now I can successfully access localhost:7474 which leads me to believe it is some level of access issue with remote connections. What I have done so far: Installed Oracle Java 1.7 on the EC2 instance Installed neo4j-community-2.0.1 Added org.neo4j.server.webserver.address=0.0.0.0 to the neo4j

neo4j handaling a long transation on one iterator

萝らか妹 提交于 2020-01-02 14:05:15
问题 I would like to go over all my "user" nodes in the graph and do some action on them. The problem is that I have too many "user" nodes, and I can't hold all of them on the heap. so, doing something like: try (Transaction tx = graphDb.beginTx()) { Iterator<Node> n_column = autoNodeIndex.get( "type", "user" ); while (n_column.hasNext()) { //create relationship for node... } tx.success(); } will cause GC overhead exception. How can I split it to few transactions , but on the same iterator? I

Neo4j cypher time interval histogram query of time tree

孤人 提交于 2020-01-02 09:01:05
问题 I would like to build an histogram on time series stored as time tree in neo4j. The data structures are event done by a user each has timestamp, say user purchases category. What I need to have is the number of browsing on each category by each user between start and end time, with interval of (1 second to days) My model feats graph db very nicely, as I read neo4j documentation I could not find any way to do it in one query, and I'm afraid that calling for each user would be very slow. I am

Neo4j Cypher version 1.8 : Probable bug with relationship identifiers

泪湿孤枕 提交于 2020-01-02 06:01:31
问题 http://console.neo4j.org/r/yx62bk In the graph above, the query start n=node(7,8,9) match n-[objectScore:score]->o-[:object_of_destination]->d<-[:destination_score]-n, o-[:instance_of]->ot, o-[:date]->oDate, d-[:date]->dDate where ot.name='HOTEL' return n, o, objectScore, d; returns o as null. Change the query to remove relationship identifier - objectScore start n=node(7,8,9) match n-[:score]->o-[:object_of_destination]->d<-[:destination_score]-n, o-[:instance_of]->ot, o-[:date]->oDate, d-[

Failed WriteBatch Operation with py2neo

瘦欲@ 提交于 2020-01-02 01:31:08
问题 I am trying to find a workaround to the following problem. I have seen it quasi-described in this SO question, yet not really answered. The following code fails, starting with a fresh graph: from py2neo import neo4j def add_test_nodes(): # Add a test node manually alice = g.get_or_create_indexed_node("Users", "user_id", 12345, {"user_id":12345}) def do_batch(graph): # Begin batch write transaction batch = neo4j.WriteBatch(graph) # get some updated node properties to add new_node_data = {"user

Cypher query shortest path

岁酱吖の 提交于 2020-01-01 22:00:14
问题 I build a graphe this way: the nodes represents: busStops, and the relationship represent the bus line linking bus stops each others. The relationship type correspond to the time needed to go from a node two another one. When I'm querying the graph (thanks to cypher) to get the shortestPath between two which are maybe not linked, the result is the one where the number of relations used is the smallest. I would to change that in order that the shortest path corresponds to the path where the

Delete all relations and connected nodes in Neo4j for a user

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 16:37:24
问题 We have selected neo4j as the DB for our web application. The user has a large number of relations and connected nodes. As of now there are about 20 relations for a user. One of the features is a newsfeed feature. If i want to delete a user completely, is the cypher query the best way to delete or is there any other alternative? Since we are still planning to add new features, the relationships and nodes connected to the user also will increase. So if we use cypher query, the query has to be

ASP.NET and Neo4jClient - where to store the connection?

佐手、 提交于 2020-01-01 11:57:08
问题 The C# Neo4JClient has GraphClient where you have to call .Connect() var client = new GraphClient(new Uri("http://localhost:7474/db/data")); client.Connect(); In all of the examples that I've seen, it's in a Console app, so they declare GraphClient in Main() and re-use it. And the documentation mentions how its Thread Safe and to only have one instance per database and to not call .Connect() multiple times. But what about in ASP.NET applications? Should I be sticking it in some static class

Cypher load CSV eager and long action duration

大城市里の小女人 提交于 2020-01-01 10:35:26
问题 im loading a file with 85K lines - 19M, server has 2 cores, 14GB RAM, running centos 7.1 and oracle JDK 8 and it can take 5-10 minutes with the following server config: dbms.pagecache.memory=8g cypher_parser_version=2.0 wrapper.java.initmemory=4096 wrapper.java.maxmemory=4096 disk mounted in /etc/fstab: UUID=fc21456b-afab-4ff0-9ead-fdb31c14151a /mnt/neodata ext4 defaults,noatime,barrier=0 1 2 added this to /etc/security/limits.conf: * soft memlock unlimited * hard memlock unlimited * soft

Config file for Neo4j Docker Image

人盡茶涼 提交于 2020-01-01 09:18:20
问题 I installed neo4j-3.0 as a docker image in Mac OSX. Where can I locate the config file for neo4j ? 回答1: They have a dedicated section on their page for that ... There are 3 ways: via environment variables, mounting a /conf volume and building a new image The /conf volume is probably the way the OP wants: To make arbitrary modifications to the Neo4j configuration, provide the container with a /conf volume. docker run \ --detach \ --publish=7474:7474 --publish=7687:7687 \ --volume=$HOME/neo4j