From 56e1a045bd986ca4909a8b3bb71caf1b2262dd67 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:12:11 +0000 Subject: [PATCH] chore(deps): bump n3 from 1.17.4 to 1.20.3 (#220) * chore(deps): bump n3 from 1.17.4 to 1.20.3 Bumps [n3](https://github.com/rdfjs/N3.js) from 1.17.4 to 1.20.3. - [Release notes](https://github.com/rdfjs/N3.js/releases) - [Commits](https://github.com/rdfjs/N3.js/compare/v1.17.4...v1.20.3) --- updated-dependencies: - dependency-name: n3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * chore: use rdf-isomorphic for tests --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Wright <63333554+jeswr@users.noreply.github.com> --- package.json | 1 + test/orch.spec.ts | 3 ++- test/util.spec.ts | 7 ++++--- yarn.lock | 8 ++++---- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b11c30e..88d3f0b 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "chai": "^4.3.7", "componentsjs-generator": "^4.0.1", "mocha": "^10.2.0", + "rdf-isomorphic": "^1.3.1", "sinon": "^18.0.0", "ts-mocha": "^10.0.0", "tsconfig.json": "^1.0.11", diff --git a/test/orch.spec.ts b/test/orch.spec.ts index 9cd5fb1..be54c92 100644 --- a/test/orch.spec.ts +++ b/test/orch.spec.ts @@ -6,6 +6,7 @@ import { Reasoner } from '../src/orchestrator/Reasoner'; import { parseAsN3Store } from '../src/util'; import { QueryEngine } from '@comunica/query-sparql-rdfjs'; import { ComponentsManager } from 'componentsjs'; +import { isomorphic } from "rdf-isomorphic"; const myEngine = new QueryEngine(); @@ -19,7 +20,7 @@ describe("orch", () => { it("can do test00.n3 with test00.rule.n3", async () => { const result = await doReason('test/t/test00.n3','test/t/test00.rule.n3'); const expected = await getStore('test/t/test00.out.n3'); - assert.deepEqual(result,expected); + assert.isTrue(isomorphic([...result], [...expected])); }); it("can do test00.n3 with test01.rule.n3", async () => { diff --git a/test/util.spec.ts b/test/util.spec.ts index b985bfd..a29e085 100644 --- a/test/util.spec.ts +++ b/test/util.spec.ts @@ -13,6 +13,7 @@ import { } from "../src/util"; import { QueryEngine } from '@comunica/query-sparql-rdfjs'; import { assert } from "chai"; +import { isomorphic } from "rdf-isomorphic"; const myEngine = new QueryEngine(); @@ -30,7 +31,7 @@ describe("parseAsN3Store", () => { const expect = await testStore(` a .`); const result = await parseAsN3Store("test/t/test00.jsonld"); - assert.deepEqual(result,expect); + assert.isTrue(isomorphic([...result], [...expect])); }); }) @@ -114,7 +115,7 @@ describe("extractGraph", () => { const store2 = extractGraph(store1,nn); const store3 = await testStore(` .`); - assert.deepEqual(store2,store3); + assert.isTrue(isomorphic([...store2], [...store3])); }); }); @@ -127,7 +128,7 @@ describe("rdfTransformString", () => { const n3Store = await testStore(n3); const outputStore = await testStore(output); - assert.deepEqual(n3Store,outputStore); + assert.isTrue(isomorphic([...n3Store], [...outputStore])); }); }); diff --git a/yarn.lock b/yarn.lock index 9a79130..f9db80d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3519,9 +3519,9 @@ mute-stream@0.0.7: integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== n3@^1.16.3, n3@^1.16.4, n3@^1.17.0, n3@^1.6.3: - version "1.17.4" - resolved "https://registry.yarnpkg.com/n3/-/n3-1.17.4.tgz#4eea7ec0b8ac9e4a61183e5cf8ea8a99f5b71d37" - integrity sha512-G5RR9PKLJXQU1uDJ2cZq+zp23V5XruqWhAGlCpF2/8kLiPbqEKOXDXgOLuoMqFwdxO/oBE2h4KNGQUp0aQ0OLA== + version "1.20.3" + resolved "https://registry.yarnpkg.com/n3/-/n3-1.20.3.tgz#4acc1664c74d07ed2f582d1c3e714980d715fe05" + integrity sha512-XBoBuF2WKOzoFqeJHjF5WFlouh97euTJeEXNbndjDrZiJgHSlOXaBWh42a9ieaFvlv8dfjOak4ojHxVCZe4sxQ== dependencies: buffer "^6.0.3" queue-microtask "^1.1.2" @@ -3680,7 +3680,7 @@ rdf-data-factory@^1.0.1, rdf-data-factory@^1.1.0, rdf-data-factory@^1.1.1, rdf-d dependencies: "@rdfjs/types" "*" -rdf-isomorphic@^1.3.0: +rdf-isomorphic@^1.3.0, rdf-isomorphic@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/rdf-isomorphic/-/rdf-isomorphic-1.3.1.tgz#cd6d433cd85bf79d903d5f0fdeea42a40eb27265" integrity sha512-6uIhsXTVp2AtO6f41PdnRV5xZsa0zVZQDTBdn0br+DZuFf5M/YD+T6m8hKDUnALI6nFL/IujTMLgEs20MlNidQ==