diff --git a/apis_ontology/scripts/import_nonbibl_entities_from_excel.py b/apis_ontology/scripts/import_nonbibl_entities_from_excel.py index cf9bad8..bb4b4f2 100644 --- a/apis_ontology/scripts/import_nonbibl_entities_from_excel.py +++ b/apis_ontology/scripts/import_nonbibl_entities_from_excel.py @@ -29,16 +29,19 @@ } RELEVANCIES = { - "H": "protagonist", - "N": "supporting_character", - "E": "referenced_character", + "H": "Hauptfigur", + "N": "Nebenfigur", + "E": "erwähnte Figur", } FICTIONALITY_DEGREES = { - "F": "fictional_character", - "M": "mythical_character", - "R": "historical_character", - "M/R": ["mythical_character", "historical_character"], + "F": "fiktive Figur", + "M": "mythologische Figur", + "R": "historische Figur", + "M/R": [ + "historische Figur", + "mythologische Figur", + ], } diff --git a/apis_ontology/scripts/import_zotero_collections.py b/apis_ontology/scripts/import_zotero_collections.py index b88fc9f..df9b3c6 100644 --- a/apis_ontology/scripts/import_zotero_collections.py +++ b/apis_ontology/scripts/import_zotero_collections.py @@ -400,14 +400,6 @@ def get_valid_collection_items(collection_items): return importable, not_importable -def get_manifestation_type(collection_name): - available_manifestation_types = Expression.ManifestationTypes - manifestation_type = [ - x for x in available_manifestation_types if x.label in collection_name - ] - return manifestation_type - - def get_edition_types_from_tags(tags): """ Check if a Zotero collection item's tags contain valid @@ -416,7 +408,7 @@ def get_edition_types_from_tags(tags): :param tags: a list of strings :return: a list of strings """ - valid_tags = [t.value for t in Expression.EditionTypes if t.label in tags] + valid_tags = [t.value for t in Expression.EditionTypes.choices if t.label in tags] return valid_tags