Skip to content

Commit f4dc0b8

Browse files
authored
Update ERRATA.md to note lack of aliases for @type and @id
The section on Compact URIs mentions how prefixes work. It incorrectly uses the `type` and `id` aliases for `@type` and `@id` when the Activity Streams 2.0 context has not been included. This patch will update the ERRATA to note this error and provide corrected example code and text.
1 parent a03d00c commit f4dc0b8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

ERRATA.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ This document includes errata for the [Activity Streams](https://www.w3.org/TR/a
44

55
## Activity Streams
66

7-
- None yet reported.
7+
- Example 29 uses `id` as an alias for the `@id` property even though the Activity Streams 2.0 context has not been used, so that alias is not set up. The correct code would be:
8+
9+
```json
10+
{
11+
"@context": {
12+
"ex": "http://example.org/",
13+
"term": {
14+
"@type": "@id",
15+
"@id": "ex:term"
16+
}
17+
},
18+
"term": "ex:Foo"
19+
}
20+
```
21+
22+
- Section 5.1 incorrectly refers to the `id` alias for the `@id` property, and the `type` alias of the `@type` property. Paragraph 4 should read, in part, ''In JSON-LD, Compact URI expansion of values applies to properties explicitly defined as "@type": "@id" in the @context definition.''
823

924
## Activity Vocabulary
1025

0 commit comments

Comments
 (0)