Skip to content

Issue 14 circular imports #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/ruby-rdf/json-ld.git
revision: afe7b3b10547b552676d1379a2be4bc34cf83d02
revision: 6bb0c2d269e8cf80152d519ee5fd16696812b1f2
branch: develop
specs:
json-ld (3.0.2)
Expand All @@ -12,7 +12,7 @@ GIT
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
bcp47 (0.3.3)
i18n
Expand All @@ -31,7 +31,7 @@ GEM
hamster (3.0.0)
concurrent-ruby (~> 1.0)
htmlentities (4.3.4)
i18n (1.5.1)
i18n (1.5.3)
concurrent-ruby (~> 1.0)
json-ld-preloaded (3.0.2)
json-ld (~> 3.0)
Expand Down Expand Up @@ -73,14 +73,14 @@ GEM
multi_json (1.13.1)
net-http-persistent (3.0.0)
connection_pool (~> 2.2)
nokogiri (1.10.0)
nokogiri (1.10.1)
mini_portile2 (~> 2.4.0)
nokogumbo (1.5.0)
nokogiri
public_suffix (3.0.3)
rack (2.0.6)
rake (12.3.2)
rdf (3.0.9)
rdf (3.0.10)
hamster (~> 3.0)
link_header (~> 0.0, >= 0.0.8)
rdf-aggregate-repo (2.2.1)
Expand Down Expand Up @@ -126,7 +126,7 @@ GEM
rdf-turtle (~> 3.0, >= 3.0.3)
rdf-trix (2.2.1)
rdf (>= 2.2, < 4.0)
rdf-turtle (3.0.3)
rdf-turtle (3.0.5)
ebnf (~> 1.1)
rdf (~> 3.0)
rdf-vocab (3.0.4)
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'bundler/setup'
task default: :test

desc "Test examples in spec files"
Expand Down
19 changes: 16 additions & 3 deletions common/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@
Whenever possible, an <a>edge</a> should be labeled with an <a>IRI</a>.
<div class="issue atrisk">The use of <a>blank node identifiers</a> to label properties is obsolete,
and may be removed in a future version of JSON-LD.</div></dd>
<dt><dfn>embedded context</dfn></dt><dd>
An embedded <a>context</a> is a <a>dictionary</a> composed of a combintation of
<a>term definitions</a>, a <a>vocabulary mapping</a>, a <a>base IRI</a> and <a>default language</a>.
An <a>embedded context</a> may appear as part of a <a>node object</a> or <a>value object</a> using the
<code>@context</code> <a>member</a>.
</dd>
<dt><dfn>scoped context</dfn></dt><dd>
A <a>scoped context</a> is part of an <a>expanded term definition</a> using the
<code>@context</code> <a>member</a>. It has the same form as an <a>embedded context</a>.
</dd>
<dt><dfn>expanded term definition</dfn></dt><dd>
An expanded term definition is a <a>term definition</a>
where the value is a <a>dictionary</a>
Expand Down Expand Up @@ -150,7 +160,8 @@
is a <a>graph object</a> which does not have an <code>@id</code> <a>member</a>.
Note that <a>node objects</a> may have a <code>@graph</code> member,
but are not considered <a>graph objects</a> if they include any other <a>members</a>.
A top-level object consisting of <code>@graph</code> is also not a <a>graph object</a>.</dd>
A top-level object consisting of <code>@graph</code> is also not a <a>graph object</a>.
Note that a <a>node object</a> may also represent a <a>named graph</a> it it includes other properties.</dd>
<dt><dfn>index map</dfn></dt><dd>
An <a>index map</a> is a <a>dictionary</a> value of a <a>term</a>
defined with <code>@container</code> set to <code>@index</code>,
Expand Down Expand Up @@ -212,7 +223,8 @@
A <a>list</a> is an ordered sequence of <a>IRIs</a>, <a>blank nodes</a>, and <a>JSON-LD values</a>.
See <dfn data-cite="RDF-SCHEMA#ch_collectionvocab" data-lt="collection" class="preserve">RDF collection</dfn> in [[RDF-SCHEMA]].</dd>
<dt><dfn>list object</dfn></dt><dd>
A <a>list object</a> is a <a>dictionary</a> that has a <code>@list</code> key.</dd>
A <a>list object</a> is a <a>dictionary</a> that has a <code>@list</code> key.
It may also have an <code>@index</code> key, but no other members.</dd>
<dt><dfn>literal</dfn></dt><dd>
An <a>object</a> expressed as a value such as a string, number or in expanded form.</dd>
<dt><dfn>local context</dfn></dt><dd>
Expand Down Expand Up @@ -294,7 +306,8 @@
are resolved relative to the <a>vocabulary mapping</a>,
not the <a>base IRI</a>.</dd>
<dt><dfn>set object</dfn></dt><dd>
A <a>set object</a> is a <a>dictionary</a> that has an <code>@set</code> <a>member</a>.</dd>
A <a>set object</a> is a <a>dictionary</a> that has an <code>@set</code> <a>member</a>.
It may also have an <code>@index</code> key, but no other members.</dd>
<dt><dfn>subject</dfn></dt><dd>
A <a data-cite="RDF11-CONCEPTS#dfn-subject" class="externalDFN">subject</a>
is a <a>node</a> in a <a>linked data graph</a>
Expand Down
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,9 @@ <h3>Algorithm</h3>
characters are treated in URI references, per
<a data-cite="RFC3987#section-6.5">section 6.5</a>
of [[RFC3987]].</li>
<li>If <var>context</var> is in the <var>remote contexts</var> array, a
<a data-link-for="JsonLdErrorCode">recursive context inclusion</a>
<li>If the number of entries in the <var>remote contexts</var> array
exceeds a processor defined limit, a
<a data-link-for="JsonLdErrorCode">context overflow</a>
error has been detected and processing is aborted;
otherwise, add <var>context</var> to <var>remote contexts</var>.</li>
<li class="changed">If <var>context</var> was previously dereferenced,
Expand Down Expand Up @@ -5437,7 +5438,7 @@ <h4>JsonLdErrorCode</h4>
"loading remote context failed",
"multiple context link headers",
"processing mode conflict",
"recursive context inclusion"
"context overflow"
};
--></pre>

