Skip to content

Commit

Permalink
feat: add info about relation into relation notes
Browse files Browse the repository at this point in the history
for now place label and description are stored in the notes field of the relation between place and work
  • Loading branch information
babslgam committed Apr 4, 2024
1 parent 740f408 commit af99325
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis_ontology/scripts/import_nonbibl_entities_from_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ def parse_entities_dataframe(sheet_name, df, file):
name_forward=WORK_PLACE_RELATIONTYPES[place_type]
),
)
place_description_info = (
f": {place_description}" if place_description else ""
)
triple.notes = f"{place_name}{place_description_info}"
triple.save()

else:
print(
Expand Down

0 comments on commit af99325

Please sign in to comment.