Disallow relative URLs in term definitions
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 05 May 2013 18:16:00 +0200
changeset 1626 6e809b352d83
parent 1625 286baedd8225
child 1627 530d5f77b653
Disallow relative URLs in term definitions

This closes #244.
spec/latest/changes-since-lc.txt
spec/latest/json-ld-api/index.html
--- a/spec/latest/changes-since-lc.txt	Sun May 05 18:05:11 2013 +0200
+++ b/spec/latest/changes-since-lc.txt	Sun May 05 18:16:00 2013 +0200
@@ -11,4 +11,5 @@
 
 - Update API to use DOM Futures instead of node-style callbacks (section 11. The Application Programming Interface)
 - Fix bug in Create Term Definition algorithm which resulted in a cyclic IRI mapping error when a term was redefined to itself (see https://github.com/json-ld/json-ld.org/commit/657c90f3fc4050fce006fa11a2a420e7e4efe049)
+- Fix Create Term Definition algorithm to raise an error if relative URLs are used in term definitions
 
--- a/spec/latest/json-ld-api/index.html	Sun May 05 18:05:11 2013 +0200
+++ b/spec/latest/json-ld-api/index.html	Sun May 05 18:16:00 2013 +0200
@@ -1071,7 +1071,7 @@
               result of using the <a href="#iri-expansion">IRI Expansion algorithm</a>,
               passing <tref>active context</tref>, the value associated with
               the <code>@reverse</code> key for <i>value</i>, <tref>true</tref>
-              for <i>vocab</i>, <tref>true</tref> for <i>document relative</i>,
+              for <i>vocab</i>, <tref>false</tref> for <i>document relative</i>,
               <tref>local context</tref>, and <i>defined</i>. If the result
               is not an <tref>absolute IRI</tref>, i.e., it contains no
               colon (<code>:</code>), an
@@ -1106,7 +1106,7 @@
               result of using the <a href="#iri-expansion">IRI Expansion algorithm</a>, passing
               <tref>active context</tref>, the value associated with the <code>@id</code> key for
               <i>value</i>, <tref>true</tref> for <i>vocab</i>,
-              <tref>true</tref> for <i>document relative</i>,
+              <tref>false</tref> for <i>document relative</i>,
               <tref>local context</tref>, and <i>defined</i>. If the resulting
               <tref>IRI mapping</tref> equals <code>@context</code>, an
               <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-keyword-alias">invalid keyword alias</a></code>
@@ -1147,7 +1147,7 @@
               <a href="#iri-expansion">IRI Expansion algorithm</a>, passing
               <tref>active context</tref>, <i>type</i> for <i>value</i>,
               <tref>true</tref> for <i>vocab</i>,
-              <tref>true</tref> for <i>document relative</i>,
+              <tref>false</tref> for <i>document relative</i>,
               <tref>local context</tref>, and <i>defined</i>. If the expanded <i>type</i> is
               neither <code>@id</code>, nor <code>@vocab</code>, nor an <tref>absolute IRI</tref>, an
               <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-type-mapping">invalid type mapping</a></code>