Skip to content

feat(shapes): all shapes require class and iri#63

Merged
elf-pavlik merged 1 commit intosolid:mainfrom
elf-pavlik:class-and-iri
Jul 29, 2025
Merged

feat(shapes): all shapes require class and iri#63
elf-pavlik merged 1 commit intosolid:mainfrom
elf-pavlik:class-and-iri

Conversation

@elf-pavlik
Copy link
Member

@elf-pavlik elf-pavlik commented Jul 27, 2025

This is a followup for #61

Now all shapes will have

  • sh:nodeKind sh:IRI to ensure we use IRIs for catalogued resources
  • sh:class to ensure each resource has rdf:type, which we also use to target validation (sh:targetClass)

I will create a separate issue to find a way to ensure that all resources are validated. Currently if resource doesn't have any rdf:type it will not be validated at all (unless I miss something about targeting) #65

I think this PR may be enough to close #45

At least for now I'm leaving IRI on properties that use sh:node with shapes which have sh:class constraint. Even though those constrains are now converted to ShEx, LDO still doesn't use them.

@elf-pavlik elf-pavlik requested review from jeff-zucker and jeswr July 27, 2025 17:10
@elf-pavlik elf-pavlik force-pushed the class-and-iri branch 2 times, most recently from 5ff2860 to 5b6c41d Compare July 27, 2025 17:14
@elf-pavlik
Copy link
Member Author

@jeswr would you like us to wait for your review before merging this PR?

Copy link
Member

@jeswr jeswr left a comment

Choose a reason for hiding this comment

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

Lgtm

@elf-pavlik elf-pavlik merged commit 628348f into solid:main Jul 29, 2025
3 checks passed
@elf-pavlik elf-pavlik deleted the class-and-iri branch July 29, 2025 11:35
@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using sh:class and sh:targetClass

3 participants