neo4j

Cannot export from any browser

放肆的年华 提交于 2019-12-11 09:08:31
问题 I've installed Neo4j, populated the database and produced a graph. now I want to export it using the built-in functionality but am not having much luck. here are the browsers I've tried: in OSX Safari (v8.0.6) basically the graph doesn't respond. I can't move it or double-click on a node or anything. whatever I try just results in a spinning wheel. in OSX Firefox (v.35.0.1) the graph comes up but attempting an export to PNG results in an error that the file is empty. same results with

SET label : pass label name as parameter

五迷三道 提交于 2019-12-11 08:59:41
问题 I have a query like this: unwind {data} as row with row MERGE (p:Book{guid:row.bookGuid}) set p.name=row.name, p:Science I want to pass the label 'Science' as a parameter as this label is not same for all the rows which I am passing in {data}. I tried below query, but this is throwing syntax error. with parameter like: { guid:1, name:"testName1",label1:"Histroy"} unwind {data} as row with row MERGE (p:Book{guid:row.bookGuid}) set p.name=row.name, p:row.label1 Any workaround? Thanks 回答1: You

How to load a large csv file into Neo4j

瘦欲@ 提交于 2019-12-11 08:42:46
问题 I'm trying to load a large csv file ( 1458644 row ) into neo4j, but i'm still getting this error : Neo.TransientError.General.OutOfMemoryError: There is not enough memory to perform the current task. Please try increasing 'dbms.memory.heap.max_size' in the neo4j configuration (normally in 'conf/neo4j.conf' or, if you you are using Neo4j Desktop, found through the user interface) or if you are running an embedded installation increase the heap by using '-Xmx' command line flag, and then

Really slow load speed Neo4jClient C# LoadCsv

回眸只為那壹抹淺笑 提交于 2019-12-11 08:42:42
问题 The code I use now is really slow with about 20 inserts per second and uses a splitter to create multiple csv files to load. Is there a way to use "USING PERIODIC COMMIT 1000" in a proper way using the Neo4jClient for dotnet? public async Task InsertEdgesByName(List<string> nodeListA, List<string> nodeListB, List<int> weightList, string type) { for (var i = 0; i < nodeListA.Count; i += 200) { using (var sw = new StreamWriter(File.OpenWrite($"tempEdge-{type}.csv"))) { sw.Write("From,To,Weight

Struggling with Cypher & CREATE UNIQUE

痴心易碎 提交于 2019-12-11 08:39:23
问题 I am reading soccer match data from text file and want to create matches and referee nodes. The way I want logic to work is that I create a match node and then I get the referee name and create the referee node ONLY if that referee does not already exist else I just link the existing referee to the match. I presently DO NOT have a root node and am not sure if I should create one (very new to graph modeling). I have the following query in which I think I am close but not there. $match= $client

Spring Data Neo4j 4.0.0: Can't Create Relationship Between Nodes with the Same Label

主宰稳场 提交于 2019-12-11 08:32:31
问题 I'm using Spring Data Neo4j 4.0.0 with Neo4j 2.2.1 and I'm trying to create a relationship between two nodes with the exact same labels. So, I have a NodeEntity class and I have a variable inside with the same Type as the class itself, and annotate it as Relationship. But, when I save the object to the database using the save() method of the repository object, the relationship can't be created. Thank you in advance and your suggestion would be really appreciated! EDIT Here is the node entity

0.8.2 Gephi fails to import Neo4j 2.0.1 database with trunk built Neo4j plugin

那年仲夏 提交于 2019-12-11 08:25:52
问题 I checked the GitHub project for Gephi's Neo4j plugins. They supposedly upgraded support for Neo4j 2.0.1 in the trunk. I attempted to build the plugins from source with these steps. I could not successfully import a 2.0.1 Neo4j DB, so I'm unsure if I missed something. Any thoughts on whether the plug-in source is the problem or if my steps are incorrect? Install JDK 7 (if you have not already). Ensure that JAVA_HOME environment variable points to the top-level JDK location on your machine.

Neo4j gem - Querying from an array object

青春壹個敷衍的年華 提交于 2019-12-11 08:10:56
问题 In my previous example I had this query current_user.friends.events(:event, :rel).where("rel.admin = {admin_p} AND event.detail = {detail_p}").params(admin_p: true, detail_p: true).pluck(:event) current_user.friends.events brings me up to events to continue my chain, but does this work for if I already have an object that contains an array of events? In my example, I am trying to use geocoder to pull in proximity. So I have my user and events which are geocoded. Geocoder can do something like

Neo4j Server plugin - Plugin does not show up in extensions

泪湿孤枕 提交于 2019-12-11 08:10:09
问题 Following the instruction on the neo4j website for building a server extension, i cannot get the plugin to show in the list of available extensions. This is the content of my jar which i placed in the plugins directory of neo4j: META-INF/MANIFEST.MF META-INF/ META-INF/services/ META-INF/services/org.neo4j.server.plugins.ServerPlugin example/ example/GetAll.class example/GetAll.java The file org.neo4j.server.plugins.ServerPlugin contains the string example.GetAll. The code for GetAll.java was

Error while running Neo4j: Not possible to upgrade a store with version 'v0.A.9' to current store version `v0.A.8` (Neo4j 3.3.1)

孤街醉人 提交于 2019-12-11 08:00:30
问题 I am trying to run neo4j 3.3.1 while I am getting the following error: 2018-05-29 08:43:36.805+0000 INFO Starting upgrade of database 2018-05-29 08:43:36.815+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@6c2c1385' was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version 'v0.A.9' to current store version `v0.A.8` (Neo4j 3.3.1).". Starting