Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importers don't save external URIs / object duplication #99

Open
koeaw opened this issue Jan 21, 2025 · 1 comment
Open

Importers don't save external URIs / object duplication #99

koeaw opened this issue Jan 21, 2025 · 1 comment
Labels
app-entities Anything to do with the model classes central to the ontology bug Something isn't working data To do with the application's data and data handling

Comments

@koeaw
Copy link
Collaborator

koeaw commented Jan 21, 2025

I'm suspecting this may have to do with the customisations in importers.py

So far, I don't seem to be able to get_or_create new entities from external data using existing import functionality, only create new ones.

The external URIs aren't saved alongside imported objects, which would/should prevent the objects from getting duplicated (since every URI can only exist in connection to one instance).

@koeaw koeaw added bug Something isn't working data To do with the application's data and data handling app-entities Anything to do with the model classes central to the ontology labels Jan 21, 2025
@koeaw
Copy link
Collaborator Author

koeaw commented Jan 21, 2025

Discussed at today's JF -> entities are indeed created without the URI being saved, the relevant line is line 14:

subj = self.model.objects.create(**data_croped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-entities Anything to do with the model classes central to the ontology bug Something isn't working data To do with the application's data and data handling
Projects
None yet
Development

No branches or pull requests

1 participant