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 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ dist

# TernJS port file
.tern-port

tmp
27 changes: 27 additions & 0 deletions data/alice/.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Root ACL resource for the agent account
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

# The homepage is readable by the public
<#public>
a acl:Authorization;
acl:agentClass foaf:Agent;
acl:accessTo <./>;
acl:default <./>;
acl:mode acl:Read.

# The owner has full access to every resource in their pod.
# Other agents have no access rights,
# unless specifically authorized in other .acl resources.
<#owner>
a acl:Authorization;
acl:agent <http://localhost:3002/alice/profile/card#me>;
# Optional owner email, to be used for account recovery:
acl:agent <mailto:alice.@digita.ai>;
# Set the access to the root storage folder itself
acl:accessTo <./>;
# All resources will inherit this authorization, by default

# The owner has all of the access modes allowed
acl:mode
acl:Read, acl:Write, acl:Control.
1 change: 1 addition & 0 deletions data/alice/.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://localhost:3002/alice/> a <http://www.w3.org/ns/pim/space#Storage>.
22 changes: 22 additions & 0 deletions data/alice/README$.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Welcome to your pod

## A place to store your data
Your pod is a **secure storage space** for your documents and data.
<br>
You can choose to share those with other people and apps.

As the owner of this pod,
identified by <a href="http://localhost:3002/alice/profile/card#me">http://localhost:3002/alice/profile/card#me</a>,
you have access to all of your documents.

