Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
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#>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Prefix declaration should end with .
Change declarations in all files

Suggested change
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Prefix declaration should end with .

Change this in every file.

Useful tool to check turtle syntax: http://ttl.summerofcode.be/

Suggested change
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@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 alice-agents:2f2f3628\/27eae14b .

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Declaration jack-agents instead of alice-agents.
Happens in some other files so check other files and change there as well.

Suggested change
interop:hasAccessGrant alice-agents:2f2f3628\/27eae14b .
interop:hasAccessGrant jack-agents:2f2f3628\/27eae14b .

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Alice-agents instead of jack-agents.
Occurs in some other files as well so change there too.

Suggested change
interop:hasAccessGrant alice-agents:2f2f3628\/27eae14b .
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
alice-agents:c4562da9\/ , # Alice

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-agents:c4562da9\/ , # Alice
alice-agents:c4562da9\/ ; # Alice

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-agents:c4562da9\/ , # Alice
jack-agents:c4562da9\/ ; # Jack

interop:hasApplicationRegistration
alice-agents:2f2f3628\/ , # Projectron

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-agents:2f2f3628\/ , # Projectron
alice-agents:2f2f3628\/ . # Projectron

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-agents:2f2f3628\/ , # Projectron
jack-agents:2f2f3628\/ . # Projectron


17 changes: 17 additions & 0 deletions giacomo_data/jackPapa/agents/alice$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't be here, same for jackPapa$.ttl file.

In SocialAgentRegistration you refer to social agent Alice with c4562da9$.ttl. In SocialAgentRegistration Alice is referenced by registeredAgent. This probably refers to her pod where we find her interop:Agent.

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix interop: <http://www.w3.org/ns/solid/interop#>
@prefix alice: <https://alice.example/>
@prefix alice-jarvis: <https://alice.jarvis.example/>
@prefix alice-auth: <https://auth.alice.example/>
@prefix alice-inbox: <https://alice.example/inbox/>

alice:\#id
a interop:Agent ;
######## Registry Sets ########
interop:hasRegistrySet alice:registries ;
######## Authorization Agent ########
interop:hasAuthorizationAgent alice-jarvis: ;
######## Inboxes ########
interop:hasInbox alice-inbox:general ;
interop:hasAccessInbox alice-inbox:access .
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#>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
@prefix interop: <http://www.w3.org/ns/solid/interop#>
@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/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
PREFIX jack-agents: <https://localhost:3000/jackpapa/agents/>
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
PREFIX jack-agents: <https://localhost:3000/jackpapa/agents/>
@prefix jack-agents: <https://localhost:3000/jackpapa/agents/>.

PREFIX alice-agents: <https://alice.example/agents/> #Fake uri

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
PREFIX alice-agents: <https://alice.example/agents/> #Fake uri
@prefix alice-agents: <https://alice.example/agents/> #Fake uri

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
PREFIX alice-agents: <https://alice.example/agents/> #Fake uri
@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 .
13 changes: 13 additions & 0 deletions giacomo_data/jackPapa/agents/jackPapa$.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#>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't be here. This structure is already in profile/card$.ttl where it can be discovered by other social agents.

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix interop: <http://www.w3.org/ns/solid/interop#>
@prefix jack: <https://localhost:3000/jackpapa>
@prefix jack-jarvis: <https://jack.jarvis.example/> #Fake uri

jack:\#id
a interop:Agent ;
######## Registry Sets ########
interop:hasRegistrySet jack:registries ;
######## Authorization Agent ########
interop:hasAuthorizationAgent jack-jarvis: ;

16 changes: 16 additions & 0 deletions giacomo_data/jackPapa/agents/projectron.example$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix interop: <http://www.w3.org/ns/solid/interop#>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same for projectron as with the social agents this will be in the pod of projectron. An application registration refers to this interop:application with interop:registeredAgent

@prefix acl: <http://www.w3.org/ns/auth/acl#>
@prefix solidtrees: <https://shapetrees.example/solid/>
@prefix projectron: <https://projectron.example/>
@prefix needs: <https://projectron.example/needs#>
@prefix acme: <https://acme.example/>
@prefix pm: <https://vocab.example/pm/>
@prefix pm-shapetrees: <http://data.example/shapetrees/pm#>

projectron:\#id
a interop:Application ;
interop:applicationName "Projectron" ;
interop:applicationDescription "Manage projects with ease" ;
interop:applicationAuthor acme:\#id ;
interop:applicationThumbnail acme:thumb.svg ;
interop:hasAccessNeedGroup needs:need-group-pm .
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#>

alice-authorization:54a1b6a0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-authorization:54a1b6a0
jack-authorization:54a1b6a0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
alice-authorization:54a1b6a0
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
15 changes: 15 additions & 0 deletions giacomo_data/jackPapa/profile/card$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@prefix jack: <https://localhost:3000/jackpapa>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing some declarations

Suggested change
@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://localhost:4200/>.
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix jack: <https://localhost:3000/jackpapa>.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
@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:giacomo.papaluca@digita.ai>;
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\/;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
interop:hasAuthorizationRegistry jack:authorizations\/;
interop:hasAuthorizationRegistry jack:authorizations\/.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
interop:hasAuthorizationRegistry jack:authorizations\/;
interop:hasAuthorizationRegistry jack:authorizations\/.