Closed palagdan closed 1 month ago
Regarding output that you presented, I do not like that failedQuery is not really a query but rather a message -- i would delete first part of it i.e. "Failed validation constraint : \n ":
I guess we should discuss how to implement this on a meeting. To me it seems best to implement it by extending s-pipes-model:
Then I would like to output through REST API something like:
{
"@context": {
"variable1": "http://onto.fel.cvut.cz/ontologies/s-pipes/variable1",
"variable2": "http://onto.fel.cvut.cz/ontologies/s-pipes/variable2",
"module": "http://onto.fel.cvut.cz/ontologies/s-pipes/module",
"message": "http://onto.fel.cvut.cz/ontologies/s-pipes/message",
"constraintQuery": "http://onto.fel.cvut.cz/ontologies/s-pipes/constraintQuery",
"constraintFailureEvidences": {
"@id": "http://onto.fel.cvut.cz/ontologies/s-pipes/constraintFailureEvidences",
"@container": "@list"
},
"ValidationConstraintError": "http://onto.fel.cvut.cz/ontologies/s-pipes/ValidationConstraintError"
},
"@type": "ValidationConstraintError",
"module": "ExampleModule",
"message": "Example error message",
"constraintQuery": "SELECT ?variable1 ?variable2 WHERE { ... }",
"constraintFailureEvidences": [
{
"variable1": "value1_1",
"variable2": "value1_2"
},
{
"variable1": "value2_1",
"variable2": "value2_2"
}
]
}
Other ideas:
@palagdan Final output looks like this:
My only concern is whether we should not include also a list of column names, but i guess we can do it later when needed for the frontend.
…edException and return detailed information about exception
Resolves #246