137
137
color : # 999 ;
138
138
text-decoration : line-through;
139
139
}
140
+ div .example > pre .frame : before {
141
+ content : "Frame" ;
142
+ float : right;
143
+ font : x-large Arial, sans-serif;
144
+ color : gray;
145
+ padding-top : -20px ;
146
+ }
147
+ div .example > pre .input : before {
148
+ content : "Input" ;
149
+ float : right;
150
+ font : x-large Arial, sans-serif;
151
+ color : gray;
152
+ padding-top : -20px ;
153
+ }
140
154
.diff { font-weight : bold; color : # 0a3 ; }
141
155
.error a {
142
156
color : # ff4500 ;
@@ -389,7 +403,7 @@ <h3>Framing</h3>
389
403
390
404
< p > For example, assume the following JSON-LD frame:</ p >
391
405
< pre id ="sample-library-frame "
392
- class ="example " data-transform ="updateExample "
406
+ class ="example frame " data-transform ="updateExample "
393
407
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
394
408
data-frame-for ="Flattened library objects "
395
409
title ="Sample library frame ">
@@ -416,7 +430,7 @@ <h3>Framing</h3>
416
430
417
431
< p > When using a flattened set of objects that match the frame components:</ p >
418
432
< pre id ="flattened-library-objects "
419
- class ="example " data-transform ="updateExample "
433
+ class ="example input " data-transform ="updateExample "
420
434
title ="Flattened library objects ">
421
435
<!--
422
436
{
@@ -485,7 +499,7 @@ <h3>Framing</h3>
485
499
< p > If < a > processing mode</ a > is < code > json-ld-1.1</ code > , or the < a > omit graph flag</ a > is < code > true</ code > ,
486
500
the top-level < code > @graph</ code > < a > member</ a > may be omitted.</ p >
487
501
488
- < pre class ="example " data-transform ="updateExample "
502
+ < pre class ="example frame " data-transform ="updateExample "
489
503
data-frame ="Sample library frame "
490
504
data-result-for ="Flattened library objects "
491
505
data-options ="omitGraph=true "
@@ -537,7 +551,7 @@ <h3>Default content</h3>
537
551
used in the output document. It's purpose is for frame matching and
538
552
finding default values. Note the < em > description</ em > value for < em > Library</ em > in the following example.</ p >
539
553
< pre id ="sample-library-frame-with-default-value "
540
- class ="example nohighlight " data-transform ="updateExample "
554
+ class ="example frame nohighlight " data-transform ="updateExample "
541
555
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
542
556
data-frame-for ="Flattened library objects "
543
557
title ="Sample library frame with @default value ">
@@ -617,7 +631,7 @@ <h4>Object Embed Flag</h4>
617
631
based on the default < code > @last</ code > value of the < a > object embed flag</ a > :</ p >
618
632
619
633
< pre id ="sample-library-frame-with-explicit-embed-set-to-last "
620
- class ="example " data-transform ="updateExample "
634
+ class ="example frame " data-transform ="updateExample "
621
635
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
622
636
data-frame-for ="Flattened library objects "
623
637
title ="Sample library frame with implicit @embed set to @last ">
@@ -674,7 +688,7 @@ <h4>Object Embed Flag</h4>
674
688
value of < code > @never</ code > , the values for < em > Book</ em > and < em > Chapter</ em > will be excluded.</ p >
675
689
676
690
< pre id ="sample-library-frame-with-explicit-embed-set-to-never "
677
- class ="example nohighlight " data-transform ="updateExample "
691
+ class ="example frame nohighlight " data-transform ="updateExample "
678
692
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
679
693
data-frame-for ="Flattened library objects "
680
694
title ="Sample library frame with explicit @embed set to @never ">
@@ -720,7 +734,7 @@ <h4>Object Embed Flag</h4>
720
734
consider an alternate library example where books are doubly indexed.</ p >
721
735
722
736
< pre id ="flattened-library-objects-with-double-index "
723
- class ="example " data-transform ="updateExample "
737
+ class ="example input " data-transform ="updateExample "
724
738
title ="Flattened library objects with double index ">
725
739
<!--
726
740
{
@@ -793,7 +807,7 @@ <h4>Object Embed Flag</h4>
793
807
both properties will include expanded values.</ p >
794
808
795
809
< pre id ="sample-library-frame-with-explicit-embed-set-to-always "
796
- class ="example nohighlight " data-transform ="updateExample "
810
+ class ="example frame nohighlight " data-transform ="updateExample "
797
811
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
798
812
data-frame-for ="Flattened library objects with double index "
799
813
title ="Sample library frame with explicit @embed set to @always ">
@@ -870,7 +884,7 @@ <h4>Explicit inclusion flag</h4>
870
884
some properties from the input, but omit others.</ p >
871
885
872
886
< pre id ="sample-library-frame-with-explicit-set-to-true "
873
- class ="example nohighlight " data-transform ="updateExample "
887
+ class ="example frame nohighlight " data-transform ="updateExample "
874
888
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
875
889
data-frame-for ="Flattened library objects "
876
890
title ="Sample library frame with @explicit set to true ">
@@ -946,7 +960,7 @@ <h4>Omit default flag</h4>
946
960
See < a href ="#default-content " class ="sectionRef "> </ a > for a further discussion.</ p >
947
961
948
962
< pre id ="sample-library-frame-with-default-value-and-omitDefault "
949
- class ="example nohighlight " data-transform ="updateExample "
963
+ class ="example frame nohighlight " data-transform ="updateExample "
950
964
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
951
965
data-frame-for ="Flattened library objects "
952
966
title ="Sample library frame with @default value and @omitDefault ">
@@ -971,7 +985,7 @@ <h4>Omit default flag</h4>
971
985
< p > The resulting output will exclude properties for Book which are not explicitly
972
986
listed in the < a > frame object</ a > :</ p >
973
987
974
- < aside class ="example ds-selector-tabs "
988
+ < aside class ="example input ds-selector-tabs "
975
989
title ="Sample library output with @default value and @omitDefault ">
976
990
< div class ="selectors ">
977
991
< a class ="playground "
@@ -1041,7 +1055,7 @@ <h3>Reverse Framing</h3>
1041
1055
Library example can be inverted using the following frame:</ p >
1042
1056
1043
1057
< pre id ="inverted-library-frame "
1044
- class ="example nohighlight " data-transform ="updateExample "
1058
+ class ="example frame nohighlight " data-transform ="updateExample "
1045
1059
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
1046
1060
data-frame-for ="Flattened library objects "
1047
1061
title ="Inverted library frame ">
@@ -1129,7 +1143,7 @@ <h3>Framing Named Graphs</h3>
1129
1143
is split between the < a > default graph</ a > , and a graph named < code > http://example.org/graphs/books</ code > :</ p >
1130
1144
1131
1145
< pre id ="frame-with-named-graphs "
1132
- class ="example nohighlight " data-transform ="updateExample "
1146
+ class ="example frame nohighlight " data-transform ="updateExample "
1133
1147
data-content-type ="application/ld+json;profile=http://www.w3.org/ns/json-ld#framed "
1134
1148
data-frame-for ="Flattened Input with named graphs "
1135
1149
title ="Frame with named graphs ">
@@ -1148,7 +1162,7 @@ <h3>Framing Named Graphs</h3>
1148
1162
</ pre >
1149
1163
1150
1164
< pre id ="flattened-input-with-named-graphs "
1151
- class ="example " data-transform ="updateExample "
1165
+ class ="example input " data-transform ="updateExample "
1152
1166
title ="Flattened Input with named graphs ">
1153
1167
<!--
1154
1168
[{
0 commit comments