Skip to content

Commit

Permalink
refactor: update variable names for clarity in InferencingTestCaseType
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleycaselli committed Oct 8, 2024
1 parent 8f207e5 commit 0d6dc28
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ public void run(Model results) {
for (Statement s : expectedResults) {
valid = false;
expectedModel.add(s);
Resource expectedInferredBN = s.getObject().asResource();
Triple expectedInferredTriple = Triple.create(expectedInferredBN.getProperty(RDF.subject).getObject().asNode(),
expectedInferredBN.getProperty(RDF.predicate).getObject().asNode(),
expectedInferredBN.getProperty(RDF.object).getObject().asNode());
if (actualResults.getGraph().contains(expectedInferredTriple)) {
Resource expectedInferredNode = s.getObject().asResource();
Triple expectedInferredNodeAsTriple = Triple.create(expectedInferredNode.getProperty(RDF.subject).getObject().asNode(),
expectedInferredNode.getProperty(RDF.predicate).getObject().asNode(),
expectedInferredNode.getProperty(RDF.object).getObject().asNode());
if (actualResults.getGraph().contains(expectedInferredNodeAsTriple)) {
valid = true;
}
}
Expand Down

0 comments on commit 0d6dc28

Please sign in to comment.