From dc290fce4b95511bac937acf684bbd5f53ac2137 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sun, 6 Apr 2025 20:33:57 +0400 Subject: [PATCH 1/5] #648 `0027-out.jsonld`: `@graph` and value objects --- tests/fromRdf/0027-out.jsonld | 101 +++++++++++++++------------------- 1 file changed, 45 insertions(+), 56 deletions(-) diff --git a/tests/fromRdf/0027-out.jsonld b/tests/fromRdf/0027-out.jsonld index f03c97a0..dc92ef14 100644 --- a/tests/fromRdf/0027-out.jsonld +++ b/tests/fromRdf/0027-out.jsonld @@ -1,56 +1,45 @@ -{ - "@graph": [ - { - "@id": "http://example.com/boolean-native", - "http://example.com/example": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#boolean", - "@value": true - }, - { - "@type": "http://www.w3.org/2001/XMLSchema#boolean", - "@value": false - } - ] - }, - { - "@id": "http://example.com/boolean-object", - "http://example.com/example": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#boolean", - "@value": "True" - }, - { - "@type": "http://www.w3.org/2001/XMLSchema#boolean", - "@value": "False" - } - ] - }, - { - "@id": "http://example.com/number-native", - "http://example.com/example": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 1 - } - ] - }, - { - "@id": "http://example.com/number-object", - "http://example.com/example": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#double", - "@value": "0.1e999999999999999" - }, - { - "@type": "http://www.w3.org/2001/XMLSchema#double", - "@value": "+INF" - }, - { - "@type": "http://www.w3.org/2001/XMLSchema#double", - "@value": "-INF" - } - ] - } - ] -} +[ + { + "@id": "http://example.com/boolean-native", + "http://example.com/example": [ + true, + false + ] + }, + { + "@id": "http://example.com/boolean-object", + "http://example.com/example": [ + { + "@type": "http://www.w3.org/2001/XMLSchema#boolean", + "@value": "True" + }, + { + "@type": "http://www.w3.org/2001/XMLSchema#boolean", + "@value": "False" + } + ] + }, + { + "@id": "http://example.com/number-native", + "http://example.com/example": [ + 1 + ] + }, + { + "@id": "http://example.com/number-object", + "http://example.com/example": [ + { + "@type": "http://www.w3.org/2001/XMLSchema#double", + "@value": "0.1e999999999999999" + }, + { + "@type": "http://www.w3.org/2001/XMLSchema#double", + "@value": "+INF" + }, + { + "@type": "http://www.w3.org/2001/XMLSchema#double", + "@value": "-INF" + } + ] + } +] From 01abbb71c757bdedf946ae9d33ac6e0fb7ae1aa0 Mon Sep 17 00:00:00 2001 From: anatoly-scherbakov Date: Sun, 6 Apr 2025 16:34:34 +0000 Subject: [PATCH 2/5] Automated report generation --- tests/fromRdf-manifest.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fromRdf-manifest.html b/tests/fromRdf-manifest.html index 1ab97678..9c103e9d 100644 --- a/tests/fromRdf-manifest.html +++ b/tests/fromRdf-manifest.html @@ -1421,11 +1421,11 @@

List of lists
input
- fromRdf/li02-in.nq + fromRdf/li03-in.nq
expect
- fromRdf/li02-out.jsonld + fromRdf/li03-out.jsonld
Options
From b58c9421f433c570bc21114f2e61238df034af97 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Thu, 24 Apr 2025 20:45:04 +0400 Subject: [PATCH 3/5] Even native values are within value objects Co-authored-by: Gregg Kellogg --- tests/fromRdf/0027-out.jsonld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fromRdf/0027-out.jsonld b/tests/fromRdf/0027-out.jsonld index dc92ef14..dde170cf 100644 --- a/tests/fromRdf/0027-out.jsonld +++ b/tests/fromRdf/0027-out.jsonld @@ -2,8 +2,8 @@ { "@id": "http://example.com/boolean-native", "http://example.com/example": [ - true, - false + {"@value": true}, + {"@value": false} ] }, { @@ -22,7 +22,7 @@ { "@id": "http://example.com/number-native", "http://example.com/example": [ - 1 + {"@value": 1} ] }, { From b089d33b8fe1fb0a2cbc3fefd2b3fff8f0249ffe Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sat, 17 May 2025 12:33:27 +0400 Subject: [PATCH 4/5] =?UTF-8?q?Code=20Review=20=C2=A9=20@pchampin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pierre-Antoine Champin --- tests/fromRdf-manifest.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fromRdf-manifest.html b/tests/fromRdf-manifest.html index 9c103e9d..1ab97678 100644 --- a/tests/fromRdf-manifest.html +++ b/tests/fromRdf-manifest.html @@ -1421,11 +1421,11 @@

List of lists
input
- fromRdf/li03-in.nq + fromRdf/li02-in.nq
expect
- fromRdf/li03-out.jsonld + fromRdf/li02-out.jsonld
Options
From b03a40196459344853bbf9465a50923bf20d8f8d Mon Sep 17 00:00:00 2001 From: anatoly-scherbakov Date: Sat, 17 May 2025 08:33:53 +0000 Subject: [PATCH 5/5] Automated report generation --- tests/fromRdf-manifest.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fromRdf-manifest.html b/tests/fromRdf-manifest.html index 1ab97678..9c103e9d 100644 --- a/tests/fromRdf-manifest.html +++ b/tests/fromRdf-manifest.html @@ -1421,11 +1421,11 @@

List of lists
input
- fromRdf/li02-in.nq + fromRdf/li03-in.nq
expect
- fromRdf/li02-out.jsonld + fromRdf/li03-out.jsonld
Options