Skip to content

Commit d2be7d2

Browse files
anatoly-scherbakovgkelloggpchampin
authored
#648 0027-out.jsonld: @graph and value objects (#650)
* #648 `0027-out.jsonld`: `@graph` and value objects * Automated report generation * Even native values are within value objects Co-authored-by: Gregg Kellogg <[email protected]> * Code Review © @pchampin Co-authored-by: Pierre-Antoine Champin <[email protected]> * Automated report generation --------- Co-authored-by: anatoly-scherbakov <[email protected]> Co-authored-by: Gregg Kellogg <[email protected]> Co-authored-by: Pierre-Antoine Champin <[email protected]>
1 parent 2bbc15f commit d2be7d2

File tree

2 files changed

+47
-58
lines changed

2 files changed

+47
-58
lines changed

tests/fromRdf-manifest.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,11 +1421,11 @@ <h2>
14211421
<dd>List of lists</dd>
14221422
<dt>input</dt>
14231423
<dd>
1424-
<a href='fromRdf/li02-in.nq'>fromRdf/li02-in.nq</a>
1424+
<a href='fromRdf/li03-in.nq'>fromRdf/li03-in.nq</a>
14251425
</dd>
14261426
<dt>expect</dt>
14271427
<dd>
1428-
<a href='fromRdf/li02-out.jsonld'>fromRdf/li02-out.jsonld</a>
1428+
<a href='fromRdf/li03-out.jsonld'>fromRdf/li03-out.jsonld</a>
14291429
</dd>
14301430
<dt>Options</dt>
14311431
<dd>

tests/fromRdf/0027-out.jsonld

Lines changed: 45 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,45 @@
1-
{
2-
"@graph": [
3-
{
4-
"@id": "http://example.com/boolean-native",
5-
"http://example.com/example": [
6-
{
7-
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
8-
"@value": true
9-
},
10-
{
11-
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
12-
"@value": false
13-
}
14-
]
15-
},
16-
{
17-
"@id": "http://example.com/boolean-object",
18-
"http://example.com/example": [
19-
{
20-
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
21-
"@value": "True"
22-
},
23-
{
24-
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
25-
"@value": "False"
26-
}
27-
]
28-
},
29-
{
30-
"@id": "http://example.com/number-native",
31-
"http://example.com/example": [
32-
{
33-
"@type": "http://www.w3.org/2001/XMLSchema#integer",
34-
"@value": 1
35-
}
36-
]
37-
},
38-
{
39-
"@id": "http://example.com/number-object",
40-
"http://example.com/example": [
41-
{
42-
"@type": "http://www.w3.org/2001/XMLSchema#double",
43-
"@value": "0.1e999999999999999"
44-
},
45-
{
46-
"@type": "http://www.w3.org/2001/XMLSchema#double",
47-
"@value": "+INF"
48-
},
49-
{
50-
"@type": "http://www.w3.org/2001/XMLSchema#double",
51-
"@value": "-INF"
52-
}
53-
]
54-
}
55-
]
56-
}
1+
[
2+
{
3+
"@id": "http://example.com/boolean-native",
4+
"http://example.com/example": [
5+
{"@value": true},
6+
{"@value": false}
7+
]
8+
},
9+
{
10+
"@id": "http://example.com/boolean-object",
11+
"http://example.com/example": [
12+
{
13+
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
14+
"@value": "True"
15+
},
16+
{
17+
"@type": "http://www.w3.org/2001/XMLSchema#boolean",
18+
"@value": "False"
19+
}
20+
]
21+
},
22+
{
23+
"@id": "http://example.com/number-native",
24+
"http://example.com/example": [
25+
{"@value": 1}
26+
]
27+
},
28+
{
29+
"@id": "http://example.com/number-object",
30+
"http://example.com/example": [
31+
{
32+
"@type": "http://www.w3.org/2001/XMLSchema#double",
33+
"@value": "0.1e999999999999999"
34+
},
35+
{
36+
"@type": "http://www.w3.org/2001/XMLSchema#double",
37+
"@value": "+INF"
38+
},
39+
{
40+
"@type": "http://www.w3.org/2001/XMLSchema#double",
41+
"@value": "-INF"
42+
}
43+
]
44+
}
45+
]

0 commit comments

Comments
 (0)