# HG changeset patch # User casties # Date 1444129403 -7200 # Node ID 3fce3fa9097e2a25625458eb36cef6927014dfc3 # Parent 248bf8d1e2e7ccb119d05afa34e620b828792fb5 ignore notes_old. diff -r 248bf8d1e2e7 -r 3fce3fa9097e importFromOpenMind/importer/ismi2model.py --- a/importFromOpenMind/importer/ismi2model.py Thu Sep 24 18:58:30 2015 +0200 +++ b/importFromOpenMind/importer/ismi2model.py Tue Oct 06 13:03:23 2015 +0200 @@ -14,6 +14,14 @@ # node types to exclude from the graph exclude_objects_of_type = ['DIGITALIZATION', 'REFERENCE'] +# attributes to exclude +exclude_attributes_of_type = [ + 'lw', + 'node_type', + 'nov', + 'notes_old' +] + entsURL=baseURL+"method=get_ents&oc=%s" @@ -42,11 +50,6 @@ ismi_relations = {} nx_relations = {} -ent_exclude_attrs = [ - 'lw', - 'node_type', - 'nov' -] def fixName(name, is_src_rel=False, is_tar_rel=False, att_from_rel=False): # these are too embarrassing... @@ -87,7 +90,7 @@ key = att['name'] val = att['ov'] - if key in ent_exclude_attrs: + if key in exclude_attributes_of_type: # exclude attribute continue @@ -99,7 +102,7 @@ key = att['name'] val = att['ov'] - if key in ent_exclude_attrs: + if key in exclude_attributes_of_type: # exclude attribute continue