Skip to content

Changes list-equal and map-equal for cases with the same blank node#5

Merged
hartig merged 1 commit intomainfrom
EqualTestForCDTsWithBNodes
Jun 4, 2024
Merged

Changes list-equal and map-equal for cases with the same blank node#5
hartig merged 1 commit intomainfrom
EqualTestForCDTsWithBNodes

Conversation

@hartig
Copy link
Contributor

@hartig hartig commented May 28, 2024

Related to PR #2, the definitions of list-equal and map-equal need to be changed as follows. Currently, during the pairwise comparison of elements of the given two lists, whenever at least one of the two elements is a blank node, the overall = comparison of the two lists literals results in an error. The required change (as implemented by this PR) is: If both of the elements happen to be the same blank node, then there should be no error. Similarly, for maps.

This PR changes the corresponding steps in the algorithms that define the expected behavior of list-equal (Section 5.1) and of map-equal (Section 5.2). Additionally, this PR changes the corresponding tests.

…e blank node lead to true rather than an error
@hartig hartig requested a review from kasei May 28, 2024 14:44
hartig added a commit to hartig/jena that referenced this pull request May 28, 2024
@hartig
Copy link
Contributor Author

hartig commented Jun 4, 2024

@kasei can you please take a look at this one as well. This shouldn't take too long as we agreed to this change in our Slack conversation.

@kasei
Copy link
Collaborator

kasei commented Jun 4, 2024

Looks good. Making the change to the algorithm in my code lets me pass the updated tests. Good to merge.

@hartig hartig merged commit c50f39e into main Jun 4, 2024
@hartig hartig deleted the EqualTestForCDTsWithBNodes branch June 4, 2024 21:04
@hartig
Copy link
Contributor Author

hartig commented Jun 4, 2024

Thanks for checking!

hartig added a commit to hartig/jena that referenced this pull request Jun 4, 2024
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.

2 participants