Skip to content

Individual restrictions#514

Open
jesper-friis wants to merge 49 commits intomasterfrom
individual-restrictions
Open

Individual restrictions#514
jesper-friis wants to merge 49 commits intomasterfrom
individual-restrictions

Conversation

@jesper-friis
Copy link
Copy Markdown
Contributor

@jesper-friis jesper-friis commented Mar 9, 2026

Description

Support individuals with restrictions and lists of restrictions.

Builds on top of PR #513

This works. Possible further improvements (may as well be done in new PRs):

  • Add missing tests suggested in the review of Keywords with context input #513
  • Remove infer_restriction_types() and rename the restrictions argument of update_restrictions() to spec.
  • Catch jsonld.JsonLdError in context.py:210 and raise a more readable exception.

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?

jesper-friis and others added 30 commits February 11, 2026 11:27
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
@jesper-friis jesper-friis changed the base branch from master to keywords-with-context-input March 9, 2026 15:52
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.20%. Comparing base (a0f311a) to head (c1cc808).

Files with missing lines Patch % Lines
tripper/datadoc/context.py 50.00% 2 Missing ⚠️
tripper/datadoc/dataset.py 92.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #514      +/-   ##
==========================================
- Coverage   85.23%   85.20%   -0.04%     
==========================================
  Files          30       30              
  Lines        4938     4946       +8     
==========================================
+ Hits         4209     4214       +5     
- Misses        729      732       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jesper-friis jesper-friis mentioned this pull request Mar 11, 2026
10 tasks
Base automatically changed from keywords-with-context-input to master March 12, 2026 07:51
@jesper-friis jesper-friis changed the title WIP: Individual restrictions Individual restrictions Mar 12, 2026
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