Mercurial > hg > drupalISMI
changeset 31:48bbba800c03
remove unused method.
author | casties |
---|---|
date | Thu, 21 Jan 2016 18:24:51 +0100 |
parents | 870b0b3b272f |
children | ce12475d2109 |
files | importFromOpenMind/importer/model2neo4j.py |
diffstat | 1 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/importFromOpenMind/importer/model2neo4j.py Fri Dec 11 17:13:58 2015 -0500 +++ b/importFromOpenMind/importer/model2neo4j.py Thu Jan 21 18:24:51 2016 +0100 @@ -20,31 +20,6 @@ n4j_relations = {} -def fixName(name, is_src_rel=False, is_tar_rel=False, att_from_rel=False): - # these are too embarrassing... - if 'FLORUIT' in name: - name = name.replace('FLORUIT', 'FLOURISH') - - elif 'floruit' in name: - name = name.replace('floruit', 'flourish') - - if is_src_rel: - #name = name + '>' - pass - - if is_tar_rel: - name = '<' + name - - if att_from_rel: - # clean up relations as attribute names - name = name.replace('is_', '') - name = name.replace('has_', '') - name = name.replace('was_', '') - name = name.replace('_of', '') - - return name - - def copyNodes(nx_graph, n4j_graph): """copy all nodes from nx_graph to n4j_graph"""