neo4j

Depth in custom Cypher queries with OGM always 0?

邮差的信 提交于 2019-12-21 05:04:33
问题 I'm currently evaluating OGM / Spring Data Neo4j for a use case and came upon the following problem: When executing a custom Cypher query either via Spring Data @Query annotation or directly via the Neo4j Session , the result contains only the nodes directly queried for and not the related nodes (relationships are null in the resulting node objects). I.e. the depth for these queries seems to be 0 and not 1, as I would have expected from the docs. How can I execute a custom Cypher query via

Visualizing graph database

☆樱花仙子☆ 提交于 2019-12-21 04:51:27
问题 Assuming i am working with neo4j , the only way i can think of that would visualize my mock up data is to generate cypher code and paste it into neo4j's data browser Is there another (better, simplier?) way one can use to create visualization without using cypher ? Generating cypher code seems like a complex enough task by itself. Writing tests is of course another way of making sure relationships are set up right, but as i am learning the system, i'd like to visually see things to make sure

Neo4j (or any other graph database) modeling

核能气质少年 提交于 2019-12-21 04:50:46
问题 I'm starting to work with graph databases, and in my team we've started modeling a graph for our software. The problem comes when we try to "document" the model, to see the structure of our database. With SQL databases you only have to look at the SQL schema. We've spent some time reading neo4j blogs and documentation, but we've seen that the usual way to show how a graph works is with a minimal graph showing some sample data (Random samples: sample1, sample2, etc). That's great for

Access the neo4j browser while running an embedded connection with a bolt connector

爷,独闯天下 提交于 2019-12-21 04:31:33
问题 My project is in Java, and I create an embedded connection to my Neo4j database and add a "bolt" connector to it as described in the documentation here: http://neo4j.com/docs/java-reference/current/#tutorials-java-embedded the code is: GraphDatabaseSettings.BoltConnector bolt = GraphDatabaseSettings.boltConnector("0"); graphDb = new GraphDatabaseFactory() .newEmbeddedDatabaseBuilder(new File("C:/.../default.graphdb")) .setConfig(bolt.enabled, "true") .setConfig(bolt.address, "localhost:7687")

Neo4j: How to setup failover in community edition

拟墨画扇 提交于 2019-12-21 04:27:16
问题 How to set up the following in neo4j community edition version 2.x failover master-slave setup cluster Is HA (high availability) is different from cluster setup in neo4j? 回答1: HA, failover and clustering are only available in Neo4j's enterprise edition. For detailed documentation please refer to http://docs.neo4j.org/chunked/stable/ha.html Neo4j enterprise edition is licensed open source via AGPL or via commercial licensing provided by Neo Technology. The commercial licenses come with support

Best Open Source Visualization Software for Neo4J?

拥有回忆 提交于 2019-12-21 03:39:43
问题 What is the best Open Source visualization software for Neo4J? By best, I mean: * Fully featured * Open Source * Still being developed/supported for latest Neo4J stable release * Interactive I've tried the data browser in Neo4J's web admin, but get the impression there are many other offerings at: http://www.neo4j.org/develop/visualize I've spent some time looking at offerings there, but it looks like many offerings are either no longer supported for the latest Neo4J stable release, are still

can't reproduce/verify the performance claims in graph databases and neo4j in action books

江枫思渺然 提交于 2019-12-21 03:09:25
问题 UPDATE I have put up a follow up question that contains updated scripts and and a clearer setup on neo4j performance compared to mysql (how can it be improved?). Please continue there. /UPDATE I have some problems verifying the performance claims made in the "graph databases" book (page 20) and in the neo4j (chapter 1). To verify these claims I created a sample dataset of 100000 'person' entries with 50 'friends' each, and tried to query for e.g. friends 4 hops away. I used the very same

Is there any way to create a hypergraph in neo4j?

北慕城南 提交于 2019-12-21 02:43:09
问题 Is there any way to create a hypergraph in neo4j? Or any other db tool for this issue? 回答1: There is an example for a hypergraph datastructure in the "Graph Databases" book (the email chapter example). And another one in the neo4j manual. 回答2: The usual way is to add an extra node that represents the subgraph, and connect that to all of the subgraph, and then relate to it from elsewhere. 来源: https://stackoverflow.com/questions/20877582/is-there-any-way-to-create-a-hypergraph-in-neo4j

Export neo4j database in json file

泪湿孤枕 提交于 2019-12-20 23:28:17
问题 I want to export Neo4j graph database in JSON file. This is a Export JSON button in Neo4j web UI version as shown in attached image below. But what is the equivalent command for the same task in Neo4j shell. Thanks 回答1: The json exported by the browser is exactly what is getting sent to the transactional cypher endpoint. This is not directly accessible via neo4j-shell , but you might use any command line http client like cURL or httpie. For httpie it's as simple as: http -b -j localhost:7474

SySeVR复现

让人想犯罪 __ 提交于 2019-12-20 22:10:28
ningan@ubuntu:~/JOERN/usr/Neo4j/neo4j-community-2.1.8$ ls bin conf hs_err_pid3325.log LICENSES.txt NOTICE.txt README.txt UPGRADE.txt CHANGES.txt data lib LICENSE.txt plugins system ningan@ubuntu:~/JOERN/usr/Neo4j/neo4j-community-2.1.8$ ningan@ubuntu:~/JOERN/usr/Neo4j/neo4j-community-2.1.8$ ningan@ubuntu:~/JOERN/usr/Neo4j/neo4j-community-2.1.8$ cd bin ningan@ubuntu:~/JOERN/usr/Neo4j/neo4j-community-2.1.8/bin$ sudo ./neo4j console [ sudo ] password for ningan: WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual. Starting Neo4j Server console-mode .. . Using