solid / solid/data-interoperability-panel

Define usage of Shape Path for Data Grant with InheritInstances scope

Open
#131 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data-authorization data-registration
Dominant language
Bikeshed
Stars
58
Forks
18
PR merge metrics
No merged PRs in 30d

Description

#130 uses viaPredicate to express predicate which directly relates parent to a child, we use it for inherited access.
I will link this issue inline in the primer to track changing it to st:viaShapePath.

Currently to find all Data Instances of child resources, we do following:

  1. Each Data Grant is associated with specific ShapeTree (eg. Project, Task etc.)
  2. Starting from child Data Grant with InheritInstances scope (eg. Tasks), follow interop:inheritsFromGrant #124
  3. We get parent Data Grant with scope AllInsances or SelectedInstances (eg. Projects)
  4. For each instance of parent (eg. Project)
  5. Find and fetch ReferencesList for children matching ShapeTree of child Data Grant (there will be separate ReferencesList for each referenced child ShapeTree in parent ShapeTree).
  6. In the ReferencesList find references to all child Data Instances

I think in 3.1 we should be able to do it purely based on child ShapeTree if we include that information in ReferencesList description (partially embedded in each parent Data Instance). In 3.2 we would need to use Shape Path to get references of children. We would also need to consider how based on that Shape Path relevant statements get added to ReferencesList.

@ericprud @justinwb

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue #130, issue #124, and the primer reference mentioned in the issue. Trace how viaPredicate, st:viaShapePath, InheritInstances, and ReferencesList are currently described, then establish the agreed Shape Path usage and update the relevant primer or specification text when the semantics are settled.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.