Skip to content

fix: Include pim:storage in WebID profile by default#2147

Open
jeswr wants to merge 3 commits into
CommunitySolidServer:mainfrom
jeswr:copilot/include-pim-storage-values
Open

fix: Include pim:storage in WebID profile by default#2147
jeswr wants to merge 3 commits into
CommunitySolidServer:mainfrom
jeswr:copilot/include-pim-storage-values

Conversation

@jeswr

@jeswr jeswr commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

📁 Related issues

Closes #910

✍️ Description

Adds a default pim:storage statement to newly generated WebID profile documents so Solid clients can discover the pod’s root storage container directly from the profile.

As noted in #910 - unless there is a reason to omit the pim:storage declaration on the basis of user privacy - the entity managing a WebID SHOULD include declare the pim:storage for any storages owned by the user.

✅ PR check list

Before this pull request can be merged, a core maintainer will check whether

  • this PR is labeled with the correct semver label
    • semver.patch: Backwards compatible bug fixes.
    • semver.minor: Backwards compatible feature additions.
    • semver.major: Breaking changes. This includes changing interfaces or configuration behaviour.
  • the correct branch is targeted. Patch updates can target main, other changes should target the latest versions/* branch.
  • the RELEASE_NOTES.md document in case of relevant feature or config changes.
  • any relevant documentation was updated to reflect the changes in this PR.

@joachimvh - please let me know if you consider this a feature rather than a patch, in which case I can target against versions/next-major and add a release note.

Copilot AI review requested due to automatic review settings April 1, 2026 21:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates newly generated WebID profile documents so Solid clients can discover the pod’s root storage container via a default pim:storage statement (per the expectation discussed in issue #910).

Changes:

  • Add pim:storage <{{base.path}}> to the default WebID profile Turtle template.
  • Extend the internal PIM vocabulary helper with the storage predicate.
  • Add an integration test asserting the generated WebID profile contains the expected pim:storage triple.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/integration/Accounts.test.ts Verifies the profile document contains a pim:storage triple pointing at the created pod root.
templates/pod/base/profile/card$.ttl.hbs Adds the pim: prefix and emits pim:storage in the generated WebID profile.
src/util/Vocabularies.ts Adds storage to the PIM vocabulary export for consistent predicate access.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Add pim:storage in profile documents by default

3 participants