Added text to allow language maps in section A.1.
authorManu Sporny <msporny@digitalbazaar.com>
Sat, 18 Aug 2012 21:35:28 -0400
changeset 821 9583883a5871
parent 820 d416764b11ff
child 822 e5876baa5e75
Added text to allow language maps in section A.1.
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-syntax/index.html	Sat Aug 18 21:12:45 2012 -0400
+++ b/spec/latest/json-ld-syntax/index.html	Sat Aug 18 21:35:28 2012 -0400
@@ -2628,7 +2628,7 @@
 <h3>Subject Definition</h3>
 <p>A <tref>subject definition</tref> is a <tref>JSON object</tref>
   containing one or more key/value pairs. Keys are <tref>IRI</tref>s, 
-  <tref>Compact IRI</tref>s,
+  <tref>compact IRI</tref>s,
   <tref>term</tref>s defined within the <tref>active context</tref>, or one of the
   following keywords:</p>
 <ul>
@@ -2663,7 +2663,7 @@
 <p>If the <tref>subject definition</tref> contains the <code>@id</code>
   key, it's value
   MUST be a <tref>string</tref> having the lexical form of <tref>IRI</tref>,
-  <tref>Compact IRI</tref> (including <tref>unlabeled node</tref>), or a
+  <tref>compact IRI</tref> (including <tref>unlabeled node</tref>), or a
   <tref>term</tref> defined in the <tref>active context</tref> expanding 
   into an <tref>IRI</tref> or an <tref>unlabeled node</tref>.</p>
 
@@ -2683,7 +2683,7 @@
 <p>If the <tref>subject definition</tref> contains the <code>@type</code>
   key, it's value
   MUST be either a <tref>string</tref> having the lexical form of
-  <tref>absolute IRI</tref>, <tref>Compact IRI</tref>, a <tref>term</tref> defined in the
+  <tref>absolute IRI</tref>, <tref>compact IRI</tref>, a <tref>term</tref> defined in the
   <tref>active context</tref> expanding into an <tref>absolute IRI</tref>,
   or an <tref>array</tref> of any of these.</p>
 
@@ -2755,16 +2755,21 @@
 <p>A JSON-LD document MUST NOT contain any other <tref>keyword</tref> or
   alias expanding to any other keyword.</p>
 
+<p>Any key used in conjunction with a term utilizing a 
+<tref>language map</tref> pattern MUST be a [[BCP47]] string with an associated 
+value that is a <tref>string</tref> or an
+<tref>array</tref> of zero or more <tref>string</tref>s.</p>
+
 <p>Other keys MUST expand to an <tref>absolute IRI</tref> using the
-  <tref>active context</tref>. The values of these keys may be any
-  of the following:</p>
+  <tref>active context</tref>. The values associated with these keys 
+  may be any of the following:</p>
   
-<p class="issue">This section is vague. For example, following 
-'subject reference' below seems to indicate that {"@id": "http://example.com"}
-is valid. Clearly, it isn't... but perhaps we should tighten up the list below
-a bit?</p>
 <ul>
   <li><tref>string</tref>,</li>
+  <li><tref>number</tref>,</li>
+  <li><tref>true</tref>,</li>
+  <li><tref>false</tref>,</li>
+  <li><tref>null</tref>,</li>
   <li><tref>subject reference</tref>,</li>
   <li><tref>subject definition</tref>,</li>
   <li><tref>typed value</tref>,</li>
@@ -2773,6 +2778,7 @@
     definition (see <a href="#sets-and-lists"></a>), or</li>
   <li>an <tref>array</tref> zero or more of these.</li>
 </ul>
+
 </section>
 
 <section id="grammar-subject-reference">