Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

feat: added a new interop structure example #2

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions giacomo_data/.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# WARNING: DO NOT USE UNMODIFIED UNLESS FOR TESTING PURPOSES.
# WHEN IN DOUBT, DELETE THIS DOCUMENT.
#
# This root ACL resource allows unrestricted public access to all documents and subcontainers.
#
# This document was automatically generated by the Community Solid Server
# because the "Expose a public root Pod" option was selected during setup,
# or because setup has been bypassed.
#
# We strongly suggest to edit this document such that it restricts permissions.

@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.


# Give all agents Read, Write, and Control permissions on everything
<#authorization>
a acl:Authorization;
acl:agentClass foaf:Agent;
acl:mode acl:Read; #, acl:Write, acl:Append, acl:Control ==> all agents can only Read
acl:accessTo <./>;
acl:default <./>.



Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"http://localhost:3000/"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"4.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
1 change: 1 addition & 0 deletions giacomo_data/.internal/setup/cm9vdEluaXRpYWxpemVk$.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
1 change: 1 addition & 0 deletions giacomo_data/.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://localhost:3000/> a <http://www.w3.org/ns/pim/space#Storage>.
18 changes: 18 additions & 0 deletions giacomo_data/jackPapa/agents/2f2f3628$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix interop: <http://www.w3.org/ns/solid/interop#> .
@prefix jack: <https://localhost:3000/jackpapa/> .
@prefix jarvis: <https://jarvis.example/> .
@prefix projectron: <https://projectron.example/> .
@prefix authz-agent: <https://trusted.example/> .
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/> .

jack-agents:2f2f3628\/
a interop:ApplicationRegistration ;
interop:registeredBy jack:\#id ;
interop:registeredWith jarvis:\#id ;
interop:registeredAt "2020-04-04T20:15:47.000Z"^^xsd:dateTime ;
interop:updatedAt "2020-04-04T21:11:33.000Z"^^xsd:dateTime ;
interop:registeredAgent projectron:\#id ;
interop:hasAccessGrant jack-agents:2f2f3628\/27eae14b .
13 changes: 13 additions & 0 deletions giacomo_data/jackPapa/agents/agents$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>
@prefix interop: <http://www.w3.org/ns/solid/interop#>
@prefix jack-agents: <http://localhost:3000/jackpapa/agents/>

jack-agents:
a interop:AgentRegistry ;
interop:hasSocialAgentRegistration
jack-agents:c4562da9\/ ; # registration with Alice
interop:hasApplicationRegistration
jack-agents:2f2f3628\/ . # registration with Projectron

21 changes: 21 additions & 0 deletions giacomo_data/jackPapa/agents/c4562da9$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix acl: <http://www.w3.org/ns/auth/acl#> .
@prefix interop: <http://www.w3.org/ns/solid/interop#> .
@prefix pm-shapetrees: <http://data.example/shapetrees/pm#> .
@prefix jack: <https://localhost:3000/jackpapa/> .
@prefix jarvis: <https://jarvis.example/> .
@prefix alice: <https://alice.example> . #Fake uri
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/> .
@prefix alice-agents: <https://alice.example/agents/> . #Fake uri

jack-agents:c4562da9\/
a interop:SocialAgentRegistration ;
interop:registeredBy jack:\#id ;
interop:registeredWith jarvis:\#id ;
interop:registeredAt "2020-04-04T20:15:47.000Z"^^xsd:dateTime ;
interop:updatedAt "2020-04-04T21:11:33.000Z"^^xsd:dateTime ;
interop:registeredAgent alice:\#id ;
interop:reciprocalRegistration alice-agents:255aa181\/ ;
interop:hasAccessGrant jack-agents:c4562da9\/b6e125b8 .
22 changes: 22 additions & 0 deletions giacomo_data/jackPapa/authorizations/0e4cb692$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix acl: <http://www.w3.org/ns/auth/acl#> .
@prefix interop: <http://www.w3.org/ns/solid/interop#> .
@prefix jack: <https://localhost:3000/jackpapa> .
@prefix projectron: <https://projectron.example/> .
@prefix jack-authorization: <https://localhost:3000/jackpapa/authorizations/> .
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/> .
@prefix pm-shapetrees: <http://data.example/shapetrees/pm#> .

