Skip to content

Commit eb61149

Browse files
committed
Improve language around datatype coercion.
1 parent bd2eb64 commit eb61149

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,7 +3068,8 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
30683068
<dfn>value type</dfn> specifies the data type of a particular value, such
30693069
as an integer, a floating point number, or a date.</p>
30703070

3071-
<pre class="example nohighlight" data-transform="updateExample"
3071+
<pre id="context-sensitivity-for-type"
3072+
class="example nohighlight" data-transform="updateExample"
30723073
title="Example demonstrating the context-sensitivity for @type">
30733074
<!--
30743075
{
@@ -3101,6 +3102,8 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
31013102
<div class="selectors">
31023103
<button class="selected" data-selects="original">Original</button>
31033104
<button data-selects="turtle">Turtle</button>
3105+
<a class="playground" target="_blank"
3106+
data-result-for="#context-sensitivity-for-type"></a>
31043107
</div>
31053108
<table class="original selected"
31063109
data-result-for="Example demonstrating the context-sensitivity for @type"
@@ -3145,11 +3148,12 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
31453148

31463149
<section class="informative"><h2>Type Coercion</h2>
31473150

3148-
<p>JSON-LD supports the coercion of values to particular data types.
3149-
Type <dfn>coercion</dfn> allows someone deploying JSON-LD to coerce the incoming or
3150-
outgoing values to the proper data type based on a mapping of data type <a>IRIs</a> to
3151-
<a>terms</a>. Using type coercion, value representation is preserved without requiring
3152-
the data type to be specified with each piece of data.</p>
3151+
<p>JSON-LD supports the coercion of <a>string</a> values to particular data types.
3152+
Type <dfn>coercion</dfn> allows someone deploying JSON-LD to use <a>string</a> property values
3153+
and have those values be interpreted as <a>typed values</a>
3154+
by associating an <a>IRI</a> with the value in the expanded <a>value object</a> representation.
3155+
Using type coercion, <a>string</a> value representation can be used without requiring
3156+
the data type to be specified explicitly with each piece of data.</p>
31533157

31543158
<p>Type coercion is specified within an <a>expanded term definition</a>
31553159
using the <code>@type</code> key. The value of this key expands to an <a>IRI</a>.

0 commit comments

Comments
 (0)