Expand Down Expand Up @@ -5551,8 +5552,8 @@ <h4>JsonLdErrorCode</h4>
<dt><dfn>processing mode conflict</dfn></dt>
<dd>An attempt was made to change the <a>processing mode</a>
which is incompatible with the previous specified version.</dd>
<dt><dfn>recursive context inclusion</dfn></dt>
<dd>A cycle in remote context inclusions has been detected.</dd>
<dt><dfn>context overflow</dfn></dt>
<dd>maximum number of <code>@context</code> URLs exceeded.</dd>
</dl>
</section>
</section> <!-- end of Error Handling -->
Expand Down Expand Up @@ -5680,6 +5681,8 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
or all <a>JSON-LD script elements</a>.</li>
<li>Added <a data-link-for="RemoteDocument">contentType</a> field to <a>RemoteDocument</a>.</li>
<li>Added support for sealed <a>contexts</a> and <a>term definitions</a>.</li>
<li>Because scoped contexts can lead to contexts being reloaded, replace the
<strong>recursive context inclusion</strong> error with a <a data-link-for="JsonLdErrorCode">context overflow</a> error.</li>
</ul>
</section>

Expand Down
6 changes: 4 additions & 2 deletions tests/expand-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -932,14 +932,16 @@
"name": "A context may not include itself recursively (direct)",
"purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself",
"input": "expand/e002-in.jsonld",
"expect": "recursive context inclusion"
"expect": "recursive context inclusion",
"option": {"specVersion": "json-ld-1.0"}
}, {
"@id": "#te003",
"@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
"name": "A context may not include itself recursively (indirect)",
"purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself indirectly",
"input": "expand/e003-in.jsonld",
"expect": "recursive context inclusion"
"expect": "recursive context inclusion",
"option": {"specVersion": "json-ld-1.0"}
}, {
"@id": "#te004",
"@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
Expand Down