@@ -3068,7 +3068,8 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
3068
3068
< dfn > value type</ dfn > specifies the data type of a particular value, such
3069
3069
as an integer, a floating point number, or a date.</ p >
3070
3070
3071
- < pre class ="example nohighlight " data-transform ="updateExample "
3071
+ < pre id ="context-sensitivity-for-type "
3072
+ class ="example nohighlight " data-transform ="updateExample "
3072
3073
title ="Example demonstrating the context-sensitivity for @type ">
3073
3074
<!--
3074
3075
{
@@ -3101,6 +3102,8 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
3101
3102
< div class ="selectors ">
3102
3103
< button class ="selected " data-selects ="original "> Original</ button >
3103
3104
< button data-selects ="turtle "> Turtle</ button >
3105
+ < a class ="playground " target ="_blank "
3106
+ data-result-for ="#context-sensitivity-for-type "> </ a >
3104
3107
</ div >
3105
3108
< table class ="original selected "
3106
3109
data-result-for ="Example demonstrating the context-sensitivity for @type "
@@ -3145,11 +3148,12 @@ <h3>Using the Document Base as the Default Vocabulary</h3>
3145
3148
3146
3149
< section class ="informative "> < h2 > Type Coercion</ h2 >
3147
3150
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 >
3153
3157
3154
3158
< p > Type coercion is specified within an < a > expanded term definition</ a >
3155
3159
using the < code > @type</ code > key. The value of this key expands to an < a > IRI</ a > .
0 commit comments