def _parse_csv_row(csv_row): '''Wants a csv row list. Parses into a dict suitable for creating an arksetmember object ''' if len(csv_row) < 2: raise ValueError('Must have ARK, annotation in csv row') ark = csv_row[0] #validate ark ark, NAAN, name, qual = validate(ark) annotation = csv_row[1] return locals()
def _ARK_normalize(ark): ark = ark.strip() ark, NAAN, name, qualifier = validate(ark) return ark