neo4j

Spring boot 2.0 neo4j ogm 3.0 compatible jetty version

核能气质少年 提交于 2019-12-22 10:56:30
问题 I'm trying to upgrade spring boot from 1.5 to 2.0 and facing issue with jetty version. I'm new to neo4j ogm and spring boot. When I try to run a test case it fails with below error. java.lang.NoClassDefFoundError: org/eclipse/jetty/server/SessionManager at org.neo4j.server.CommunityNeoServer.createWebServer(CommunityNeoServer.java:90) at org.neo4j.server.AbstractNeoServer.init(AbstractNeoServer.java:188) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:204) at org.neo4j

neo4j cypher multi relationship between nodes

爱⌒轻易说出口 提交于 2019-12-22 10:46:02
问题 for example: a-[r]->b, there are multi r between the two nodes, each r.userId is unique. (eg: a-[r:R {userId:"user1"}]->b, (a-[r:R{userId:"user2"}]->b, and the same for a-[r]->c And the situation is a-[r]->b has a relationship: r.userId = amdin, but a-[r]->c doesn't have this relationship. how can i only return c. i try to create cypher: "MATCH (a:SomeLabel)-[r:SomeR]->(any:SomeLabel) " "WHERE id(a)=0 AND r.userId <> \"admin\" " "RETURN any"; but this will also return b ,because a->b has

ConstraintViolationTransactionFailureException when deleting all nodes from Neo4j

倾然丶 夕夏残阳落幕 提交于 2019-12-22 10:33:49
问题 When attempting to delete all nodes from my Neo4j graph database, which I have successfully done many times in the past on smaller datasets, I consistently ran across Error: undefined - undefined after running this query MATCH (n) DETACH DELETE n I figured the number of nodes I was attempting to delete at once may be too large (>100000), so I then tried this query MATCH (n) OPTIONAL MATCH (n)-[r]-() WITH n,r LIMIT 10000 DELETE n,r and many variations of it, acting on mostly what I read in

Not able to see created Node in Neo4j/console http://localhost:7474

本小妞迷上赌 提交于 2019-12-22 10:23:10
问题 I am trying Java code below and its work fine as expected but problem is i am not able to see created node in neo4j/database in localhost:7474 console. I have restarted server but still same problem,can anyone please help.And I also doubt that is these node created in system memory? void createDb() throws IOException { graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "target/neo4j-hello-db" ); registerShutdownHook( graphDb ); BufferedReader CSVFile = null; int i=0; Transaction tx =

interpreting jstack output

杀马特。学长 韩版系。学妹 提交于 2019-12-22 10:15:51
问题 I have a java process loading a lot of data from a bunch of .csv files into a Neo4j database using the BatchInserter . I was using: OpenJDK 7 Ubuntu 12.04 Neo4j 2.0 M3 After loading the first 164 GB (according to ls -lh ) the folder size stopped increasing but the process kept running, no memory was released, and CPU was still at 100% (all according to htop ). The loading process is single threaded, only the JVM is using more than 1 thread - I guess by the ParallelGC . I'm not sure how to

Create custom Neo4j Docker image with intial data from cypher file

a 夏天 提交于 2019-12-22 09:55:02
问题 I tried create an docker image of neo4j that already provide some data, when you start an container. For my approach I inherited from the neo4j docker image, added some data via the neo4j cypher shell. But when i build the image and run a container from it the data did not appear in the database but the custom password is set. This is my current dockerfile: From neo4j:3.4 ENV NEO4J_AUTH=neo4j/password COPY data.cypher /var/lib/neo4j/import/ USER neo4j RUN bin/neo4j-admin set-initial-password

neo4j - localhost:7474 browser - which nodes are coloured? (py2neo)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 09:46:42
问题 neo4j - localhost:7474 browser - which nodes are coloured? (py2neo) I am creating a complex neo4j database with py2neo. So far I have 6 node indices and labels, and 5 relationship indices and labels. When I look through the localhost:7474/browser , some of my node type get coloured, some stay gray. What is the trigger that colours the nodes in the localhost:7474/browser - or are there only 4 colours in the preset? Thanks a lot! 回答1: There are 6 colors in total right now. Nodes with a label

Metadata in neo4j graph database

浪子不回头ぞ 提交于 2019-12-22 09:46:37
问题 I know that neo4j stores data structured in graphs rather than in tables. In RDBMS we will be having schemas of the tables but in neo4j we will not be having the tables. Only nodes, relations and properties are defined. So is there any concept of metadata in neo4j . Like is there any information stored about nodes, relationships in the database? If yes, how and what it stores in the metadata? Also where can we find the metadata related information in the graph database (location) Thanks, 回答1:

How to translate SQL queries to cypher in the optimal way?

戏子无情 提交于 2019-12-22 09:36:49
问题 I am new in neo4j using version 3.0. I have a huge transactional dataset that I converted to a graph model. I need to translate the below SQL query into cypher. create table calc_base as select a.ticket_id ticket_id, b.product_id, b.product_desc, a.promotion_flag promo_flag, sum(quantity) sum_units, sum(sales) sum_sales from fact a inner join dimproduct b on a.product_id = b.product_id where store_id in (select store_id from dimstore) and b.product_id in (select product_id from fact group by

How to translate SQL queries to cypher in the optimal way?

血红的双手。 提交于 2019-12-22 09:32:02
问题 I am new in neo4j using version 3.0. I have a huge transactional dataset that I converted to a graph model. I need to translate the below SQL query into cypher. create table calc_base as select a.ticket_id ticket_id, b.product_id, b.product_desc, a.promotion_flag promo_flag, sum(quantity) sum_units, sum(sales) sum_sales from fact a inner join dimproduct b on a.product_id = b.product_id where store_id in (select store_id from dimstore) and b.product_id in (select product_id from fact group by