Skip to content

Commit dd4d876

Browse files
committed
Fixed bug for issue #133 - allow language maps to contain non-string values.
1 parent aed9d8a commit dd4d876

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

spec/latest/json-ld-syntax/index.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,9 +2817,22 @@ <h2>Language Map</h2>
28172817
<tref>subject definition</tref> if the term is defined with
28182818
<code>@container</code> set to <code>@language</code>.</p>
28192819
<p>The keys of a <tref>language map</tref> MUST be a [[BCP47]] string
2820-
with an associated value that is a <tref>string</tref> or an
2821-
<tref>array</tref> of zero or more <tref>string</tref>s.</p>
2822-
<p class="issue" data-number="133">We had also discussed values other than strings, such as those that might represent a more reified version of a value with other properties, such as is described using <a href="http://www.w3.org/TR/skos-reference/skos-xl.html">SKOS-XL</a>.</p>
2820+
with an associated value that is any of the following types:</p>
2821+
<ul>
2822+
<li><tref>string</tref>,</li>
2823+
<li><tref>number</tref>,</li>
2824+
<li><tref>true</tref>,</li>
2825+
<li><tref>false</tref>,</li>
2826+
<li><tref>null</tref>,</li>
2827+
<li><tref>subject reference</tref>,</li>
2828+
<li><tref>subject definition</tref>,</li>
2829+
<li><tref>typed value</tref>,</li>
2830+
<li><tref>language value</tref>,</li>
2831+
<li><code>@set</code> or <code>@list</code>
2832+
definition (see <a href="#sets-and-lists"></a>), or</li>
2833+
<li>an <tref>array</tref> zero or more of these</li>
2834+
</ul>
2835+
<p class="issue resolved" data-number="133">We had also discussed values other than strings, such as those that might represent a more reified version of a value with other properties, such as is described using <a href="http://www.w3.org/TR/skos-reference/skos-xl.html">SKOS-XL</a>.</p>
28232836
<pre class="example" data-transform="updateExample"
28242837
title="Language map expressing a property in three languages">
28252838
<!--
@@ -2829,7 +2842,7 @@ <h2>Language Map</h2>
28292842
"title":
28302843
{
28312844
"@id": "http://purl.org/dc/terms/title"
2832-
"@container": "@language"
2845+
****"@container": "@language"****
28332846
}
28342847
},
28352848
...

0 commit comments

Comments
 (0)