neo4j

Add new Geometries to an osm file in Neo4J

谁都会走 提交于 2021-02-11 11:46:06
问题 Hi im trying to add some restaurants to an importet .osm file. So I want to save the restaurants as new Point Geometries and connect them at the right point with the existing osm graph. Later I want to read out all resturants and find the nearest restaurant from any given point. So should I add the restaurants in a new layer? And is there an easy way to connect the restaurants with the graph at the right geogaphical point?? Thanks for answers Greetings 回答1: There are two options: Edit the

Can't connect to a testcontainer Neo4J instance?

北城以北 提交于 2021-02-11 08:11:11
问题 this is my test class: @Testcontainers @ReactiveDataNeo4jTest internal class RepositoryIT { @Container private val container = KNeo4jContainer.instance @Test fun `should answer with One`() { val boltUrl = container.getBoltUrl() GraphDatabase.driver( boltUrl, AuthTokens.basic("neo4j", "123456")) .use { driver -> driver.session().use { session -> val res = session.run("OPTIONAL MATCH(n) RETURN 1 AS value") val one = res.single().get("value").asInt() assertThat(one).isEqualTo(2) } } } } object

Can't connect to a testcontainer Neo4J instance?

感情迁移 提交于 2021-02-11 08:09:48
问题 this is my test class: @Testcontainers @ReactiveDataNeo4jTest internal class RepositoryIT { @Container private val container = KNeo4jContainer.instance @Test fun `should answer with One`() { val boltUrl = container.getBoltUrl() GraphDatabase.driver( boltUrl, AuthTokens.basic("neo4j", "123456")) .use { driver -> driver.session().use { session -> val res = session.run("OPTIONAL MATCH(n) RETURN 1 AS value") val one = res.single().get("value").asInt() assertThat(one).isEqualTo(2) } } } } object

Can't connect to a testcontainer Neo4J instance?

梦想与她 提交于 2021-02-11 08:09:20
问题 this is my test class: @Testcontainers @ReactiveDataNeo4jTest internal class RepositoryIT { @Container private val container = KNeo4jContainer.instance @Test fun `should answer with One`() { val boltUrl = container.getBoltUrl() GraphDatabase.driver( boltUrl, AuthTokens.basic("neo4j", "123456")) .use { driver -> driver.session().use { session -> val res = session.run("OPTIONAL MATCH(n) RETURN 1 AS value") val one = res.single().get("value").asInt() assertThat(one).isEqualTo(2) } } } } object

Can't connect to a testcontainer Neo4J instance?

对着背影说爱祢 提交于 2021-02-11 08:08:39
问题 this is my test class: @Testcontainers @ReactiveDataNeo4jTest internal class RepositoryIT { @Container private val container = KNeo4jContainer.instance @Test fun `should answer with One`() { val boltUrl = container.getBoltUrl() GraphDatabase.driver( boltUrl, AuthTokens.basic("neo4j", "123456")) .use { driver -> driver.session().use { session -> val res = session.run("OPTIONAL MATCH(n) RETURN 1 AS value") val one = res.single().get("value").asInt() assertThat(one).isEqualTo(2) } } } } object

several relationships from a node to another node

假装没事ソ 提交于 2021-02-11 07:05:56
问题 I'm new to neo4j. I have a .csv file with two columns separated by ",". The first column contains first names and the 2nd column contains the last names: Lname,Fname Brown,Helen Right,Eliza Green,Helen Pink,Kate Yellow,Helen I want to create nodes for Lname column and nodes for Fname column. For the rows that have the same Fname, I want to connect Lname to the corresponding Fname. For example I want to have a "Helen" node that three nodes "Brown", "Green" and "Yellow" connected to "Helen". I

several relationships from a node to another node

时间秒杀一切 提交于 2021-02-11 07:03:24
问题 I'm new to neo4j. I have a .csv file with two columns separated by ",". The first column contains first names and the 2nd column contains the last names: Lname,Fname Brown,Helen Right,Eliza Green,Helen Pink,Kate Yellow,Helen I want to create nodes for Lname column and nodes for Fname column. For the rows that have the same Fname, I want to connect Lname to the corresponding Fname. For example I want to have a "Helen" node that three nodes "Brown", "Green" and "Yellow" connected to "Helen". I

Is there a good drawing tool that can draw property graph in modeling?

筅森魡賤 提交于 2021-02-10 21:56:14
问题 I like those example graphs mentioned in Neo4j's blogs and the Neo4j tutorial book. However, I can't find one tool that can draw the graph in modeling stage. The Neo4j Browser doesn't seem to be a good tool to do that. I would appreciate a lot if there is some recommendation on this. One graph example is here: https://neo4j.com/blog/data-modeling-pitfalls/ Those graphs look good. What tool can draw it? 回答1: I think those are hand-drawn. My go to tool is still arrows, which works really well

Is there a good drawing tool that can draw property graph in modeling?

不想你离开。 提交于 2021-02-10 21:55:21
问题 I like those example graphs mentioned in Neo4j's blogs and the Neo4j tutorial book. However, I can't find one tool that can draw the graph in modeling stage. The Neo4j Browser doesn't seem to be a good tool to do that. I would appreciate a lot if there is some recommendation on this. One graph example is here: https://neo4j.com/blog/data-modeling-pitfalls/ Those graphs look good. What tool can draw it? 回答1: I think those are hand-drawn. My go to tool is still arrows, which works really well

How to create nodes with variable labels in cypher?

我与影子孤独终老i 提交于 2021-02-10 18:49:18
问题 I am using JSON APOC plugin to create nodes from a JSON with lists in it, and I am trying to create nodes whose label is listed as an element in the list: { "pdf":[ { "docID": "docid1", "docLink": "/examplelink.pdf", "docType": "PDF" } ], "jpeg":[ { "docID": "docid20", "docLink": "/examplelink20.pdf", "docType": "JPEG" } ], ...,} And I want to both iterate through the doctypes (pdf, jpeg) and set the label as the docType property in the list. Right now I have to do separate blocks for each