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

Commit d45a512

Browse files
authored
Merge branch 'master' into patch-1
2 parents f17e084 + 103b1e0 commit d45a512

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

api-rest.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ Slug: data
236236
HTTP/1.1 201 Created
237237
```
238238

239+
### Deleting containers
240+
A container can only be deleted if it contains no resources.
241+
239242
### Creating documents (files)
240243

241244
To create a new resource, the `Link` header value must be set to the following
@@ -269,10 +272,10 @@ More examples can be found in the LDP [Primer document](http://www.w3.org/TR/ldp
269272

270273
#### HTTP `PUT` to create
271274

272-
An alternative (though not standard) way of creating new resources is to use
275+
An alternative (though not common) way of creating new resources is to use
273276
HTTP `PUT`. Although HTTP `PUT` is commonly used to overwrite resources, this way is
274-
usually preferred when creating new non-RDF resources (i.e., using a MIME type
275-
other than `text/turtle`).
277+
usually preferred when creating new non-RDF resources (i.e., using a different MIME
278+
type than `text/turtle`).
276279

277280
**REQUEST**
278281

@@ -409,3 +412,11 @@ Allow: OPTIONS, HEAD, GET, PATCH, POST
409412
MS-Author-Via: SPARQL
410413
411414
```
415+
416+
### WAC-Allow headers
417+
Servers SHOULD send a WAC-Allow response header on HEAD and GET, with a value like:
418+
419+
```http
420+
WAC-Allow: user="read write append control",public="read"
421+
```
422+
In general, the format is `user="` + user-permissions = `",public="` + public-permissions + `"`. User-permissions and public-permissions should both be space-separated lists, containing a subset of ['read', 'write', 'append', 'control']. If 'write' is present then 'append' should also be present.

api-websockets.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ versioned as a whole.
88

99
Live updates are currently only supported through WebSockets. This describes a
1010
subscription mechanism through which clients can be notified in real time of
11-
changes affecting a give resource.
11+
changes affecting a given resource.
1212

1313
The PubSub system is very basic. Clients only need to open a WebSocket
1414
connection and *sub*(scribe) to a given resource URI. If any change occurs in
1515
that resource, a *pub*(lish) event will be sent to all the subscribed clients.
1616

1717
The WebSocket server URI is the same for any resource located on a given data
1818
space (same hostname). To discover the URI of the WebSocket server, clients can
19-
send an HTTP OPTIONS. The server will then include an `Updates-Via` header in
19+
send an HTTP OPTIONS request. The server will then include an `Updates-Via` header in
2020
the response:
2121

2222
REQUEST:
@@ -49,6 +49,8 @@ space and the URI of the resource that has changed:
4949
pub https://example.org/data/test
5050
```
5151

52+
Only absolute URIs should be used in both the `sub` and the `pub` message.
53+
5254
Subscribing to a container can also be really useful, since all CRUD operations
5355
(POST, PUT, PATCH, DELETE) performed on resources of that container will trigger
5456
a notification for the container URI. This makes synchronization between

content-representation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Our motivation is threefold:
4242
even though the resource is stored as a Turtle file).
4343

4444
3. Direct mapping: the URLs map directly to the file system resources -- i.e.
45-
`https://example.org/test.ttl` maps to `/home/user/www/test.ttl`
45+
`https://example.org/avatar.png` maps to `/home/user/www/avatar.png`
4646

4747
Servers must support the HEAD method for reading data. This returns a list of
4848
headers related to the resource in question. Among these headers, two very

recommendations-server.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ space#preferencesFile](http://www.w3.org/ns/pim/space#preferencesFile) property.
4949

5050
```ttl
5151
<#me>
52-
<http://www.w3.org/ns/pim/space#preferencesFile> <../settings/preferences.ttl> ;
52+
<http://www.w3.org/ns/pim/space#preferencesFile> <../settings/preferences> ;
5353
```
5454

5555
##### `/inbox/` (Inbox)
@@ -75,29 +75,29 @@ clients).
7575

7676
**1)** When the `Origin` header is set:
7777

78-
1. Client (browser) loads an app from `https://app.org` and wants to send an XHR
79-
(ajax) request to the server at `https://example.org`. Before sending the
78+
1. Client (browser) loads an app from `https://app.example` and wants to send an XHR
79+
(ajax) request to the server at `https://server.example`. Before sending the
8080
request over the wire, the browser adds the `Origin` header: `Origin:
81-
https://app.org`, which corresponds to the domain from where the app was loaded.
81+
https://app.example`, which corresponds to the domain from where the app was loaded.
8282

83-
2. The server running on https://example.org receives the request and looks at the
84-
`Origin` header. It sees `https://app.org`, stores the value and handles the
83+
2. The server running on `https://server.example` receives the request and looks at the
84+
`Origin` header. It sees `https://app.example`, stores the value and handles the
8585
request.
8686

8787
3. The server responds to the request and sets the value of the request `Origin`
8888
header to the CORS header in the HTTP response:
8989

9090
```http
91-
Access-Control-Allow-Origin: https://app.org
91+
Access-Control-Allow-Origin: https://app.example
9292
```
9393

9494
**2)** Without an `Origin` header:
9595

96-
1. A curl request is sent from the terminal to `https://example.org`. Unless
96+
1. A curl request is sent from the terminal to `https://server.example`. Unless
9797
explicitly specified though a curl parameter, the `Origin` header will not be
9898
set.
9999

100-
2. The server running on `https://example.org` receives the request and does not
100+
2. The server running on `https://server.example` receives the request and does not
101101
find an `Origin` header.
102102

103103
3. The server responds to the request and sets a default "all" value for the

solid-webid-profiles.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ across several RDF documents:
146146

147147
* `/profile/card` - their primary (public-readable) WebID Profile.
148148
Which would contain a `space:preferencesFile` link to:
149-
* `/settings/prefs.ttl` - a private (only the user has read/write access)
149+
* `/settings/preferences` - a private (only the user has read/write access)
150150
Preferences file which contains further profile-related statements.
151151

152152
### Extended Profile
@@ -282,16 +282,16 @@ For example, a link to the Listed Type Index in the main profile document:
282282
<#me>
283283
a foaf:Person ;
284284
<http://www.w3.org/ns/solid/terms#publicTypeIndex>
285-
</settings/publicTypeIndex.ttl> .
285+
</settings/publicTypeIndex> .
286286
```
287287

288288
And an example corresponding link to the Unlisted Type Index, in a private
289289
resources of the Extended Profile, such as the Preferences file
290-
(in `/settings/prefs.ttl`):
290+
(in `/settings/preferences`):
291291

292292
```ttl
293293
# ...
294294
<#me>
295295
<http://www.w3.org/ns/solid/terms#privateTypeIndex>
296-
</settings/privateTypeIndex.ttl> .
296+
</settings/privateTypeIndex> .
297297
```

0 commit comments

Comments
 (0)