## Working with your pod
The easiest way to interact with pods
is through Solid apps.
<br>
For example,
you can open your pod in [Databrowser](https://solid.github.io/mashlib/dist/browse.html?uri=http://localhost:3002/alice/).

## Learn more
The [Solid website](https://solidproject.org/)
and the people on its [forum](https://forum.solidproject.org/)
will be glad to help you on your journey.
14 changes: 14 additions & 0 deletions data/alice/README.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

<#public>
a acl:Authorization;
acl:accessTo <./README>;
acl:agentClass foaf:Agent;
acl:mode acl:Read.

<#owner>
a acl:Authorization;
acl:accessTo <./README>;
acl:agent <http://localhost:3002/alice/profile/card#me>;
acl:mode acl:Read, acl:Write, acl:Control.
11 changes: 11 additions & 0 deletions data/alice/agents/.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@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 alice-agents: <http://localhost:3002/alice/agents/> .

alice-agents:
a interop:AgentRegistry ;

interop:hasApplicationRegistration
alice-agents:anApplicationRegistration\/ .
17 changes: 17 additions & 0 deletions data/alice/agents/anApplicationRegistration/.meta
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#> .
@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 alice: <http://localhost:3002/alice/> .
@prefix appCreatorExample: <http://appcreator.example> .
@prefix appExample: <http://localhost:3002/app-example/> .
@prefix alice-agents: <http://localhost:3002/alice/agents/> .

alice-agents:anApplicationRegistration\/
a interop:ApplicationRegistration ;
interop:registeredBy alice: ;
interop:registeredWith appCreatorExample: ;
interop:registeredAt "2022-03-24T14:00:00.000Z"^^xsd:dateTime ;
interop:updatedAt "2022-03-24T14:00:00.000Z"^^xsd:dateTime ;
interop:registeredAgent appExample:profile\/card\#me ;
interop:hasAccesGrant alice-agents:anApplicationRegistration\/anAccessGrant .
13 changes: 13 additions & 0 deletions data/alice/agents/anApplicationRegistration/anAccessGrant/.meta
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 alice: <http://localhost:3002/alice/> .
@prefix appExample: <http://localhost:3002/app-example/profile/card#me> .

alice-mockApp:anAccessGrant
a interop:AccesGrant ;
interop:grantedBy alice: ;
interop:grantedAt "2022-03-28T10:00:00.000Z"^^xsd:dateTime;
interop:grantee appExample: ;
interop:hasAccessNeedGroup appExample: .
7 changes: 7 additions & 0 deletions data/alice/authorization/.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@prefix interop: <http://www.w3.org/ns/solid/interop#>.
@prefix alice-authorization: <http://localhost:3002/alice/authorization/>.

alice-authorization:
a interop:AccessConsentRegistry;
interop:hasAccessConsent
alice-authorization:anAccessConsent .
20 changes: 20 additions & 0 deletions data/alice/authorization/aDataConsent$.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 alice: <http://localhost:3002/alice/>.
@prefix appexample: <http://localhost:3002/app-example/>.
@prefix alice-authorization: <http://localhost:3002/alice/authorization/>.
@prefix alice-agents: <http://localhost:3002/alice/agents/>.
@prefix pm-shapetrees: <http://data.example/shapetrees/pm#>.

alice-authorization:aDataConsent
a interop:DataConsent ;
interop:dataOwner alice: ;
interop:grantee appexample: ;
interop:registeredShapeTree pm-shapetrees:ProjectTree ;
interop:accessMode acl:Read, acl:Create ;
interop:creatorAccessMode acl:Update, acl:Delete ;
interop:scopeOfConsent interop:All ;
interop:satisfiesAccessNeed appexample: .
19 changes: 19 additions & 0 deletions data/alice/authorization/anAccessConsent$.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 alice: <http://localhost:3002/alice/>.
@prefix appcreatorexample: <https://appcreator.example/>.
@prefix appexample: <http://localhost:3002/app-example/profile/card#me>.
@prefix alice-authorization: <http://localhost:3002/alice/authorization/>.


alice-authorization:anAccessConsent
a interop:AccessConsent ;
interop:grantedBy alice: ;
interop:grantedWith appcreatorexample: ;
interop:grantedAt "2020-09-05T06:15:01Z"^^xsd:dateTime ;
interop:grantee appexample: ;
interop:hasAccessNeedGroup appexample: ;
interop:hasDataConsent
alice-authorization:aDataConsent .
20 changes: 20 additions & 0 deletions data/alice/profile/card$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@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 alice: <http://localhost:3002/alice/>.

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


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

interop:hasRegistrySet alice:registries;
interop:hasAuthorizationAgent auth-agent:.
19 changes: 19 additions & 0 deletions data/alice/profile/card.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ACL resource for the WebID profile document
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

# The WebID profile is readable by the public.
# This is required for discovery and verification,
# e.g. when checking identity providers.
<#public>
a acl:Authorization;
acl:agentClass foaf:Agent;
acl:accessTo <./card>;
acl:mode acl:Read.

# The owner has full access to the profile
<#owner>
a acl:Authorization;
acl:agent <http://localhost:3002/alice/profile/card#me>;
acl:accessTo <./card>;
acl:mode acl:Read, acl:Write, acl:Control.
8 changes: 8 additions & 0 deletions data/alice/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 alice: <http://localhost:3002/alice/>.

alice:registries
a interop:RegistrySet;
interop:hasAgentRegistry alice:agents\/ ;
interop:hasAccessConsentRegistry alice:authorization\/ ;
interop:hasDataRegistry alice:data\/.
27 changes: 27 additions & 0 deletions data/app-example/.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Root ACL resource for the agent account
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

# The homepage is readable by the public
<#public>
a acl:Authorization;
acl:agentClass foaf:Agent;
acl:accessTo <./>;
acl:default <./>;
acl:mode acl:Read.

# The owner has full access to every resource in their pod.
# Other agents have no access rights,
# unless specifically authorized in other .acl resources.
<#owner>
a acl:Authorization;
acl:agent <http://localhost:3002/app-example/profile/card#me>;
# Optional owner email, to be used for account recovery:
acl:agent <mailto:app@digita.ai>;
# Set the access to the root storage folder itself
acl:accessTo <./>;
# All resources will inherit this authorization, by default

# The owner has all of the access modes allowed
acl:mode
acl:Read, acl:Write, acl:Control.
1 change: 1 addition & 0 deletions data/app-example/.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://localhost:3002/app-example/> a <http://www.w3.org/ns/pim/space#Storage>.
22 changes: 22 additions & 0 deletions data/app-example/README$.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Welcome to your pod

## A place to store your data
Your pod is a **secure storage space** for your documents and data.
<br>
You can choose to share those with other people and apps.

As the owner of this pod,
identified by <a href="http://localhost:3002/app-example/profile/card#me">http://localhost:3002/app-example/profile/card#me</a>,
you have access to all of your documents.

## Working with your pod
The easiest way to interact with pods
is through Solid apps.
<br>
For example,
you can open your pod in [Databrowser](https://solid.github.io/mashlib/dist/browse.html?uri=http://localhost:3002/app-example/).

## Learn more
The [Solid website](https://solidproject.org/)
and the people on its [forum](https://forum.solidproject.org/)
will be glad to help you on your journey.
14 changes: 14 additions & 0 deletions data/app-example/README.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

<#public>
a acl:Authorization;
acl:accessTo <./README>;
acl:agentClass foaf:Agent;
acl:mode acl:Read.

<#owner>
a acl:Authorization;
acl:accessTo <./README>;
acl:agent <http://localhost:3002/app-example/profile/card#me>;
acl:mode acl:Read, acl:Write, acl:Control.
27 changes: 27 additions & 0 deletions data/app-example/access-en$.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@prefix interop: <http://www.w3.org/ns/solid/interop#> .
@prefix projectron: <https://projectron.example/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<>
a interop:AccessDescriptionSet ;
interop:usesLanguage "en"^^xsd:language .

<#en-need-group-pm>
a interop:AccessNeedGroupDescription ;
interop:inAccessDescriptionSet <> ;
interop:hasAccessNeedGroup projectron:need-group-pm ;
skos:prefLabel "Read and Contribute to Projects"@en ;
skos:description "Allow Projectron to read the Projects you select, and create new ones. Projectron won't modify existing data, but can add more."@en .

<#en-need-project>
a interop:AccessNeedDescription ;
interop:inAccessDescriptionSet <> ;
interop:hasAccessNeed projectron:need-project ;
skos:prefLabel "Access to Projects is essential for Projectron to perform its core function of Project Management"@en .

<#en-need-task>
a interop:AccessNeedDescription ;
interop:inAccessDescriptionSet <> ;
interop:hasAccessNeed projectron:need-task ;
skos:prefLabel "Access to Tasks allows Projectron to identify and manage the work to be done in a given Project."@en .
54 changes: 54 additions & 0 deletions data/app-example/data/img/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading