def process_bundle(rels):
 concepts = {}
 for rel in rels:
  rel_name = rel[u'rel_name']
  closures = rel[u'closures']
  schema = rel[u'schema']
  filename = rel[u'filename']
  concept_list = clause2concepts(filename, rel_name, schema, closures)
  for c in concept_list:
   label = c.prefLabel
   if (label in concepts):
    for data in c.extension:
     concepts[label].augment(data)
    concepts[label].close()
   else:
    concepts[label] = c
 return concepts

def process_bundle ( rels ) : concepts = { } for rel in rels : rel_name = rel [ u'rel_name' ] closures = rel [ u'closures' ] schema = rel [ u'schema' ] filename = rel [ u'filename' ] concept_list = clause2concepts ( filename , rel_name , schema , closures ) for c in concept_list : label = c . prefLabel if ( label in concepts ) : for data in c . extension : concepts [ label ] . augment ( data ) concepts [ label ] . close ( ) else : concepts [ label ] = c return concepts
given a list of relation metadata bundles .