Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit cb6dd72

Browse files
committed
one more example of acl pattern matching
1 parent 9b00a02 commit cb6dd72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

acl-inheritance.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,21 @@ This should not stop one. Regexes are already standardised by the W3C in RDF via
121121
acl:agentClass foaf:Agent .
122122
```
123123

124+
This should be read as saying that everybody can read all resources that match the pattern "*.acl" in the current directory, and for which this is an acl through wac:include chain from the resource's acl. (in this case this is a rule on acls)
125+
126+
To allow all files to be writeable by the owner in this folder and sub-folders one could use
127+
128+
```Turtle
129+
[] acl:accessToClass [ acl:urlPattern [ acl:base <.>; acl:match "**" ]];
130+
acl:mode acl:Read;
131+
acl:agent </card#i> .
132+
```
133+
134+
assuming of course the user's WebID is </card#i> .
135+
Note again that the `acl:urlPattern` gives a class that is larger than the class of resources for which this is true, as the only resources for which that rule is valid are those whose acls link to the acl in which this is written.
136+
137+
138+
124139
The advantage of such a pattern language is that it allows the pattern to be relative to a resource, and so to be written out even for a client that does not know the full url of the resource.
125140

126141

0 commit comments

Comments
 (0)