neo4j

Convert cypher query to c#

…衆ロ難τιáo~ 提交于 2020-01-04 09:05:33
问题 I have two tables: User Name Surname Phone number type_of_number var myList = ((IRawGraphClient) client).ExecuteGetCypherResults<**i_need_class_to_save_it**>( new CypherQuery("match (a:User)-[r]->(b:Phone) return a,collect(b)", null, CypherResultMode.Set)) .Select(un => un.Data); How create correct collection to save data? 回答1: It sounds like you haven't read https://github.com/Readify/Neo4jClient/wiki/cypher or https://github.com/Readify/Neo4jClient/wiki/cypher-examples. You really should

neo4j how to work with two match

我是研究僧i 提交于 2020-01-04 09:05:24
问题 I have two queries. First query is match (user)-[r:CreatesChat]-(chatitems) Second query is match (chatitems)-[r:PartOf]-(teamschat)-[s:OwnedBy]-() I want to return the first 3 users from the first query And to return the first 3 teams from the second query The goal is to check if users from first query have the teams of second query My neo4j query is match (user)-[r:CreatesChat]-(chatitems) with user.id as uid,chatitems.id as chatid order by uid desc with collect([uid])[..3] as users,collect

neo4j - python driver, Service unavailable

北慕城南 提交于 2020-01-04 08:07:21
问题 I am very new to neo4j and I am trying to stablish a connection from python3.6 to neo4j. I have installed the driver and I am just getting started with the first steps: import requests import os import time import urllib from neo4j.v1 import GraphDatabase, basic_auth GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "myPass")) However, already in this step I am getting an error: driver = GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "myPass"))

neo4j - python driver, Service unavailable

房东的猫 提交于 2020-01-04 08:07:06
问题 I am very new to neo4j and I am trying to stablish a connection from python3.6 to neo4j. I have installed the driver and I am just getting started with the first steps: import requests import os import time import urllib from neo4j.v1 import GraphDatabase, basic_auth GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "myPass")) However, already in this step I am getting an error: driver = GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "myPass"))

Adding millions of nodes to neo4j spatial layer using cypher and apoc

半世苍凉 提交于 2020-01-04 06:50:28
问题 I have a data set of 3.8million nodes and I'm trying to load all of these into Neo4j spatial. The nodes are going into a simple point layer, so have the required latitude and longitude fields. I've tried: MATCH (d:pointnode) WITH collect(d) as pn CALL spatial.addNodes("point_geom", pn) yield count return count But this just keeps spinning without anything happening. I've also tried (I've been running the next query all on one line, but I've just split it up for ease of reading): CALL apoc

Adding millions of nodes to neo4j spatial layer using cypher and apoc

ⅰ亾dé卋堺 提交于 2020-01-04 06:50:27
问题 I have a data set of 3.8million nodes and I'm trying to load all of these into Neo4j spatial. The nodes are going into a simple point layer, so have the required latitude and longitude fields. I've tried: MATCH (d:pointnode) WITH collect(d) as pn CALL spatial.addNodes("point_geom", pn) yield count return count But this just keeps spinning without anything happening. I've also tried (I've been running the next query all on one line, but I've just split it up for ease of reading): CALL apoc

Cannot resolve reference to bean 'neo4jTemplate'

别说谁变了你拦得住时间么 提交于 2020-01-04 05:58:58
问题 I try to configure my application to use spring data neo4j . But when i complied my application i get this stack track trace : SEVERE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Cannot resolve reference to bean 'neo4jTemplate' while setting bean property

Cannot resolve reference to bean 'neo4jTemplate'

半世苍凉 提交于 2020-01-04 05:58:10
问题 I try to configure my application to use spring data neo4j . But when i complied my application i get this stack track trace : SEVERE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Cannot resolve reference to bean 'neo4jTemplate' while setting bean property

Is there a way to remove _id _type from cypher result

梦想与她 提交于 2020-01-04 05:54:29
问题 I'm converting the result of my query to a tree using the apoc.convert.toTree() procedure and then I filter the result to get only couple properties. However, in the resulting payload I get two properties _id and _type that I'm unable to remove. this is my query where I' supposed to get only prefLabel and uri: MATCH p=(n {uri:'https://enterprise.poolparty.biz/Taxo_test/11325'})-[:narrower*]->(m) WHERE NOT ()-[:narrower]->(n) WITH COLLECT(p) AS ps call apoc.convert.toTree(ps, true, { nodes:

Spring Data Neo4J - NotInTransactionException while modifying set of nodeEntity

て烟熏妆下的殇ゞ 提交于 2020-01-04 05:52:07
问题 We are using spring-data-neo4j with repository methods and annotated queries. Formerly, we used SDN with a rest connection to a standalone server. Performance was very poor, though, so we decided to use SDN with an embedded neo4j instance. But that does not work as expected. Here are some classes The node entity import java.util.Set; import org.codehaus.jackson.annotate.JsonIgnore; import org.neo4j.graphdb.Direction; import org.springframework.data.neo4j.annotation.Fetch; import org