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

Implement Class NodeKind support #107

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

Conversation

JPEWdev
Copy link
Contributor

@JPEWdev JPEWdev commented Mar 22, 2024

Add support for Classes to specify what kind of node they must be (e.g. "IRI", "BlankNode", "BlankNodeOrIRI")

JPEWdev added a commit to JPEWdev/spdx-3-model that referenced this pull request Mar 22, 2024
Sets the NodeKind for elements to be an IRI. This prevents them from
being able to use blank nodes in the SHACL model.

Requires spdx/spec-parser#107

Signed-off-by: Joshua Watt <[email protected]>
Since classes can specify constraints other than just properties, make
them always be NodeShapes
Elements must have a fully qualified IRI; blank nodes are not allowed to
add the NodeKind constraint to the class
@rnjudge
Copy link

rnjudge commented Apr 9, 2024

@zvr will review

@zvr zvr self-requested a review April 9, 2024 16:40
@zvr
Copy link
Member

zvr commented Jul 18, 2024

I think this is not needed any more, as it's being taken care of.

@JPEWdev can we close this?

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.

3 participants