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

Adds SHACL ifabsent handling for type uriorcurie #2503

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jsheunis
Copy link
Contributor

This replaces the raising of NotImplementedError for ifabsent handling of type uriorcurie during shacl generation with two lines of code. The relevant test is also updated.

Closes #2502

@jsheunis jsheunis force-pushed the shacl-ifabsent-uriorcurie branch from a1fee40 to 0447d19 Compare January 17, 2025 22:02
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.27%. Comparing base (2fdf8b3) to head (0447d19).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2503   +/-   ##
=======================================
  Coverage   81.27%   81.27%           
=======================================
  Files         120      120           
  Lines       13398    13400    +2     
  Branches     3768     3768           
=======================================
+ Hits        10889    10891    +2     
  Misses       1892     1892           
  Partials      617      617           

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

+ """
- name: definition_A
range: uriorcurie
ifabsent: string(https://en.wikipedia.org/wiki/Student)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if this should be string(..) or uriorcurie(..) or uri(..) 🤷

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.

SHACL generation: ifabsent handling incomplete for many defaults
2 participants