Skip to content

rdf validate: fix comparing bnodes in quoted triples#114

Merged
Ostrzyciel merged 1 commit intomainfrom
GH-113-rdf-validate-blank-nodes-within-quoted-triples-are-not-compared-correctly
May 9, 2025
Merged

rdf validate: fix comparing bnodes in quoted triples#114
Ostrzyciel merged 1 commit intomainfrom
GH-113-rdf-validate-blank-nodes-within-quoted-triples-are-not-compared-correctly

Conversation

@Ostrzyciel
Copy link
Member

Closes #113

Added a regression test for that. Also improved the error messages emitted by the validator to point to the exact RDF term that's not matching.

Closes #113

Added a regression test for that. Also improved the error messages emitted by the validator to point to the exact RDF term that's not matching.
OrderedRdfCompare.compare(c1, c3)
}
e.getMessage should include("RDF element 1 is different: expected")
e.getMessage should include("RDF element 1 is different in subject term: expected")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one suggestion: maybe add a new exception for this kind of errors instead of just throwing Critical Exception? then you could just compare the exception.msg and skip having to maintain it through strings in OrderedRdfCompare and in these tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, would be nice, but I'm too lazy and this works

@Ostrzyciel Ostrzyciel merged commit 9ea9856 into main May 9, 2025
7 checks passed
@Ostrzyciel Ostrzyciel deleted the GH-113-rdf-validate-blank-nodes-within-quoted-triples-are-not-compared-correctly branch May 9, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rdf validate: blank nodes within quoted triples are not compared correctly

2 participants