Skip to content

Commit fe99d40

Browse files
committed
Make examples clearer.
Fixes #248.
1 parent 4b7fab0 commit fe99d40

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

index.html

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4694,9 +4694,10 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
46944694
"@context": {
46954695
"@base": "http://example1.com/",
46964696
"@vocab": "http://example2.com/",
4697-
"fred": {"@type": "@vocab"}
4697+
"knows": {"@type": "@vocab"}
46984698
},
4699-
"fred": [
4699+
"@id": "fred",
4700+
"knows": [
47004701
{"@id": "barney", "mnemonic": "the sidekick"},
47014702
"barney"
47024703
]
@@ -4708,15 +4709,13 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47084709
data-result-for="Term expansion for values, not identifiers-compacted">
47094710
<!--
47104711
[{
4711-
"http://example2.com/fred": [
4712-
{
4713-
"@id": "http://example1.com/barney",
4714-
"http://example2.com/mnemonic": [{"@value": "the sidekick"}]
4715-
},
4716-
{
4717-
"@id": "http://example2.com/barney"
4718-
}
4719-
]
4712+
"@id": "http://example1.com/fred",
4713+
"http://example2.com/knows": [{
4714+
"@id": "http://example1.com/barney",
4715+
"http://example2.com/mnemonic": [{"@value": "the sidekick"}]
4716+
}, {
4717+
"@id": "http://example2.com/barney"
4718+
}]
47204719
}]
47214720
-->
47224721
</pre>
@@ -4726,8 +4725,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47264725
<thead><tr><th>Subject</th><th>Property</th><th>Value</th></tr></thead>
47274726
<tbody>
47284727
<tr><td>http://example1.com/barney</td><td>http://example2.com/mnemonic</td><td>the sidekick</td></tr>
4729-
<tr><td>_:b0</td><td>http://example2.com/fred</td><td>http://example1.com/barney</td></tr>
4730-
<tr><td>_:b0</td><td>http://example2.com/fred</td><td>http://example2.com/barney</td></tr>
4728+
<tr><td>http://example1.com/fred</td><td>http://example2.com/knows</td><td>http://example1.com/barney</td></tr>
4729+
<tr><td>http://example1.com/fred</td><td>http://example2.com/knows</td><td>http://example2.com/barney</td></tr>
47314730
</tbody>
47324731
</table>
47334732
<pre class="turtle"
@@ -4742,7 +4741,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47424741

47434742
ex1:barney ex2:mnemonic "the sidekick" .
47444743

4745-
[ ex2:fred ex2:barney, ex1:barney] .
4744+
ex1:fred ex2:knows ex1:barney, ex2:barney .
47464745
-->
47474746
</pre>
47484747
</aside>
@@ -4765,7 +4764,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47654764
of <code>@vocab</code> illustrates the behavior of interpreting "barney" relative to the document:</p>
47664765

47674766

4768-
<aside class="example ds-selector-tabs changed"
4767+
<aside class="example ds-selector-tabs"
47694768
title="Terms not expanded when document-relative">
47704769
<div class="selectors">
47714770
<button class="selected" data-selects="compacted">Compacted (Input)</button>
@@ -4780,9 +4779,10 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47804779
"@context": {
47814780
"@base": "http://example1.com/",
47824781
"@vocab": "http://example2.com/",
4783-
"fred": {"@type": "@id"}
4782+
"knows": {"@type": "@id"}
47844783
},
4785-
"fred": [
4784+
"@id": "fred",
4785+
"knows": [
47864786
{"@id": "barney", "mnemonic": "the sidekick"},
47874787
"barney"
47884788
]
@@ -4794,15 +4794,13 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
47944794
data-result-for="Terms not expanded when document-relative-compacted">
47954795
<!--
47964796
[{
4797-
"http://example2.com/fred": [
4798-
{
4799-
"@id": "http://example1.com/barney",
4800-
"http://example2.com/mnemonic": [{"@value": "the sidekick"}]
4801-
},
4802-
{
4803-
"@id": "http://example1.com/barney"
4804-
}
4805-
]
4797+
"@id": "http://example1.com/fred",
4798+
"http://example2.com/knows": [{
4799+
"@id": "http://example1.com/barney",
4800+
"http://example2.com/mnemonic": [{"@value": "the sidekick"}]
4801+
}, {
4802+
"@id": "http://example1.com/barney"
4803+
}]
48064804
}]
48074805
-->
48084806
</pre>
@@ -4818,7 +4816,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
48184816

48194817
ex1:barney ex2:mnemonic "the sidekick" .
48204818

4821-
[] ex2:fred ex1:barney, ex1:barney .
4819+
ex1:fred ex2:knows, ex1:barney .
48224820
-->
48234821
</pre>
48244822
</aside>
@@ -4831,7 +4829,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
48314829
to be applied to keys which are not represented as a simple <a>term</a>.
48324830
For example:</p>
48334831

4834-
<aside class="example ds-selector-tabs changed"
4832+
<aside class="example ds-selector-tabs"
48354833
title="Term definitions using compact and absolute IRIs">
48364834
<div class="selectors">
48374835
<button class="selected" data-selects="compacted">Compacted (Input)</button>

0 commit comments

Comments
 (0)