You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/README.md
+7-13Lines changed: 7 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ More information and an RDFS definition of the test vocabulary can be found at [
9
9
10
10
# Design
11
11
12
-
Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [compact](compact-manifest.jsonld), [expand](expand-manifest.jsonld), [flatten](flatten-manifest.jsonld), [remote-doc](remote-doc-manifest.jsonld), [fromRdf](fromRdf-manifest.jsonld), and [toRdf](toRdf-manifest.jsonld) sections:
12
+
Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [compact](compact-manifest.jsonld), [expand](expand-manifest.jsonld), [flatten](flatten-manifest.jsonld), [html](html-manifest.jsonld), [remote-doc](remote-doc-manifest.jsonld), [fromRdf](fromRdf-manifest.jsonld), and [toRdf](toRdf-manifest.jsonld) sections:
13
13
14
14
*[compact](compact-manifest.jsonld) tests have _input_, _expected_ and _context_ documents.
15
15
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. Additionally, if the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
@@ -18,6 +18,12 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
18
18
*[expand](expand-manifest.jsonld) tests have _input_ and _expected_ documents.
19
19
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
20
20
21
+
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
22
+
*[html](html.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document.
23
+
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
24
+
after potentially remapping blank node identifiers (see below).
25
+
Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
26
+
21
27
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
22
28
*[flatten](flatten-manifest.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document.
23
29
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
@@ -37,18 +43,6 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
37
43
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
38
44
*[toRdf](toRdf-manifest.jsonld) tests have _input_ and _expected_ documents.
39
45
The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism).
40
-
*_http_ tests have _input_ and _expected_ documents and an optional _context_ document.
41
-
These tests describe the behavior of an HTTP server performing content-negotiation using the ACCEPT header, specified using the _accept_ option to generate the _expected_ result document.
42
-
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
43
-
after potentially remapping blank node identifiers (see below).
44
-
Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison).
45
-
46
-
If the result is to be compacted, and no explicit context URL is provided, test subjects should use http/default-context.jsonld
47
-
48
-
If the profile parameter includes http://example.com/do-not-use, test subjects should reject the URL and not accept the media type. Otherwise, for any other URL, applications should apply the specified URL for the context or frame, as appropriate.
49
-
50
-
For *NegativeEvaluationTests*, the result is the expected HTTP status. Options may be present to describe the intended HTTP behavior:
51
-
*_accept_: The HTTP _Accept_ header value.
52
46
53
47
Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`.
0 commit comments