-
Notifications
You must be signed in to change notification settings - Fork 0
feat: added a new interop structure example #2
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| true |
| 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>. |
| 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#> | ||||||||||
|
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. @Prefix declaration should end with . Change this in every file. Useful tool to check turtle syntax: http://ttl.summerofcode.be/
Suggested change
|
||||||||||
| @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 . | ||||||||||
|
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. Declaration jack-agents instead of alice-agents.
Suggested change
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. Alice-agents instead of jack-agents.
Suggested change
|
||||||||||
| 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 | ||||||||||
|
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
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
|
||||||||||
| interop:hasApplicationRegistration | ||||||||||
| alice-agents:2f2f3628\/ , # Projectron | ||||||||||
|
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
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
|
||||||||||
|
|
||||||||||
| 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#> | ||
|
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. 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 . | ||
| 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#> | ||||||||||
|
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
|
||||||||||
| @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/> | ||||||||||
|
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
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
|
||||||||||
| PREFIX alice-agents: <https://alice.example/agents/> #Fake uri | ||||||||||
|
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
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
|
||||||||||
|
|
||||||||||
| 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 . | ||||||||||
| 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#> | ||
|
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. 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: ; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| @prefix interop: <http://www.w3.org/ns/solid/interop#> | ||
|
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. 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 . | ||
| 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 . |
| 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 | ||||||||||
|
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
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
|
||||||||||
| 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 . | ||||||||||
| 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 . |
| 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 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,15 @@ | ||||||||||||||||||||||||||
| @prefix jack: <https://localhost:3000/jackpapa> | ||||||||||||||||||||||||||
|
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. Missing some declarations
Suggested change
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
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||
| 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:. | ||||||||||||||||||||||||||
| 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. |
| 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\/; | ||||||||||
|
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
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
|
||||||||||
|
|
||||||||||
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.
@Prefix declaration should end with .
Change declarations in all files