Skip to content

Commit

Permalink
couple of changes:
Browse files Browse the repository at this point in the history
adding settings dir with typeIndexes and preferencesFile
moving inbox into /storage/
  • Loading branch information
ylebre committed Dec 24, 2020
1 parent 685da20 commit 69b9f8e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/fixtures/foaf.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
xmlns:space="http://www.w3.org/ns/pim/space#"
>
<foaf:Person rdf:ID="me">
<ldp:inbox rdf:resource="/inbox/"/>
<ldp:inbox rdf:resource="/storage/inbox/"/>
<solid:account rdf:resource="/account/"/>
<space:storage rdf:resource="/storage/"/>
<solid:privateTypeIndex rdf:resource="/settings/privateTypeIndex.ttl"/>
<solid:publicTypeIndex rdf:resource="/settings/publicTypeIndex.ttl"/>
<space:preferencesFile rdf:resource="/settings/preferencesFile.ttl"/>
<solid:privateTypeIndex rdf:resource="/storage/settings/privateTypeIndex.ttl"/>
<solid:publicTypeIndex rdf:resource="/storage/settings/publicTypeIndex.ttl"/>
<space:preferencesFile rdf:resource="/storage/settings/preferencesFile.ttl"/>
<rdf:type rdf:resource="http://schema.org/Person"/>
<foaf:depiction rdf:resource="https://www.gravatar.com/avatar/f8d7c4a4899736c59ec1e40c7021d477?s=1024"/>
<foaf:family_name>Peachey</foaf:family_name>
Expand Down
28 changes: 28 additions & 0 deletions tests/fixtures/storage/settings/.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# ACL resource for the /settings/ container
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

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

<#owner>
a acl:Authorization;

acl:agent
<https://localhost/profile/card#me>;

# Set the access to the root storage folder itself
acl:accessTo <./>;

# All settings resources will be private, by default, unless overridden
acl:default <./>;

# The owner has all of the access modes allowed
acl:mode
acl:Read, acl:Write, acl:Control.

# Private, no public access modes
12 changes: 12 additions & 0 deletions tests/fixtures/storage/settings/preferencesFile.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@prefix : <#>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix c: </profile/card#>.
@prefix terms: <http://www.w3.org/ns/solid/terms#>.
@prefix n0: <http://xmlns.com/foaf/0.1/>.
@prefix sp: <http://www.w3.org/ns/pim/space#>.

c:me
a terms:Developer;
terms:privateTypeIndex <privateTypeIndex.ttl>;
terms:publicTypeIndex <publicTypeIndex.ttl>;
<> a sp:ConfigurationFile; dct:title "Preferences file".
4 changes: 4 additions & 0 deletions tests/fixtures/storage/settings/privateTypeIndex.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
<>
a solid:TypeIndex ;
a solid:UnlistedDocument.
5 changes: 5 additions & 0 deletions tests/fixtures/storage/settings/publicTypeIndex.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@prefix : <#>.
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
@prefix schem: <http://schema.org/>.

<> a solid:ListedDocument, solid:TypeIndex.

0 comments on commit 69b9f8e

Please sign in to comment.