You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 01-tree-specification.bs
-114
Original file line number
Diff line number
Diff line change
@@ -284,118 +284,4 @@ A <code>tree:path</code> can indicate the time predicate which is intended.
284
284
```
285
285
</div>
286
286
287
-
# Compatibility # {#compatibility}
288
-
289
-
## Hydra ## {#hydra}
290
-
291
-
A <code>tree:Collection</code> is compatible with the [Hydra Collections specification](https://www.hydra-cg.com/spec/latest/core/#collections). However, instead of <code>hydra:view</code>, we use <code>tree:view</code> and do not link to a <code>hydra:PartialCollectionView</code> but to a <code>tree:Node</code>.
292
-
A <code>hydra:Collection</code> can thus also be extended with a <code>tree:shape</code> and <code>tree:view</code>.
293
-
When this is done, also <code>hydra:member</code> can be used instead of <code>tree:member</code>.
294
-
295
-
<code>hydra:totalItems</code> can be used to indicate the total amount of elements in the collection.
296
-
Hydra paging controls such as <code>hydra:next</code> and <code>hydra:previous</code> are semantically equivalent to a <code>tree:Relation</code> element that only contains a <code>tree:node</code> property.
297
-
298
-
## Activity Streams 2.0 ## {#activitystreams}
299
-
300
-
A <code>tree:Collection</code> is also compatible with [[!activitystreams-core]]’s specification of [paged collections](https://www.w3.org/TR/activitystreams-core/#collections).
301
-
Instead of <code>dcterms:isPartOf</code>, also <code>as:partOf</code> can be used to indicate that the current page is part of the full collection.
302
-
While Hydra and TREE link to the members of the collection by using the specific collection as a subject, Activity Streams 2.0 (AS) indicates a member starting from the page URL.
303
-
Therefore, when using AS collections, a client implementation should gather the members from the <code>tree:Node</code> or <code>as:CollectionPage</code> instead.
304
-
305
-
<code>as:totalItems</code> can be used to indicate the total amount of elements in the collection.
306
-
307
-
AS paging controls such as <code>as:next</code>and <code>as:previous</code> are semantically equivalent to a <code>tree:Relation</code> element that only contains a <code>tree:node</code> property.
308
-
309
-
## LDP Containers ## {#ldp}
310
-
311
-
In [[!LDP]], the <code>tree:view</code> can be applied on top of the <code>ldp:Container</code> instance.
312
-
Members can be found through <code>ldp:contains</code>, and/or through the indirect <code>ldp:membershipResource</code> and <code>ldp:hasMemberRelation</code> or <code>ldp:isMemberOfRelation</code> construct.
313
-
314
-
If this container is paged by the [[!ldp-paging]] (chapter 7) spec, then this MUST be ignored.
315
-
316
-
If there is an ordering, this MUST be ignored by TREE clients (the relations contain all necessary information for pruning).
317
-
318
-
## Shape trees ## {#shapetrees}
319
-
320
-
[The Shape Trees specification](https://shapetrees.org/TR/specification/) is specifically built to work within existing ecosystems.
321
-
As it was conceived to interoperate with LDP, the term Container in the Shape Trees spec can also be interpreted as a <code>tree:Collection</code>.
322
-
Shape Trees can help in the source selection of what specific <code>tree:Collection</code> to pick for your goal, and may add hierarchies to a set of <code>tree:Collection</code>s.
323
-
A client MAY infer a <code>tree:shape</code> of the collection through the <code>st:validatedBy</code> property of the Shapes Tree.
324
-
325
-
An example of a collection using Shape Tree terms. In this example a sensor with some observations is validated by using a [Shape Expressions](http://shex.io/shex-semantics/) (ShEx) file.
A <code>tree:Collection</code> is compatible with the [Hydra Collections specification](https://www.hydra-cg.com/spec/latest/core/#collections). However, instead of <code>hydra:view</code>, we use <code>tree:view</code> and do not link to a <code>hydra:PartialCollectionView</code> but to a <code>tree:Node</code>.
6
+
A <code>hydra:Collection</code> can thus also be extended with a <code>tree:shape</code> and <code>tree:view</code>.
7
+
When this is done, also <code>hydra:member</code> can be used instead of <code>tree:member</code>.
8
+
9
+
<code>hydra:totalItems</code> can be used to indicate the total amount of elements in the collection.
10
+
Hydra paging controls such as <code>hydra:next</code> and <code>hydra:previous</code> are semantically equivalent to a <code>tree:Relation</code> element that only contains a <code>tree:node</code> property.
11
+
12
+
## Activity Streams 2.0 ## {#activitystreams}
13
+
14
+
A <code>tree:Collection</code> is also compatible with [[!activitystreams-core]]’s specification of [paged collections](https://www.w3.org/TR/activitystreams-core/#collections).
15
+
Instead of <code>dcterms:isPartOf</code>, also <code>as:partOf</code> can be used to indicate that the current page is part of the full collection.
16
+
While Hydra and TREE link to the members of the collection by using the specific collection as a subject, Activity Streams 2.0 (AS) indicates a member starting from the page URL.
17
+
Therefore, when using AS collections, a client implementation should gather the members from the <code>tree:Node</code> or <code>as:CollectionPage</code> instead.
18
+
19
+
<code>as:totalItems</code> can be used to indicate the total amount of elements in the collection.
20
+
21
+
AS paging controls such as <code>as:next</code>and <code>as:previous</code> are semantically equivalent to a <code>tree:Relation</code> element that only contains a <code>tree:node</code> property.
22
+
23
+
## LDP Containers ## {#ldp}
24
+
25
+
In [[!LDP]], the <code>tree:view</code> can be applied on top of the <code>ldp:Container</code> instance.
26
+
Members can be found through <code>ldp:contains</code>, and/or through the indirect <code>ldp:membershipResource</code> and <code>ldp:hasMemberRelation</code> or <code>ldp:isMemberOfRelation</code> construct.
27
+
28
+
If this container is paged by the [[!ldp-paging]] (chapter 7) spec, then this MUST be ignored.
29
+
30
+
If there is an ordering, this MUST be ignored by TREE clients (the relations contain all necessary information for pruning).
31
+
32
+
## Shape trees ## {#shapetrees}
33
+
34
+
[The Shape Trees specification](https://shapetrees.org/TR/specification/) is specifically built to work within existing ecosystems.
35
+
As it was conceived to interoperate with LDP, the term Container in the Shape Trees spec can also be interpreted as a <code>tree:Collection</code>.
36
+
Shape Trees can help in the source selection of what specific <code>tree:Collection</code> to pick for your goal, and may add hierarchies to a set of <code>tree:Collection</code>s.
37
+
A client MAY infer a <code>tree:shape</code> of the collection through the <code>st:validatedBy</code> property of the Shapes Tree.
38
+
39
+
An example of a collection using Shape Tree terms. In this example a sensor with some observations is validated by using a [Shape Expressions](http://shex.io/shex-semantics/) (ShEx) file.
0 commit comments