Skip to content

Commit 2638395

Browse files
committed
Make _expandContext_ @type: @id and set option values to be relative to the manifest location.
Fixes #369.
1 parent 774220c commit 2638395

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/context.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"compactArrays": { "@type": "xsd:boolean" },
2424
"compactToRelative": { "@type": "xsd:boolean" },
2525
"contentType": { "@type": "xsd:boolean" },
26-
"expandContext": { "@type": "xsd:string" },
26+
"expandContext": { "@type": "@id" },
2727
"httpLink": { "@type": "xsd:string", "@container": "@set" },
2828
"httpStatus": { "@type": "xsd:integer" },
2929
"processingMode": { "@type": "xsd:string" },

tests/expand-manifest.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@
550550
"name": "expandContext option",
551551
"purpose": "Use of the expandContext option to expand the input document",
552552
"option": {
553-
"expandContext": "0077-context.jsonld"
553+
"expandContext": "expand/0077-context.jsonld"
554554
},
555555
"input": "expand/0077-in.jsonld",
556556
"expect": "expand/0077-out.jsonld"

tests/toRdf-manifest.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@
13241324
"name": "expandContext option",
13251325
"purpose": "Use of the expandContext option to expand the input document",
13261326
"option": {
1327-
"expandContext": "e077-context.jsonld"
1327+
"expandContext": "toRdf/e077-context.jsonld"
13281328
},
13291329
"input": "toRdf/e077-in.jsonld",
13301330
"expect": "toRdf/e077-out.nq"

0 commit comments

Comments
 (0)