Skip to content
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

Allow string literal to compare equal to strings. #215

Merged
merged 3 commits into from
May 27, 2024

Conversation

jesper-friis
Copy link
Contributor

@jesper-friis jesper-friis commented May 25, 2024

Description

Allow string literal to compare equal to strings.

This should be considered a bug fix rather than a new feature that changes the behaviour of Tripper, since it allow the mappings module to behave as expected when using string literals as dict keys, fixing a failure in the mapping example of DLite.

This is also a more intuitive behaviour and is consistent with RDF 1.1 and later.

Type of change

  • Bug fix and code cleanup
  • New feature
  • Documentation update
  • Testing

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?
  • Is the code properly tested?

This is both a more intuitive behaviour and allow the mappings module
to behave as expected when using string literals as dict keys.
Copy link

codecov bot commented May 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.42%. Comparing base (508492f) to head (dd3f3fd).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #215   +/-   ##
=======================================
  Coverage   78.42%   78.42%           
=======================================
  Files          18       18           
  Lines        1650     1650           
=======================================
  Hits         1294     1294           
  Misses        356      356           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jesper-friis jesper-friis merged commit 9690765 into master May 27, 2024
17 checks passed
@jesper-friis jesper-friis deleted the literal-string-equality branch May 27, 2024 12:48
jesper-friis added a commit that referenced this pull request May 27, 2024
# Description
Correct parsing literals from the rdflib backend.

The failing test should be fixed by PR #215.

## Type of change
- [x] Bug fix and code cleanup
- [ ] New feature
- [ ] Documentation update
- [ ] Testing
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