Allows IRI references (such as "") to be used in @base.
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 05 Mar 2013 20:07:36 +0100
changeset 1372 8269c0b8bc84
parent 1371 7a6cb1939190
child 1373 76ea63da4a94
Allows IRI references (such as "") to be used in @base.

This addresses #223.
spec/latest/json-ld-api/index.html
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-api/index.html	Tue Mar 05 00:42:07 2013 -0500
+++ b/spec/latest/json-ld-api/index.html	Tue Mar 05 20:07:36 2013 +0100
@@ -923,7 +923,7 @@
                   <tref>base IRI</tref> of <em>result</em> to the document's base IRI according section
                   <cite><a href="http://www.ietf.org/rfc/rfc2396.txt">section 5.1 Establishing a Base URI</a></cite>
                   of [[!RFC3986]].</li>
-                <li>Otherwise, <em>value</em> must be an <tref>absolute IRI</tref>, if not, an
+                <li>Otherwise, <em>value</em> must be a <tref>string</tref>, if not, an
                   <code class="error"><a href="#idl-def-JsonLdErrorCode.invalid-base-IRI">invalid base IRI</a></code>
                   error has been detected. Set <em>result</em>'s <tref>base IRI</tref>
                   to <em>value</em>.</li>
--- a/spec/latest/json-ld-syntax/index.html	Tue Mar 05 00:42:07 2013 -0500
+++ b/spec/latest/json-ld-syntax/index.html	Tue Mar 05 20:07:36 2013 +0100
@@ -816,9 +816,7 @@
   <p>This document uses an empty <code>@id</code>, which resolves to the document base.
     However, if the document is moved to a different location, the <tref>IRI</tref> would change.
     To prevent this without having to use an <tref>absolute IRI</tref>, a <tref>context</tref>
-    may define a <code>@base</code> mapping, to overwrite the base IRI for the document.
-    It MUST have a value of a simple <tref>string</tref> with the lexical form of an
-    <tref>absolute IRI</tref>.</p>
+    may define a <code>@base</code> mapping, to overwrite the base IRI for the document.</p>
 
   <pre class="example" data-transform="updateExample">
   <!--
@@ -2929,7 +2927,8 @@
     its value MUST have the lexical form described in [[!BCP47]] or be <tref>null</tref>.</p>
 
   <p>If the <tref>context definition</tref> has a <code>@base</code> key,
-    its value MUST have the lexical form of <tref>absolute IRI</tref> or be <tref>null</tref>.</p>
+    its value MUST be <tref>null</tref> or a <tref>string</tref> representing an
+    <tref>absolute IRI</tref> or <tref>relative IRI</tref>.</p>
 
   <p>If the <tref>context definition</tref> has a <code>@vocab</code> key,
     its value MUST have the lexical form of <tref>absolute IRI</tref> or be <tref>null</tref>.</p>
@@ -3079,10 +3078,6 @@
 -->
 </pre>
 
-<p class="note">JSON-LD has no equivalent for the Turtle <code>@base</code>
-declaration, but can use a prefix such as <code>base</code> to encode the
-information in the document.</p>
-
 </section>
 
 <section>