comparison importFromOpenMind/importer/ismi2model.py @ 46:f3945ef1e6a4

new importer for OM4XML dump file.
author casties
date Fri, 03 Feb 2017 18:46:16 +0100
parents 9a9a6da1d415
children
comparison
equal deleted inserted replaced
45:277ea02906f9 46:f3945ef1e6a4
7 7
8 # output filename 8 # output filename
9 output_fn = "ismi_graph.gpickle" 9 output_fn = "ismi_graph.gpickle"
10 10
11 # OpenMind base URL 11 # OpenMind base URL
12 #baseURL="http://localhost:18080/om4-ismi/jsonInterface?" 12 #baseURL="http://ismi.mpiwg-berlin.mpg.de//om4-ismi/jsonInterface?"
13 baseURL="http://localhost:18080/ismi-richfaces/jsonInterface?" 13 baseURL="http://localhost:18080/ismi-richfaces/jsonInterface?"
14 14
15 # node types to exclude from the graph 15 # node types to exclude from the graph
16 exclude_objects_of_type = ['DIGITALIZATION', 'REFERENCE'] 16 exclude_objects_of_type = ['DIGITALIZATION', 'REFERENCE']
17 17
280 280
281 #if cnt >= 100: 281 #if cnt >= 100:
282 # return 282 # return
283 283
284 284
285 # In[119]:
286
287 def importAllEnts(etypes): 285 def importAllEnts(etypes):
288 286
289 for etype in etypes: 287 for etype in etypes:
290 if etype in exclude_objects_of_type: 288 if etype in exclude_objects_of_type:
291 # skip this type 289 # skip this type