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

model: Fix abstract class detection #32

Merged
merged 1 commit into from
Dec 10, 2024
Merged

model: Fix abstract class detection #32

merged 1 commit into from
Dec 10, 2024

Conversation

JPEWdev
Copy link
Owner

@JPEWdev JPEWdev commented Dec 10, 2024

The SHACL validated method for detecting abstract classes had a problem in that it would not allow concrete derived subclasses to be construct, since sh:class looks at subclasses also. Instead, use a constraint on rdf:type, which checks the actual declared types of the objects without going into subclasses

The SHACL validated method for detecting abstract classes had a problem
in that it would not allow concrete derived subclasses to be construct,
since sh:class looks at subclasses also. Instead, use a constraint on
rdf:type, which checks the actual declared types of the objects without
going into subclasses
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/shacl2code
  model.py
Project Total  

This report was generated by python-coverage-comment-action

@JPEWdev JPEWdev merged commit e703f4d into main Dec 10, 2024
13 checks passed
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.

1 participant