-
Notifications
You must be signed in to change notification settings - Fork 5
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
ValidationConstraintFailedException does not contain lastName column #269
Comments
I changed the for loop to traverse through all variables(not in solution, in resultSet), but I found out that lastName is empty. ResultSet rs = execution.execSelect();
constraintViolated = rs.hasNext();
if(constraintViolated){
for(int i = 0; i < ExecutionConfig.getEvidenceNumber() && rs.hasNext(); i++){
QuerySolution solution = rs.next() ;
Map<String, RDFNode> evidenceMap = new LinkedHashMap<>();
for (String varName : rs.getResultVars()) {
RDFNode value = solution.get(varName);
if (value != null) {
evidenceMap.put(varName, value);
} else {
evidenceMap.put(varName, model.createLiteral(""));
}
}
evidences.add(evidenceMap);
}
} |
palagdan
changed the title
ValidationConstraintFailedException does not contain some columns
ValidationConstraintFailedException does not contain lastName columns
Sep 2, 2024
palagdan
changed the title
ValidationConstraintFailedException does not contain lastName columns
ValidationConstraintFailedException does not contain lastName column
Sep 2, 2024
palagdan
added a commit
that referenced
this issue
Sep 2, 2024
palagdan
added a commit
that referenced
this issue
Sep 2, 2024
see my comment in PR #270 |
palagdan
added a commit
that referenced
this issue
Sep 12, 2024
blcham
pushed a commit
that referenced
this issue
Sep 12, 2024
blcham
pushed a commit
that referenced
this issue
Sep 12, 2024
blcham
pushed a commit
that referenced
this issue
Sep 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the constraint-validation example, after the pipeline fails, the ValidationConstraintFailedException does not contain lastName due to strange bindings.
The text was updated successfully, but these errors were encountered: