Skip to content

Commit 8708b75

Browse files
committed
fix: apply errata for issue #505, incorrectly using type and id aliases in JSON-LD-only examples
1 parent 2144404 commit 8708b75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,11 +1773,11 @@ <h2>Support for Compact URIs</h2>
17731773
<figure><figcaption>A JSON-LD Compact URI definition</figcaption>
17741774
<pre class="example highlight json">{
17751775
"@context": {
1776-
"ex": "http://example.org/",
1777-
"term": {
1778-
"@type": "id",
1779-
"@id": "ex:term"
1780-
}
1776+
"ex": "http://example.org/",
1777+
"term": {
1778+
"@type": "@id",
1779+
"@id": "ex:term"
1780+
}
17811781
},
17821782
"term": "ex:Foo"
17831783
}</pre></figure>
@@ -1791,7 +1791,7 @@ <h2>Support for Compact URIs</h2>
17911791

17921792
<p>
17931793
In JSON-LD, Compact URI expansion of <em>values</em> applies to
1794-
properties explicitly defined as <code>"type": "id"</code> in the
1794+
properties explicitly defined as <code>"@type": "@id"</code> in the
17951795
<code>@context</code> definition. Specifically, Compact URIs can be used
17961796
anywhere an IRI (or URI) value is expected.
17971797
</p>

0 commit comments

Comments
 (0)