Replies: 1 comment
-
|
Seems that the solution is to go through java - was hoping for an out-of-the-box solution with a shape graph |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My wish is: If an update violates the SHACL constraints then abort the update.
I am currently using python.
Currently I upload the staging dataset, run shacl against it, and if it fails, then I do not upload to production.
But it seems rather manual, and I would really like a sort of transactional approach where:
Submit update -> JENA validates -> On Failure JENA aborts.
Instead of:
Submit update to staging -> Ask validation against shacl endpoint -> On failure, abort and reset staging
I feel like I am missing something obvious.
So the sort of geneal question is
I have SHACL constraints that requires certain relation between entities. I want to ensure that my graph still adhere to these constraints after adding new knowledge. But some data is in a triple store, and some data is "local", meaning that it has not been added yet.
How do I make a sort of "union" graph between the new data and A SUBSET of the existing data and check my constraints without fetching the entire dataset from my triple store?
Here is an attempt of a better formulation
I have a triple store T.
I have some shapes S that requires the class X to be owned by the class Y.
An instance of Y, Y_inst already exists in T.
Now I want to add an instance of X, X_inst to my triple store.
But it fails the validation before update, because Y_inst is unknown, as it is only in the triple store.
How can I go about this?
It seems to be a relevant research topic e.g. https://ceur-ws.org/Vol-3954/paper1130.pdf
but I guess there is some good patterns that I just don't know about?
Beta Was this translation helpful? Give feedback.
All reactions