Skip to content

feat(shapes): add sh:node constraints#61

Merged
elf-pavlik merged 4 commits intosolid:mainfrom
elf-pavlik:sh-node
Jul 26, 2025
Merged

feat(shapes): add sh:node constraints#61
elf-pavlik merged 4 commits intosolid:mainfrom
elf-pavlik:sh-node

Conversation

@elf-pavlik
Copy link
Member

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

Data validation fails since this change surfaces few errors in data

I think corrections in data show how why adding sh:node improves validation.
I hope it also will give me better typings in LDO 🤞

@elf-pavlik elf-pavlik requested review from jeff-zucker and jeswr July 24, 2025 17:45
@elf-pavlik elf-pavlik marked this pull request as ready for review July 24, 2025 17:52
Copy link
Member

@jeff-zucker jeff-zucker left a comment

Choose a reason for hiding this comment

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

But cdata:PassPlatform is (the essential) part of the softwareStack. This is not the place to correct that error.

@elf-pavlik
Copy link
Member Author

But cdata:PassPlatform is (the essential) part of the softwareStack. This is not the place to correct that error.

It's not in the data, when you add it you can add that relation back.

@elf-pavlik elf-pavlik requested review from jeff-zucker and jeswr July 25, 2025 23:43
sh:name "landing page"@en ;
sh:description "URL(s) where the work is available, or described"
% .
ex:provider IRI %
Copy link
Member

@jeswr jeswr Jul 26, 2025

Choose a reason for hiding this comment

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

Is this intentional - it doesn't look like OrganizationShape requires focus nodes to be IRIs.

Same comment applies to other removals of IRI

Copy link
Member Author

@elf-pavlik elf-pavlik Jul 26, 2025

Choose a reason for hiding this comment

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

Good catch, that was by accident for ex:provider. I restored IRI in the last commit.
BTW I'm planning another commit which will add sh:node sh:IRI to all the shapes. In that case does it still make sense to keep those IRI on properties which value needs to conform to a specific shape or they are just redundant and better to be removed?

Copy link
Member

Choose a reason for hiding this comment

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

They would be redundant. I suggest confirming this by running validation eith a test case you expect to fail.

@elf-pavlik elf-pavlik requested a review from jeswr July 26, 2025 12:57
@elf-pavlik
Copy link
Member Author

Everything should be ready ✅

@elf-pavlik elf-pavlik merged commit c194bf3 into solid:main Jul 26, 2025
3 checks passed
@elf-pavlik elf-pavlik deleted the sh-node branch July 26, 2025 19:59
@github-actions
Copy link

🎉 This PR is included in version 1.1.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.

3 participants