jack-authorization:0e4cb692
a interop:DataAuthorization ;
interop:dataOwner jack:\#id ;
interop:grantee projectron:\#id ;
interop:registeredShapeTree pm-shapetrees:TaskTree ; ##### Fake example of data
interop:accessMode acl:Read, acl:Create ;
interop:creatorAccessMode acl:Update, acl:Delete ;
interop:scopeOfAuthorization interop:Inherited ;
interop:satisfiesAccessNeed projectron:\#9462959c ;
interop:inheritsFromAuthorization
jack-authorization:54a1b6a0 .
20 changes: 20 additions & 0 deletions giacomo_data/jackPapa/authorizations/54a1b6a0$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack: <https://localhost:3000/jackpapa>.
@prefix projectron: <https://projectron.example/>.
@prefix jack-authorization: <https://localhost:3000/jackpapa/authorization/>.
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/>.
@prefix pm-shapetrees: <http://data.example/shapetrees/pm#>.

jack-authorization:54a1b6a0
a interop:DataAuthorization ;
interop:dataOwner jack:\#id ;
interop:grantee projectron:\#id ;
interop:registeredShapeTree pm-shapetrees:ProjectTree ; ### Fake example of data
interop:accessMode acl:Read, acl:Create ;
interop:creatorAccessMode acl:Update, acl:Delete ;
interop:scopeOfAuthorization interop:All ;
interop:satisfiesAccessNeed projectron:\#ac54ff1e .
19 changes: 19 additions & 0 deletions giacomo_data/jackPapa/authorizations/e2765d6c$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack: <https://localhost:3000/jackpapa>.
@prefix jarvis: <https://localhost:3000/jarvis.example/>.
@prefix projectron: <https://localhost:3000/projectron.example/>.
@prefix jack-authorization: <https://localhost:3000/jackpapa/authorizations/>.

jack-authorization:e2765d6c
a interop:AccessAuthorization ;
interop:grantedBy jack:\#id ;
interop:grantedWith jarvis:\#id ;
interop:grantedAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
interop:grantee projectron:\#id ;
interop:hasAccessNeedGroup projectron:\#d8219b1f ;
interop:hasDataAuthorization
jack-authorization:54a1b6a0 ,
jack-authorization:0e4cb692 .
10 changes: 10 additions & 0 deletions giacomo_data/jackPapa/authorizations/jack-authorization$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack-authorization: <https://localhost:3000/jackpapa/authorizations/>.

jack-authorization:
a interop:AuthorizationRegistry;
interop:hasAccessAuthorization
jack-authorization:e2765d6c , # projectron
jack-authorization:47e07897 , # jarvis
jack-authorization:d577d117 , # alice
jack-authorization:cce01253 . # performchart
20 changes: 20 additions & 0 deletions giacomo_data/jackPapa/profile/card$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@prefix jack: <https://localhost:3000/jackpapa> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
@prefix auth-agent: <http://authz-agent.example>. # fake uri
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack: <https://localhost:3000/jackpapa>.

<>
a foaf:PersonalProfileDocument, interop:Agent;
foaf:maker <http://localhost:3000/jackpapa/profile/card#me>;
foaf:primaryTopic <http://localhost:3000/jackpapa/profile/card#me>.

<http://localhost:3000/jackpapa/profile/card#me>
a foaf:Person, interop:Agent;
solid:oidcIssuer <http://localhost:3000/>;
# solid:oidcIssuer <https://solid.community.net/>;
# solid:oidcIssuer <https://pod.inrupt.com/>;

interop:hasRegistrySet jack:registries;
interop:hasAuthorizationAgent auth-agent:.
37 changes: 37 additions & 0 deletions giacomo_data/jackPapa/profile/card.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.


# Give all agents Read, Write, and Control permissions on everything
<#public>
a acl:Authorization;
acl:agentClass foaf:Agent;
acl:mode acl:Read, acl:Write, acl:Append, acl:Control;
acl:accessTo <./>;
acl:default <./>.
# acl:mode acl:Read.



<#owner>
a acl:Authorization;
acl:agent <http://localhost:3000/jackpapa/profile/card#me>;
acl:agent <mailto:[email protected]>;
acl:accessTo <./>;
acl:mode acl:Read, acl:Write, acl:Control.

<#authorization1>

a acl:Authorization;
acl:agent <http://localhost:3000/jackpapa/profile/card#me>;

acl:accessTo <./card>;
acl:mode acl:Read, acl:Write, acl:Control.

<#authorization2>

a acl:Authorization;
acl:agentClass foaf:Agent;

acl:accessTo <./card>;
acl:mode acl:Read, acl:Write, acl:Control.
8 changes: 8 additions & 0 deletions giacomo_data/jackPapa/registries$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack: <https://localhost:3000/jackpapa>.

jack:registries
a interop:RegistrySet;
interop:HasAgentRegistry jack:agents\/;
interop:hasAuthorizationRegistry jack:authorizations\/.