neo4j

py2neo - Neo4j - System Error - Create Batch Nodes/Relationships

只愿长相守 提交于 2019-12-24 17:07:13
问题 Attempting to batch create nodes & relationships - batch creation is failing - Traceback at end of the post Note code functions with smaller subset of nodes - fails when get into massive number of relationships, unclear at what limit this is occurring. Wondering if I need to increase ulimit above 40,000 open files Read somewhere where persons were running into Xstream issues with REST API while conducting batch create - unclear if the problem set is on the py2neo end of the spectrum, or on

neo4j does not start with Neo4j.bat

冷暖自知 提交于 2019-12-24 17:06:21
问题 When I double click (on windows 8) in Neo4j.bat it show me for a second the command prompt, showing me the error "impossibile trovare il percorso specificato" the command prompt closes. Searching on google the error is not found. The version is 1.9.2 but also the previous 1.9 and 2.0.0-M03 gives me same problem. 回答1: The error translates to "cannot find the path specified." With that, you'll find a few posts, such as this one, discussing the problem. The answer involves a few things: Removing

Complex query with agregation in where clause

感情迁移 提交于 2019-12-24 17:00:03
问题 Suppose that i have a graph in which for each pair of nodes m,n of type BallT there can be a node k of type BallD that connects them through relationships of type Rel, that is, there can be multiple patterns of the kind p=(m:BallT)-[r:Rel]-(k:BallD)-[s:Rel]-(n:BallT) . For a given node m (satisfying for example m.key="whatever" ) let's call Nmn the number of BallD connecting m and some node n and N the total number of BallD nodes. For this given node m how can i found all nodes n such that

Cypher query to find nodes that are not related to other node by property

拈花ヽ惹草 提交于 2019-12-24 16:53:16
问题 Consider the following DB structure: For your convenience, you can create it using: create (p1:Person {name: "p1"}),(p2:Person {name: "p2"}),(p3:Person {name: "p3"}),(e1:Expertise {title: "Exp1"}),(e2:Expertise {title: "Exp2"}),(e3:Expertise {title: "Exp3"}),(p1)-[r1:Expert]->(e1),(p1)-[r2:Expert]->(e2),(p2)-[r3:Expert]->(e2),(p3)-[r4:Expert]->(e3),(p2)-[r5:Expert]->(e3) I want to be able to find all Person nodes that are not related to a specific Expertise node, e.g. "Exp2" I tried MATCH (p

NodeBacked entity NPE - entityState is null

我的未来我决定 提交于 2019-12-24 16:18:18
问题 I've got a sample project which uses Spring Data Neo4j's advanced mapping using aspectj. It's failing in a test with NullPointerException due to the entityState attribute being null at the time when the entity is being persisted. I can also replicate this when the server itself is spun up and I execute: curl -i -X POST -H "Content-Type:application/json" -d '{ "firstName" : "Test", "lastName" : "Person" }' http://localhost:8080/people The project is at https://github.com/dhallam/spring-data

Got “neo4j: command not found” error when installing Neo4j on Linux machine

怎甘沉沦 提交于 2019-12-24 16:01:10
问题 I tried to install Neo4j1.9.2 on an Ubuntu machine. I downloaded neo4j-community-1.9.2-unix.tar.gz from Neo4j.org and unzipped it. The neo4j file is in the bin directory. In bin directory, I typed command "neo4j start", got error "neo4j: command not found". I also tried command "sudo neo4j install", after I provided the password, I got same error "neo4j: command not found". Java has been installed on this machine: java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1

How to handle NotFoundException elegantly in Neo4j 2.0?

不想你离开。 提交于 2019-12-24 15:54:30
问题 We were wishfully thinking that with Neo4j 2.0, concurrently querying and deleting nodes will no longer throw NotFoundException. Our previous system using Neo4j 1.9.3 was full of checks to handle this exception(very ugly code). Is there any better way to handle NotFoundException(if not eliminate) in neo4j 2.0 or, in the pipeline? Stack Trace: org.neo4j.graphdb.NotFoundException: Node 2432 not found at org.neo4j.kernel.impl.core.NodeManager.getNodeForProxy(NodeManager.java:425) at org.neo4j

from Neo4j to GraphJSON with Ruby

馋奶兔 提交于 2019-12-24 15:52:51
问题 I'm trying to get visualizations using d3.js or alchemy.js--but alchemy, in particular, requires the datasource to be in GraphJSON. I've been playing around with the tutorials and examples of Max De Marzi (using neography), Michael Hunger (cy2neo, js), Neo4j, and Neo4j.rb -- but I cannot seem to get all the way there. Mostly because I don't know what I'm doing--but this is how I'm trying to learn. What I'm trying to achieve would be along the lines of: https://bl.ocks.org/mbostock/3750558 or

Py2neo Neo4j Batch submit error

天大地大妈咪最大 提交于 2019-12-24 15:27:27
问题 I have a json file with data of around 1.4 million nodes and I wanted to construct a Neo4j graph database for that. I tried to use py2neo's batch submit function. My code is as follows: # the variable words is a list containing node names from py2neo import neo4j batch = neo4j.WriteBatch(graph_db) nodedict = {} # I decided to use a dictionary because I would be creating relationships # by referring to the dictionary entries later for i in words: nodedict[i] = batch.create({"name":i}) results

Database connection to Neo4j with Pentaho Spoon

放肆的年华 提交于 2019-12-24 15:11:29
问题 I want to connect to Neo4j with Pentaho Kettle Spoon. I downloaded jdbc driver of neo4j with this and I tried to use this guide to connect to neo4j with Pentaho Kettle Spoon. I have two main problems: downloaded JDBC Driver is zip file. I changed Driver extension to jar for solving this problem. when I changed extension to jar and copy it in lib folder and follow this guide I faced missing driver error: org.neo4j.jdbc.Driver could not be found How can I solve these problems? 回答1: You can not