neo4j

In Neo4j using managed extensions and the SpringInitializerPlugin parameters are no longer injected

情到浓时终转凉″ 提交于 2019-12-12 01:59:26
问题 We had an app running on neo4j 2.1.1 using managed extensions and a SpringInitializerPlugin earlier this year. We have since returned to it and tried to fire it up again. We are now using neo4j 2.1.5 and it seems that the parameters defined in the SpringInitializerPlugin aren't being injected into our resources. We created this simple project which demonstrates the problem. https://github.com/whatsthebeef/neo4j-managed-extensions-test The error we see is this below Can some explain what has

How to support Transactions in Neo4j Rest

Deadly 提交于 2019-12-12 01:56:29
问题 We build a Grails Application using the database Neo4j ,And We used Spring Data Neo4j rest , As per the requirement of any Application , it should provide the facility of Transaction . But using Neo4j When we save a Node and Exception occur in executing the code then the node is save but its relationship is not save How to resolve this problem ??? Can we use Spring Transaction Management or any other thing ??? 回答1: In the past it was a shortcoming of the Neo4j-REST APIs to not expose

Failure on CSV import into Neo4j 2.2.0-RC01

旧巷老猫 提交于 2019-12-12 01:48:18
问题 I'm having some weird issues when using the batch load into Neo4j 2.2.0-RC1. I am trying to import 10 different node sets (for different labels) along with 12 relationship files. The data sets vary in size - some node types have ~200-300k records, some are small (50-100 records). For most node types I have a separate file with a header and separate file with data for each of the sets (the data is generated from the DB and I want to be able to regenerate the dump files without worrying about

find top sort patterns for each node

你。 提交于 2019-12-12 01:47:50
问题 My data is modeled this way: I have nodes of soccer players, goals and matches. player is connected to match with [:played] relation, and to goal with [:scored] relation. goal is connected to match with [:scoredIn] relation. each match has a (Long) date property. I'm trying to find players who scored the most goals in their last 5 matches (with DESC sorting on the match.date property). What would be the most efficient way? I can go over every player's matches sorted DESC, keep the matches ids

How to represent days in timeline tree for Neo4j/graphDB

随声附和 提交于 2019-12-12 01:45:46
问题 In reading this blog, this reference, and reviewing the answer to this question, I'm confused as to how one can represent distinct days in a timeline tree. In both cases they show a limited number of days on the example database and my thought is that this model cannot hold if you wanted to model an entire year or an unbounded temporal calendar period. I am reading these examples such that the 'day' nodes are merely just the number of the day '1', '2', .. '31'. As every month has a day

curl -> node, how to?

谁都会走 提交于 2019-12-12 01:43:14
问题 I need to set the password for Neo4j and can do it from the command line like this: curl -H "Content-Type: application/json" \ -H "Authorization: Basic `echo -n 'neo4j:neo4j' | base64`" \ -X POST -d '{"password":"nopass"}' \ http://localhost:7474/user/neo4j/password but I'm now trying to do it in node.js like this: var f = require('node-fetch'); var url = 'http://neo4j:n0p4ss@localhost:7474/user/neo4j/password'; var auth = new Buffer('neo4j:neo4j').toString('base64'); f(url, { method: 'POST',

neo4j 2.0 - startnode(r) and union all

北战南征 提交于 2019-12-12 01:39:36
问题 I have created relationship named 'friend' between 2 node and want to know, which node is request sender? I seen some post on stackoverflow regarding startnode(r), but I cannot understand how to use? can some one explain me with use case? One more thing, I want to join 2 result sets with "union/union all" clause. How can I do this? thanks. 来源: https://stackoverflow.com/questions/18051685/neo4j-2-0-startnoder-and-union-all

logging the cypher query for spring neo4j

a 夏天 提交于 2019-12-12 01:37:43
问题 I tried to log the cypher query generated by the spring data neo4j by using the following log4j configuration: log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.category.org.springframework.data.neo4j=DEBUG However, I couldn't see there are cypher queries shown in the log. Anyone has ideas on the ways of investigating the cypher query generated for the spring neo4j data mapping? 回答1: they are

Neo4J - count outermost nodes

╄→гoц情女王★ 提交于 2019-12-12 01:37:17
问题 Given a graph (or subgraph), in this case root Neo... How do I get the nodes which are the furthest depth from the root (i.e not directly connected to nodes of greater depth) which have a specific attribute. eg ... how do I get the green "Get Me" nodes when I'm not interested in the other green ones (they're not the outermost layers) or the orange ones (furthest out on their branch but not green). I don't care about depth .... Thanks for your help Chris 回答1: Another approach to Franks would

will Gremlin graph queries always perform operations in it's own address space?

我的未来我决定 提交于 2019-12-12 01:29:42
问题 admittedly, most of my database experience is relational. one of the tenets in that space is to avoid moving data over the network. this manifests by using something like: select * from person order by last_name limit 10 which will presumably order and limit within the database engine vs using something like: select * from person and subsequently ordering and taking the top 10 at the client which could have disastrous effects if there are a million person records. so, with Gremlin (from