File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 936
936
"input" : "expand/c012-in.jsonld" ,
937
937
"expect" : "expand/c012-out.jsonld" ,
938
938
"option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
939
+ } , {
940
+ "@id" : "#tc013" ,
941
+ "@type" : [ "jld:PositiveEvaluationTest" , "jld:ExpandTest" ] ,
942
+ "name" : "type maps use scoped context from type index and not scoped context from containing" ,
943
+ "purpose" : "scoped context on @type" ,
944
+ "input" : "expand/c013-in.jsonld" ,
945
+ "expect" : "expand/c013-out.jsonld" ,
946
+ "option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
939
947
} , {
940
948
"@id" : "#te001" ,
941
949
"@type" : [ "jld:NegativeEvaluationTest" , "jld:ExpandTest" ] ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "@vocab" : "http://example/" ,
4
+ "prop" : { "@container" : "@index" } ,
5
+ "foo" : "http://example/base-foo" ,
6
+ "Outer" : {
7
+ "@context" : {
8
+ "prop" : {
9
+ "@id" : "http://example/outer-prop" ,
10
+ "@container" : "@type"
11
+ }
12
+ }
13
+ } ,
14
+ "Inner" : { "@context" : { "foo" : "http://example/inner-foo" } }
15
+ } ,
16
+ "@type" : "Outer" ,
17
+ "prop" : {
18
+ "Inner" : {
19
+ "prop" : {
20
+ "index" : {
21
+ "@id" : "http://example/inner-with-index" ,
22
+ "foo" : "inner-foo"
23
+ }
24
+ }
25
+ }
26
+ } ,
27
+ "foo" : "base-foo"
28
+ }
Original file line number Diff line number Diff line change
1
+ [ {
2
+ "@type" : [ "http://example/Outer" ] ,
3
+ "http://example/base-foo" : [ { "@value" : "base-foo" } ] ,
4
+ "http://example/outer-prop" : [ {
5
+ "@type" : [ "http://example/Inner" ] ,
6
+ "http://example/prop" : [ {
7
+ "@id" : "http://example/inner-with-index" ,
8
+ "@index" : "index" ,
9
+ "http://example/inner-foo" : [ { "@value" : "inner-foo" } ]
10
+ } ]
11
+ } ]
12
+ } ]
You can’t perform that action at this time.
0 commit comments