Skip to content

Commit b3f492c

Browse files
anatoly-scherbakovgkellogg
authored andcommitted
#656 Update fromRdf test 0027 to reflect 0 and 1 as valid Boolean values
1 parent 9851d50 commit b3f492c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/fromRdf/0027-in.nq

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<http://example.com/boolean-native> <http://example.com/example> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
22
<http://example.com/boolean-native> <http://example.com/example> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
33

4+
<http://example.com/boolean-number> <http://example.com/example> "1"^^<http://www.w3.org/2001/XMLSchema#boolean> .
5+
<http://example.com/boolean-number> <http://example.com/example> "0"^^<http://www.w3.org/2001/XMLSchema#boolean> .
6+
47
<http://example.com/boolean-object> <http://example.com/example> "True"^^<http://www.w3.org/2001/XMLSchema#boolean> .
58
<http://example.com/boolean-object> <http://example.com/example> "False"^^<http://www.w3.org/2001/XMLSchema#boolean> .
69

tests/fromRdf/0027-out.jsonld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
{"@value": false}
77
]
88
},
9+
{
10+
"@id": "http://example.com/boolean-number",
11+
"http://example.com/example": [
12+
{"@value": true},
13+
{"@value": false}
14+
]
15+
},
916
{
1017
"@id": "http://example.com/boolean-object",
1118
"http://example.com/example": [

0 commit comments

Comments
 (0)