-
Notifications
You must be signed in to change notification settings - Fork 18
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
Consistency checking inside 'upgrade' tool #1511
Comments
One of the reasons for having declarative integrity constraints in triplestores/databases is so that you don't have to write a separate consistency checker. |
... But there are things that Knora checks (e.g. the contents of the objects of datatype properties) that can't be checked by the consistency checks in the triplestore. It would be possible to write a separate tool to check these things, but I think it would be a big task. |
I was thinking more along the line using an embedded GraphDB with the existing
But I guess, this won't be very fast and would make the upgrade slow again. |
But, if the upgrade tool would do the consistency checking, then it could deactivate Now, I'm running into the problem that the upgrade tool downloaded the data, ran the upgrade, deleted all data from the repository and then failed to upload because of an inconsistency error. I don't think that a failed upgrade should leave an empty repository. Since the data loaded fine into GraphDB before the upgrade (with I've created a separate issue for this bug: #1512 |
In that case, there's a bug in the upgrade script. But there could always be bugs in the upgrade script, even if the upgrade script checks the consistency of the data. As I said here, that's why we need the declarative integrity constraints in |
Basically, there is a contradiction between these two statements:
|
Does the upgrade tool check the data for consistency before running the upgrade?
With the change to a
scala
based tool, now it is possible to provide the upgrade tool with a dump of the triplestore. This dump could be inconsistent if prior to the upgrade some manual changes where performed.The text was updated successfully, but these errors were encountered: