Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/fromRdf-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@
},
"input": "fromRdf/0027-in.nq",
"expect": "fromRdf/0027-out.jsonld"
}, {
"@id": "#t0028",
"@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"],
"name": "use native types flag with non-native values",
"purpose": "Ensure that useNativeTypes flag being true does not interfere with values that cannot be serialized into a native value.",
"option": {
"useNativeTypes": true
},
"input": "fromRdf/0028-in.nq",
"expect": "fromRdf/0028-out.jsonld"
}, {
"@id": "#tdi01",
"@type": [ "jld:PositiveEvaluationTest", "jld:FromRDFTest" ],
Expand Down
5 changes: 5 additions & 0 deletions tests/fromRdf/0028-in.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<http://example.com> <http://example.com/property> "string" .
<http://example.com> <http://example.com/property> "hello"@en .
<http://example.com> <http://example.com/property> "No"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://example.com> <http://example.com/property> "AAA"^^<http://www.w3.org/2001/XMLSchema#double> .
<http://example.com> <http://example.com/property> "{\"x\": 1}"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .
28 changes: 28 additions & 0 deletions tests/fromRdf/0028-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"@id": "http://example.com",
"http://example.com/property": [
{
"@value": "AAA",
"@type": "http://www.w3.org/2001/XMLSchema#double"
},
{
"@value": {
"x": 1
},
"@type": "@json"
},
{
"@value": "No",
"@type": "http://www.w3.org/2001/XMLSchema#boolean"
},
{
"@value": "string"
},
{
"@language": "en",
"@value": "hello"
}
]
}
]
Loading