File tree Expand file tree Collapse file tree 7 files changed +156
-0
lines changed Expand file tree Collapse file tree 7 files changed +156
-0
lines changed Original file line number Diff line number Diff line change 1121
1121
"context" : "compact/c023-context.jsonld" ,
1122
1122
"expect" : "compact/c023-out.jsonld" ,
1123
1123
"option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
1124
+ } , {
1125
+ "@id" : "#tc024" ,
1126
+ "@type" : [ "jld:PositiveEvaluationTest" , "jld:CompactTest" ] ,
1127
+ "name" : "type-scoped + property-scoped + values evaluates against previous context" ,
1128
+ "purpose" : "type-scoped + property-scoped + values evaluates against previous context" ,
1129
+ "input" : "compact/c024-in.jsonld" ,
1130
+ "context" : "compact/c024-context.jsonld" ,
1131
+ "expect" : "compact/c024-out.jsonld" ,
1132
+ "option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
1124
1133
} , {
1125
1134
"@id" : "#te001" ,
1126
1135
"@type" : [ "jld:NegativeEvaluationTest" , "jld:CompactTest" ] ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "@version" : 1.1 ,
4
+ "Outer" : {
5
+ "@id" : "ex:Outer" ,
6
+ "@context" : {
7
+ "nested" : "ex:nested"
8
+ }
9
+ } ,
10
+ "Inner" : {
11
+ "@id" : "ex:Inner" ,
12
+ "@context" : {
13
+ "@version" : 1.1 ,
14
+ "val" : "@value" ,
15
+ "foo" : {
16
+ "@id" : "ex:foo" ,
17
+ "@container" : "@set" ,
18
+ "@type" : "ex:Number" ,
19
+ "@context" : {
20
+ "value" : "@value"
21
+ }
22
+ } ,
23
+ "bar" : {
24
+ "@id" : "ex:bar" ,
25
+ "@container" : "@set" ,
26
+ "@type" : "@id" ,
27
+ "@context" : {
28
+ "@base" : "http://example/"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
Original file line number Diff line number Diff line change
1
+ [ {
2
+ "@type" : [ "ex:Outer" ] ,
3
+ "ex:nested" : [ {
4
+ "@type" : [ "ex:Inner" ] ,
5
+ "ex:foo" : { "@type" : "ex:Number" , "@value" : "1" } ,
6
+ "ex:bar" : [
7
+ { "@id" : "http://example/a" } ,
8
+ { "@id" : "http://example/b" }
9
+ ]
10
+ } ]
11
+ } ]
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "@version" : 1.1 ,
4
+ "Outer" : {
5
+ "@id" : "ex:Outer" ,
6
+ "@context" : {
7
+ "nested" : "ex:nested"
8
+ }
9
+ } ,
10
+ "Inner" : {
11
+ "@id" : "ex:Inner" ,
12
+ "@context" : {
13
+ "@version" : 1.1 ,
14
+ "val" : "@value" ,
15
+ "foo" : {
16
+ "@id" : "ex:foo" ,
17
+ "@container" : "@set" ,
18
+ "@type" : "ex:Number" ,
19
+ "@context" : {
20
+ "value" : "@value"
21
+ }
22
+ } ,
23
+ "bar" : {
24
+ "@id" : "ex:bar" ,
25
+ "@container" : "@set" ,
26
+ "@type" : "@id" ,
27
+ "@context" : {
28
+ "@base" : "http://example/"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ } ,
34
+ "@type" : "Outer" ,
35
+ "nested" : {
36
+ "@type" : "Inner" ,
37
+ "foo" : [ "1" ] ,
38
+ "bar" : [ "a" , "b" ]
39
+ }
40
+ }
Original file line number Diff line number Diff line change 1024
1024
"input" : "expand/c023-in.jsonld" ,
1025
1025
"expect" : "expand/c023-out.jsonld" ,
1026
1026
"option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
1027
+ } , {
1028
+ "@id" : "#tc024" ,
1029
+ "@type" : [ "jld:PositiveEvaluationTest" , "jld:ExpandTest" ] ,
1030
+ "name" : "type-scoped + property-scoped + values evaluates against previous context" ,
1031
+ "purpose" : "type-scoped + property-scoped + values evaluates against previous context" ,
1032
+ "input" : "expand/c024-in.jsonld" ,
1033
+ "expect" : "expand/c024-out.jsonld" ,
1034
+ "option" : { "processingMode" : "json-ld-1.1" , "specVersion" : "json-ld-1.1" }
1027
1035
} , {
1028
1036
"@id" : "#te001" ,
1029
1037
"@type" : [ "jld:NegativeEvaluationTest" , "jld:ExpandTest" ] ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "@version" : 1.1 ,
4
+ "Outer" : {
5
+ "@id" : "ex:Outer" ,
6
+ "@context" : {
7
+ "nested" : "ex:nested"
8
+ }
9
+ } ,
10
+ "Inner" : {
11
+ "@id" : "ex:Inner" ,
12
+ "@context" : {
13
+ "@version" : 1.1 ,
14
+ "val" : "@value" ,
15
+ "foo" : {
16
+ "@id" : "ex:foo" ,
17
+ "@container" : "@set" ,
18
+ "@type" : "ex:Number" ,
19
+ "@context" : {
20
+ "value" : "@value"
21
+ }
22
+ } ,
23
+ "bar" : {
24
+ "@id" : "ex:bar" ,
25
+ "@container" : "@set" ,
26
+ "@type" : "@id" ,
27
+ "@context" : {
28
+ "@base" : "http://example/"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ } ,
34
+ "@type" : "Outer" ,
35
+ "nested" : {
36
+ "@type" : "Inner" ,
37
+ "foo" : [ { "value" : "1" } , "2" ] ,
38
+ "bar" : [ { "@id" : "a" } , "b" ]
39
+ }
40
+ }
Original file line number Diff line number Diff line change
1
+ [ {
2
+ "@type" : [ "ex:Outer" ] ,
3
+ "ex:nested" : [ {
4
+ "@type" : [ "ex:Inner" ] ,
5
+ "ex:foo" : [
6
+ { "@value" : "1" } ,
7
+ { "@type" : "ex:Number" , "@value" : "2" }
8
+ ] ,
9
+ "ex:bar" : [
10
+ { "@id" : "http://example/a" } ,
11
+ { "@id" : "http://example/b" }
12
+ ]
13
+ } ]
14
+ } ]
You can’t perform that action at this time.
0 commit comments