-
Notifications
You must be signed in to change notification settings - Fork 9
Add SHACL shape for Solid WebID profile discovery #120
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
Open
jeff-zucker
wants to merge
3
commits into
main
Choose a base branch
from
jeff-zucker-patch-5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,123 @@ | ||||||
| @prefix sh: <http://www.w3.org/ns/shacl#> . | ||||||
| @prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||||||
| @prefix vcard: <http://www.w3.org/2006/vcard/ns#> . | ||||||
| @prefix solid: <http://xmlns.com/foaf/0.1/> . | ||||||
| @prefix ldp: <http://www.w3.org/ns/ldp#> . | ||||||
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | ||||||
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||||||
| @prefix pim: <http://www.w3.org/ns/pim/space#>. | ||||||
| @prefix interop: <http://www.w3.org/ns/solid/interop#> . | ||||||
| @prefix dct: <http://purl.org/dc/terms/> . | ||||||
|
|
||||||
| ########################################################################## | ||||||
| # | ||||||
| # SHAPE FOR DISCOVERY OF THE MAJAR ENDPOINTS IN A SOLID WEBID-PROFILE | ||||||
| # | ||||||
| # This shape includes discovery predicates mentioned in | ||||||
| # the Solid WebID Profile draft specification. The intention | ||||||
| # is to support most currently extant Solid Profiles. Therefore | ||||||
| # the shape also includes discovery predicates in common use but | ||||||
| # not in the draft specification. These inlude : | ||||||
| # | ||||||
| # * the non-standard `foaf:primaryTopicOf`. | ||||||
| # * the most common validation endpoint - `solid:oidcIssuer`. | ||||||
| # * both currently used discovery mechanisms - type indexes and SAI | ||||||
| # | ||||||
| # The shape is agnostic regarding whether the WebID document is located | ||||||
| # on a Solid server or not, whether the WebID document and the "social profile" | ||||||
| # are the same document or not, and whether the profile uses type indexes | ||||||
| # or SAI for further discovery. | ||||||
| # | ||||||
| # To use this shape for validation, one must first load the full profile, | ||||||
| # i.e. all of the available endpoints in the shape. The resulting graph | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| # can then be validated against this shape. | ||||||
| # | ||||||
| ########################################################################## | ||||||
|
|
||||||
| <> | ||||||
| dcterms:issued "2026-01-25"^^xsd:date ; | ||||||
| dct:creator <https://jeff-zucker.solidcommunity.net/profile/card#me> . | ||||||
|
|
||||||
| <#Webid-profile-discovery-shape> a sh:Shape ; | ||||||
|
|
||||||
| sh:targetClass foaf:Agent, foaf:Person, foaf:Organization ; | ||||||
| sh:name "WebID Profile Shape" ; | ||||||
| sh:description "Shape for discovery of Solid WebID Profile endpoints." ; | ||||||
| sh:property | ||||||
|
|
||||||
| # PREFERENCES-FILE | ||||||
| # | ||||||
| [ | ||||||
| sh:path pim:preferencesFile ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:minCount 1 ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile must have exactly 1 preferences file." | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ] , | ||||||
|
|
||||||
| # INBOX | ||||||
| # | ||||||
| [ | ||||||
| sh:path ldp:inbox ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile may have 0 or one inbox." | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ] , | ||||||
|
|
||||||
| # STORAGE | ||||||
| # | ||||||
| [ | ||||||
| sh:path solid:storage ; | ||||||
jeff-zucker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:description "The profile may have 0 or more storage endpoints." | ||||||
| ] , | ||||||
|
|
||||||
| # SEE-ALSO | ||||||
| # | ||||||
| [ | ||||||
| sh:path rdfs:seeAlso ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:description "The profile may have 0 or more seeAlso endpoints." | ||||||
| ] , | ||||||
|
|
||||||
| # ISSUER | ||||||
| # | ||||||
| [ | ||||||
| sh:path solid:oidcIssuer ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:description "The profile may have 0 or more OIDC issuer endpoints." | ||||||
| ] , | ||||||
|
|
||||||
| # TYPE INDEXES | ||||||
| # | ||||||
| [ | ||||||
| sh:path solid:publicTypeIndex ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile may have 0 or 1 publicTypeIndex endpoint." | ||||||
| ] , | ||||||
| [ | ||||||
| sh:path solid:privateTypeIndex ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile may have 0 or 1 privateTypeIndex endpoint." | ||||||
| ] , | ||||||
|
|
||||||
| # PRIMARY-TOPIC-OF | ||||||
| # | ||||||
| [ | ||||||
| sh:path foaf:primaryTopicOf ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile may have 0 or 1 primary-topic-of endpoints." | ||||||
| ], | ||||||
|
|
||||||
| # SAI | ||||||
| [ | ||||||
| sh:path interop:hasAuthorizationAgent ; | ||||||
| sh:nodeKind sh:IRI ; | ||||||
| sh:maxCount 1 ; | ||||||
| sh:description "The profile may have 0 or 1 authorization agent." | ||||||
| ] | ||||||
|
|
||||||
| . | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.