neo4j

ParameterNotFoundException when not setting specific params

跟風遠走 提交于 2019-12-13 03:43:43
问题 I am trying to use Neo4jClient to run the Cypher syntax: UNWIND {apples} AS newApple CREATE (a:Apple {newApple}) with a C# list of object List<Apple> a where the object could be: class Apple : Fruit { [JsonProperty(PropertyName = "Variety")] public String Variety { get; set; } } I do not want to spread out object variable specs in different places around the code. But running graphClient.Cypher .Unwind(a, "newApple") .Create("(a: Apple {newApple})") .ExecuteWithoutResults() throws:

Getting error Response with status: 404 Not Found for URL

左心房为你撑大大i 提交于 2019-12-13 03:40:05
问题 I am facing an issue while running the angular and nodejs app which I am trying to integrate with Neo4j app. The issues are the errors that I get- POST http://localhost:7474/viewNodesStart 404 (Not Found) and EXCEPTION: Response with status: 404 Not Found for URL: http://localhost:7474/viewNodesStart Though this topic is repetitive in StackOverflow , I am still posting it because the following links suggestions didn't suit my issue. Angular2 404 Not Found for URL: http://localhost/WebApi2/api

Maven build error - neo4j-embedded python

最后都变了- 提交于 2019-12-13 03:37:37
问题 I'm attempting to build the latest Embedded Neo4j Python bindings, cloned from https://github.com/neo4j-contrib/python-embedded.git. This is my first attempt at building a project using Maven, so I could just be missing something simple. Reading the project docs, I ran mvn package which led to dependency errors, the verbose output is pasted here, http://pastebin.com/CBr2XXqQ Some advice led me to try mvn install which seemed to download some dependency POM files, yet there is still a build

How to delete a node and its connected nodes with Neo4j cypher query?

我是研究僧i 提交于 2019-12-13 03:36:12
问题 For example, I want to delete Actor node with id = "005A" and its connected Movie nodes. The relationship between Actor and Movie node is ACTED_IN . I have tried this cypher query: MATCH (a:Actor {id: "005A"}) OPTIONAL MATCH (a)-[r:ACTED_IN]->(m) DELETE a, r, m; but it didn't work, I got TransactionFailureException: Unable to commit transaction error. Anyone can give a solution? UPDATE: I found out that there is relationship from other node ( Agency ) to Actor node which labeled as OWNED . So

Neo4j / Cypher: Match nodes only if they have a relation with 1 or more other nodes

戏子无情 提交于 2019-12-13 03:32:21
问题 I'm having some trouble on this query I am trying to build. I have looked plenty of places over the internet and I couldn't seem to find an answer, so I am asking here. so here is what my schema somewhat looks like. (sorry for shitty paint diagram) The query I want is; Starting from one Route node, I get multiple RS, and a single OMS from each RS I want to find all Route nodes which eventually connects to the same (or more) OMS nodes here is my current query: MATCH (st)--(rs:RS)--(oms:OMS)

optimize cypher query fired from python

帅比萌擦擦* 提交于 2019-12-13 03:31:52
问题 driver for neo4j for python . I have a program that dynamically creates around 10-12 queries . The final result from all queries is collected in a list` and returned. Below are 10 such queries: MATCH (sslc:subSubLocality)-[:CHILD_OF]->(v4)-[:CHILD_OF]->(v3)-[:CHILD_OF]->(v2)-[:CHILD_OF]->(st:state) WHERE (st.name_wr = 'abcState') AND (sslc.name_wr= 'xyzSLC' OR sslc.name_wr= 'abcxyzcolony') RETURN st, sslc, v4, v3, v2 MATCH (slc:subLocality)-[:CHILD_OF]->(v3)-[:CHILD_OF]->(v2)-[:CHILD_OF]->(st

Talend Neo4j Relationship component throws error when start node doesn't exist

流过昼夜 提交于 2019-12-13 03:21:29
问题 We're using Talend Open Studio for Big Data to migrate MySQL data to Neo4j. I've gotten a few jobs to run, however I get stuck using the tNeo4jOutputRelationship compontent on a rels.csv file which contains relatioships between values that dont exist in our nodes.csv file. Explicit error that is thrown: Exception in component tNeo4jOutputRelationship_1 java.lang.RuntimeException: Start node looked up by index with my_index as key and my_value as value doesn't exist Did a bit of research and

Finding cypher paths that don't visit the same node twice

自作多情 提交于 2019-12-13 03:03:44
问题 I'm looking for the paths between two nodes in a graph, but my graph has a loop in it and so I'm getting paths back that are undesirable. I'm hoping that someone here can help me think out a sensible remedy. Here's my graph: A | 2 | C-3-D | | | 4 5 | | E | | | 6 | | F-7-G The letters are nodes, and the numbers are edges (relationships). CREATE (a {i: "A"}) CREATE (c {i: "C"}) CREATE (d {i: "D"}) CREATE (e {i: "E"}) CREATE (f {i: "F"}) CREATE (g {i: "G"}) CREATE a-[:r {i:2}]->c-[:r {i:3}]->d-[

Boolean value return from Neo4j cypher query without CASE

孤街醉人 提交于 2019-12-13 02:59:26
问题 I know that you can do this match (user:User {username:'${username}', password:'${password}'}) RETURN CASE WHEN user.blocked='true' THEN true ELSE false END as blocked, user.username as username, user.uid as uid But I hope to find a shorter way to return booleans with cypher, I am using nodejs and having CASE like this on every boolean props my objects have seems very verbose... Is there a better way ? thanks 回答1: You can replace this: CASE WHEN user.blocked='true' THEN true ELSE false END AS

Return variable outside of a function scope in Javascript [duplicate]

旧巷老猫 提交于 2019-12-13 02:48:48
问题 This question already has answers here : How do I return the response from an asynchronous call? (36 answers) Closed 5 years ago . I tried all the solutions posted here, but nothing worked, because my problem is a bit different. I have the following code (calls on a code from external neo4j module to insert a node into Neo4J database and then gets the Neo4J Id of that node): dbneo.insertNode({ auth_id: user.id, username: user.name, name: user.name },function (err, node){ if(err) throw err; //