neo4j

spring boot - neo4j - java.lang.IllegalArgumentException: argument type mismatch

寵の児 提交于 2019-12-25 04:49:16
问题 I'm having a trouble with mapping an object Employee to my database when invoking a default method in my Employee repository. I get an argument type mismatch when invoking an employeerepository.findall() method Employee repository package org.jarivm.relationGraph.repositories; import org.jarivm.relationGraph.domains.Employee; import org.jarivm.relationGraph.domains.Project; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.GraphRepository

how to create relationship and merge/create new node in loop in neo4j

与世无争的帅哥 提交于 2019-12-25 04:34:52
问题 I am trying to create friend relationship to all the ids in the list but I am getting an error: y already declared (line 2, column 41 (offset: 64)) "Merge (y:User{id:"21",name:"b"}) Merge (y:User{id:"41",name:"d"}) Merge (y:User{id:"51",name:"e"}) " ^ Neo.ClientError.Statement.InvalidSyntax I am trying to create a new user with id,name,year and also relationship with existing node at the same time .How can I do it ?Is there any other way also?I really appreciate any help. MATCH (u:User {id:"2

Graphaware neo4j-php-client | Cannot catch Neo4jException

孤人 提交于 2019-12-25 04:16:02
问题 I'm using Postgresql + Neo4j for my project. I need to rollback postgres queries if neo4j query has failed. So, I need to catch Neo4jException in my code. But couldn't done yet. Thanks for help. require_once('pgconnect.php'); try{ $conn->beginTransaction(); //some pgsql code $conn->commit(); require_once('neoconnect.php'); $result = $client->run("a query"); $conn = null; } catch(PDOException $e){ require_once('pgrollback.php'); } this is my working code. But as you can see I don't have a

Drawing a graph using d3js from neo4j/cypher json output

守給你的承諾、 提交于 2019-12-25 04:07:12
问题 Is it possible to return in a single cypher query distinct nodes and edges of a specific path. For instance, using the movies graph the query below return separately movies and actors, I'd like to return all nodes together. using path p = (...) and nodes(p) actually returns pairs of nodes regardless the use of distinct. match (m:Movie {name: "Rain"}) -- (p:Person) return {nodes: collect(distinct {name: m.title}), actors: collect(distinct {name: a.name}), links: collect({source: m.title,

Performance issues using neo4j rest http client

别来无恙 提交于 2019-12-25 03:57:20
问题 Struggling this after replacing neo4j-jdbc client with Apache http client. Seems like we still have issues when running only 1k concurrent users that execute our query. This is how we using the client: https://gist.github.com/IdanFridman/1989b600a0a032329a5e this is how we execute the query using that rest-client: https://gist.github.com/IdanFridman/22637f95ba696f498b6c after profiling we see the above bad performance results: With avg latency of 3 seconds per request. Should we ditch neo4j?

grails unable to connect to neo4j datastore

試著忘記壹切 提交于 2019-12-25 03:49:25
问题 Getting error when running my grails app that is connecting to Neo4j Error initializing the application: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused Message: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java

Adding Jung dependencies to Neo4j server plugin extensions

我是研究僧i 提交于 2019-12-25 03:47:24
问题 Hi I am trying to experiment with Neo4j server plugins. The pom.xml file that I am using is exactly the same as in - https://github.com/neo4j/neo4j/blob/2.1.3/community/server-examples/pom.xml And the server plugin extension that I am experimenting with is - https://github.com/neo4j/neo4j/blob/2.1.3/community/server-examples/src/main/java/org/neo4j/examples/server/plugins/GetAll.java This works fine, but then I decide to make some calls to the Jung library from GetAll.java. So I simply add

neo4j - how to snapshot everything in a label

左心房为你撑大大i 提交于 2019-12-25 03:44:45
问题 Im using neo4j to store information about maps and sensors. Every time the map or sensor layout changes I need to keep a copy. I can imagine querying and manually creating said copy but I'm wondering if it's possible to build a neo4j type query that would do this for me. So far all I've come up with is a way to replicate the nodes in a given label: match ( a:some_label { some_params }) with a create ( b:some_label ) set b=a,b.other_id=value; This would allow me to put version and time stamp

Spring Data Neo4j “Hello, World” standalone app

主宰稳场 提交于 2019-12-25 03:43:39
问题 I'm trying to write a "Hello, World" with Spring Data Neo4j in a standalone app. It runs and actually creates the Neo4j database, but my @Autowired repo is not being initialized. I suspect the problem is in my main class, but I don't know what to try. Unsurprisingly, almost all the Spring tutorials I've found are about web apps. What am I doing wrong? config bean: @Configuration @EnableNeo4jRepositories(basePackages = "test2") public class ConfigBean extends Neo4jConfiguration { private

Neo4j-Server clear the cache in RAM

三世轮回 提交于 2019-12-25 03:42:59
问题 Neo4j server consumes very less RAM initially, but after processing some requests. The RAM consumed by the server increases. Even though no query is been processed it keeps using the RAM. While on restarting the server the RAM consumed is less again. This states that neo4j server is keeping some data in the RAM, and even though the request is been processed the data still stays in the RAM. Is there anyway to clear that data in the RAM at some threshold to avoid server crash? 回答1: Did you have