Skip to content

Commit 30acbf1

Browse files
committed
Add note on asymmetry of reverse properties in frames.
Fixes #5.
1 parent 91c4fc2 commit 30acbf1

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: git://github.com/ruby-rdf/json-ld.git
3-
revision: b74e49d3ecfc9e139ea3c60c0f700e9d2d844b20
3+
revision: d4556f730a9b97a739d9d30f601b8e8ddbe55cd4
44
branch: develop
55
specs:
66
json-ld (3.0.2)
@@ -29,7 +29,7 @@ GEM
2929
hamster (3.0.0)
3030
concurrent-ruby (~> 1.0)
3131
htmlentities (4.3.4)
32-
i18n (1.1.0)
32+
i18n (1.1.1)
3333
concurrent-ruby (~> 1.0)
3434
json-ld-preloaded (3.0.1)
3535
json-ld (~> 3.0)
@@ -77,7 +77,7 @@ GEM
7777
nokogiri
7878
public_suffix (3.0.3)
7979
rake (12.3.1)
80-
rdf (3.0.4)
80+
rdf (3.0.5)
8181
hamster (~> 3.0)
8282
link_header (~> 0.0, >= 0.0.8)
8383
rdf-aggregate-repo (2.2.1)
@@ -166,4 +166,4 @@ DEPENDENCIES
166166
rake
167167

168168
BUNDLED WITH
169-
1.16.4
169+
1.16.6

index.html

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ <h4>Require all flag</h4>
797797
</section>
798798
</section>
799799

800-
<section class="informative">
800+
<section class="informative changed">
801801
<h3>Reverse Framing</h3>
802802
<p>A frame may include <code>@reverse</code>, or a value of a term defined using <code>@reverse</code>
803803
to invert the relationships in the output object. For example, the
@@ -867,6 +867,16 @@ <h3>Reverse Framing</h3>
867867
-->
868868
</pre>
869869
</aside>
870+
871+
<div class="note">
872+
<p>There is an asymmetry between regular properties and reverse properties.
873+
Normally, when framing a <a>node object</a>, unless the <a>explicit inclusion flag</a> is set,
874+
all properties of the node are included in the output, but reverse
875+
properties are not, as they are not actually properties of the node.</p>
876+
<p>To include reverse properties in the output, add them explicitly to the frame.
877+
Note that if the reverse relationship does not exist, it will simply be
878+
left out of the output.</p>
879+
</div>
870880
</section>
871881

872882
<section class="informative changed">
@@ -1730,8 +1740,6 @@ <h3>Security Considerations</h3>
17301740
<section class="appendix informative preserve">
17311741
<h4>Open Issues</h4>
17321742
<p>The following is a list of issues open at the time of publication.</p>
1733-
<p class="issue" data-number="5">It would be nice to have the same possiblity of infinite recursion in the @reverse properties as there are in non-reverse ones, currently recursion only works as many times as the frame defines it.</p>
1734-
<p class="issue" data-number="9">Clarification required on the use of blank node identifiers in frames.</p>
17351743
</section>
17361744

17371745
<section class="appendix informative">
@@ -1770,10 +1778,13 @@ <h2>Changes since 1.0 Draft of 30 August 2012</h2>
17701778
<a data-link-for="JsonLdOptions">omitDefault</a> API option and/or
17711779
the current <a>processing mode</a>.</li>
17721780
<li>The API now adds an <a data-link-for="JsonLdOptions">ordered</a>
1773-
option, defaulting to <code>false</code> This is used in algorithms to
1774-
control interation of <a>dictionary member</a> keys. Previously, the
1775-
algorithms always required such an order. The instructions for
1776-
evaluating test results have been updated accordingly.</li>
1781+
option, defaulting to <code>false</code> This is used in algorithms to
1782+
control interation of <a>dictionary member</a> keys. Previously, the
1783+
algorithms always required such an order. The instructions for
1784+
evaluating test results have been updated accordingly.</li>
1785+
<li>Frames may include reverse properties using <code>@reverse</code>, or a term
1786+
defined with <code>@reverse</code>, which can cause nodes referencing a
1787+
node targeted by a frame to have a reverse reference created.</li>
17771788
</ul>
17781789
</section>
17791790

0 commit comments

Comments
 (0)