Skip to content

Commit

Permalink
import triples into new relations
Browse files Browse the repository at this point in the history
  • Loading branch information
gythaogg committed Jan 15, 2024
1 parent 72d81c0 commit eba1e12
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions apis_ontology/management/commands/transfer_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ def handle(self, *args, **kwargs):
if new_rel is not None:
continue

new_rel = new_model(subj=tt.subj,
obj=tt.obj, notes=tt.notes, start_date=tt.start_date, start_start_date=tt.start_start_date,start_end_date=tt.start_end_date,start_date_written=tt.start_date_written,)
new_rel = new_model(
subj=tt.subj,
obj=tt.obj,
notes=tt.notes,
start_date=tt.start_date,
start_start_date=tt.start_start_date,
start_end_date=tt.start_end_date,
start_date_written=tt.start_date_written,
)

# Save the object to the database
new_rel.save()




print("Temp triples copied into new relations classes")

0 comments on commit eba1e12

Please sign in to comment.