neo4j

How to use apoc.load.csv in conjunction with apoc.create.node

此生再无相见时 提交于 2019-12-08 04:07:40
问题 I need to import a CSV file and create a node from each record. I am using APOC because supposedly I can use a column in the CSV file to define each node type as the nodes are created. This doesn't work: CALL apoc.load.csv('FILE:///C:/Temp/Test/Test/Neo4jTest/import/Neo4j_AttributeProvenance.csv',{sep:","}) YIELD map CALL apoc.create.node(['map.AttributeName'], {key:['map.NodeID']}) return count(*) This is the error: Procedure call inside a query does not support naming results implicitly

apoc.gephi.add doesn't work : NODE[25512922] has no property with propertyKey='name'

烈酒焚心 提交于 2019-12-08 04:07:34
问题 I'm currently trying to set up a streaming connection between a Neo4j DB and Gephi. I use then Apoc with apoc.gephi.add. match path = (p:Person)--(a:Address) call apoc.gephi.add(null, 'workspace1', path) yield nodes, relationships return nodes, relationships limit 20 But I have a problem with this, whom I don't understand the cause. my execution result So Neo4j saying me that I don't have property with propertyKey="name". I tested the query on a movie DB previously and it worked, but there is

Embedded neo4j server and web admin at the same time

独自空忆成欢 提交于 2019-12-08 04:03:48
问题 I followed the instructions at the following links, however, when I run my program and go to http://localhost:7474/ the webpage of the web admin is not available. How to connect to a locally installed neo4j server using Java Neo4j Hello World Tutorial and webadmin Wrapping server bootstrapper is deprecated, what is the alternative? http://devender.wordpress.com/2011/10/17/neo4j-running-embedded-server-with-webconsole/ http://www.markhneedham.com/blog/2013/06/19/neo4j

Merge existing records in neo4j, remove duplicates, keep optional relationships

一笑奈何 提交于 2019-12-08 03:52:55
问题 This is similar to Merge existing records in neo4j, remove duplicates, keep relationships, except that the nodes I want to merge have 0-2 relationships I want to keep. Take the graph generated by: create (:Person {name:"Bob"})-[:RELATED_TO]->(:Person {name:"Jane"})-[:FRIENDS_WITH]->(:Person {name:"Tim"})<-[:FRIENDS_WITH]-(:Person {name:"Jane"}), (:Person {name:"Sally"})-[:RELATED_TO]->(:Person {name:"Jane"}) I want to merge the duplicate Jane nodes, preserving the RELATED_TO and FRIENDS_WITH

How to set relationship type and label in LOAD CSV?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 03:31:17
问题 I have a database of existing nodes and would like to add in additional relationships from a CSV file which looks like this: stype,sname,sver,rel,dtype,dname,dver A,aname,1.1,FRIEND,A,bname,2.2 B,bbb,1.2,ENEMY,A,bname,2.2 My LOAD CSV looks like this. The intent is to match two existing nodes then link with the values in the CSV: LOAD CSV WITH HEADERS FROM "file:///c:/workspace/neo/demo.csv" as line MATCH (s:line.stype {name:line.sname,version:line.sver}), (d:line.dtype {name:line.dname

TransactionEventHandler gives javax.transaction.SystemException on Node.setProperty()

纵然是瞬间 提交于 2019-12-08 03:13:51
问题 I'm trying to implement a TransactionEventHandler like the one used in neo4j-versioning in order to create a time-machine style, versioned Neo4j database, now using Neo4j 2.x. It fails with the following infinite stack trace: javax.transaction.SystemException: TM has encountered some problem, please perform necessary action (tx recovery/restart) at org.neo4j.kernel.impl.transaction.TxManager.assertTmOk(TxManager.java:349) at org.neo4j.kernel.impl.transaction.TxManager.setRollbackOnly

How do I run the Hetionet v1.0 docker container?

一个人想着一个人 提交于 2019-12-08 03:11:27
问题 I'm trying to run the Hetionet v1.0 docker container mentioned in this SO post. I've setup a digitalocean droplet with Docker I ran docker pull dhimmel/hetionet and it worked Now I run docker run dhimmel/hetionet and the following happens (and never returns to the interactive shell prompt). If that completed successfully I think the last thing I'm supposed to do is run sh ~/run-docker.sh . Furthermore nothing is live at my droplet's ip_address:7474. The error in the screenshot above looks a

Connecting to neo4j on ec2

寵の児 提交于 2019-12-08 03:09:38
问题 I'm trying to connect to my newly setup neo4j This is how I have configured my neo4j.conf file: # With default configuration Neo4j only accepts local connections. # To accept non-local connections, uncomment this line: dbms.connectors.default_listen_address=0.0.0.0 # You can also choose a specific network interface, and configure a non-default # port for each connector, by setting their individual listen_address. # The address at which this server can be reached by its clients. This may be

neo4j browser export file including relationships

淺唱寂寞╮ 提交于 2019-12-08 03:02:33
问题 How to export including relationships? I've found that executing the default query MATCH (n) RETURN n Does return what I need graphically including the relationships between nodes (AUTO-COMPLETE switched on). I see my nodes and their relationship. But when I save it either CVS or JSON it does not includes the relationships. Any idea how can I do it? 回答1: This is how you'd get all the nodes and their outgoing relationships, if any. MATCH (n) OPTIONAL MATCH (n)-[r]->() RETURN n, r; Each

neo4jClient create node with dynamic label using paramters

那年仲夏 提交于 2019-12-08 02:56:13
问题 I am building an app that give users the ability to construct there own graphs. I have been using parameters for all queries and creates. But when I want to give users the ability to create a node where they can also Label it anything they want(respecting neo4j restrictions on empty string labels). How would I parameterize this type of transaction? I tried this: .CREATE("(a:{dynamicLabel})").WithParams(new {dynamicLabel = dlabel})... But this yields a syntax error with neo. I am tempted to