comparison importFromOpenMind/importer/model2neo4j.py @ 34:74dfaed3600b

keep relation attributes but no attributes from openmind. change relation type attribute to '_type' too.
author casties
date Tue, 02 Feb 2016 15:16:29 +0100
parents 7e2e344c3b87
children
comparison
equal deleted inserted replaced
33:7e2e344c3b87 34:74dfaed3600b
13 # neo4j base URL 13 # neo4j base URL
14 neo4jBaseURL = "http://localhost:7474/db/data/" 14 neo4jBaseURL = "http://localhost:7474/db/data/"
15 15
16 # name of type attribute 16 # name of type attribute
17 node_type_attribute = '_type' 17 node_type_attribute = '_type'
18 rel_type_attribute = 'type' 18 rel_type_attribute = '_type'
19 19
20 20
21 ## setup 21 ## setup
22 22
23 n4j_nodes = {} 23 n4j_nodes = {}