147
147
float : right;
148
148
font : x-large Arial, sans-serif;
149
149
color : gray;
150
+ border : solid thin black;
151
+ padding : 0.2em ;
150
152
}
151
153
.example > pre .frame : before {
152
154
content : "Frame" ;
153
155
float : right;
154
156
font : x-large Arial, sans-serif;
155
157
color : gray;
158
+ border : solid thin black;
159
+ padding : 0.2em ;
156
160
}
157
161
.example > pre .input : before {
158
162
content : "Input" ;
159
163
float : right;
160
164
font : x-large Arial, sans-serif;
161
165
color : gray;
166
+ border : solid thin black;
167
+ padding : 0.2em ;
168
+ }
169
+ .example > pre .result : before {
170
+ content : "Result" ;
171
+ float : right;
172
+ font : x-large Arial, sans-serif;
173
+ color : gray;
174
+ border : solid thin black;
175
+ padding : 0.2em ;
176
+ }
177
+ .example > pre .turtle : before {
178
+ content : "Turtle" ;
179
+ float : right;
180
+ font : x-large Arial, sans-serif;
181
+ color : gray;
182
+ border : solid thin black;
183
+ padding : 0.2em ;
162
184
}
163
185
.algorithm ol {
164
186
counter-reset : numsection;
219
241
color : # 202020 ;
220
242
cursor : pointer;
221
243
}
222
- .ds-selector-tabs pre , .ds-selector-tabs table {
244
+ .ds-selector-tabs pre : not (. preserve ) , .ds-selector-tabs table : not (. preserve ) {
223
245
display : none;
224
246
}
225
247
.ds-selector-tabs pre .selected , .ds-selector-tabs table .selected {
@@ -445,13 +467,13 @@ <h2>Expansion</h2>
445
467
< aside class ="example ds-selector-tabs "
446
468
title ="JSON-LD document using only terms ">
447
469
< div class ="selectors ">
448
- < button class ="selected " data-selects ="original " > Original </ button >
449
- < button data-selects ="expanded "> Expanded</ button >
470
+ < button class ="selected input " data-selects ="compacted " > Compacted (Input) </ button >
471
+ < button data-selects ="expanded "> Expanded (Result) </ button >
450
472
< button data-selects ="statements "> Statements</ button >
451
473
< button data-selects ="turtle "> Turtle</ button >
452
474
< a class ="playground " target ="_blank "> </ a >
453
475
</ div >
454
- < pre class ="original selected " data-transform ="updateExample ">
476
+ < pre class ="compacted selected " data-transform ="updateExample ">
455
477
<!--
456
478
{
457
479
"@context": {
@@ -467,8 +489,8 @@ <h2>Expansion</h2>
467
489
}
468
490
-->
469
491
</ pre >
470
- < pre class ="expanded "
471
- data-result-for ="JSON-LD document using only terms-original "
492
+ < pre class ="expanded result "
493
+ data-result-for ="JSON-LD document using only terms-compacted "
472
494
data-transform ="updateExample ">
473
495
<!--
474
496
[{
@@ -513,7 +535,7 @@ <h2>Expansion</h2>
513
535
< div class ="selectors ">
514
536
< a class ="playground " target ="_blank "> </ a >
515
537
</ div >
516
- < pre class ="original input selected nohighlight " data-transform ="updateExample ">
538
+ < pre class ="compacted input selected nohighlight " data-transform ="updateExample ">
517
539
<!--
518
540
{
519
541
"@context": {
@@ -545,8 +567,8 @@ <h2>Expansion</h2>
545
567
(< a data-link-for ="JsonLdProcessor "> expand()</ a > )
546
568
operation) against the above examples results in the following output:</ p >
547
569
548
- < pre class ="example nohighlight " data-transform ="updateExample "
549
- data-result-for ="Sample JSON-LD document using an IRI instead of a term to express a property-original "
570
+ < pre class ="example result nohighlight " data-transform ="updateExample "
571
+ data-result-for ="Sample JSON-LD document using an IRI instead of a term to express a property-compacted "
550
572
title ="Expanded JSON-LD document using an IRI ">
551
573
<!--
552
574
[
@@ -600,7 +622,7 @@ <h2>Compaction</h2>
600
622
< p > For example, assume the following expanded JSON-LD input document:</ p >
601
623
602
624
< pre id ="sample-document "
603
- class ="example input nohighlight " data-transform ="updateExample "
625
+ class ="example expanded input nohighlight " data-transform ="updateExample "
604
626
title ="Expanded sample document ">
605
627
<!--
606
628
[
@@ -652,7 +674,7 @@ <h2>Compaction</h2>
652
674
data-compact
653
675
target ="_blank "> </ a >
654
676
</ div >
655
- < pre class ="original selected nohighlight " data-transform ="updateExample "
677
+ < pre class ="result compacted selected nohighlight " data-transform ="updateExample "
656
678
data-result-for ="Expanded sample document "
657
679
data-context ="JSON-LD context "
658
680
data-compact
@@ -704,7 +726,7 @@ <h2>Flattening</h2>
704
726
< p > For example, assume the following JSON-LD input document:</ p >
705
727
706
728
< pre id ="json-ld-document-in-compact-form "
707
- class ="example input nohighlight " data-transform ="updateExample "
729
+ class ="example compacted input nohighlight " data-transform ="updateExample "
708
730
title ="JSON-LD document in compact form ">
709
731
<!--
710
732
{
@@ -734,7 +756,7 @@ <h2>Flattening</h2>
734
756
data-flatten
735
757
target ="_blank "> </ a >
736
758
</ div >
737
- < pre class ="original selected nohighlight " data-transform ="updateExample "
759
+ < pre class ="original result selected nohighlight " data-transform ="updateExample "
738
760
data-result-for ="JSON-LD document in compact form "
739
761
data-flatten >
740
762
<!--
@@ -779,7 +801,7 @@ <h2>Flattening</h2>
779
801
data-flatten
780
802
target ="_blank "> </ a >
781
803
</ div >
782
- < pre class ="original selected nohighlight " data-transform ="updateExample "
804
+ < pre class ="result selected nohighlight " data-transform ="updateExample "
783
805
data-result-for ="JSON-LD document in compact form "
784
806
data-context ="JSON-LD document in compact form "
785
807
data-flatten
@@ -4966,7 +4988,7 @@ <h2>Data Round Tripping</h2>
4966
4988
4967
4989
< aside class ="example changed " data-ignore
4968
4990
title ="Canonicalized JSON literal ">
4969
- < pre class ="original " data-transform ="updateExample ">
4991
+ < pre class ="original input " data-transform ="updateExample ">
4970
4992
<!--
4971
4993
{
4972
4994
"@context": {
@@ -4990,7 +5012,7 @@ <h2>Data Round Tripping</h2>
4990
5012
eliminates the whitespace, uses a canonical number representation,
4991
5013
and reorders the object members lexicographically:</ p >
4992
5014
4993
- < pre class ="turtle "
5015
+ < pre class ="turtle result "
4994
5016
data-content-type ="text/turtle "
4995
5017
data-result-for ="Canonicalized JSON literal-original "
4996
5018
data-transform ="updateExample "
0 commit comments