From 9f6ff37aa509933d5fe9923995e62d8eb16973e5 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Tue, 13 Feb 2024 17:36:09 +0100 Subject: [PATCH] build(deps): update rdf-sparql-builder --- .changeset/witty-pans-wave.md | 5 +++++ lib/query/ViewQuery/Filters.js | 2 +- lib/query/ViewQuery/Result.js | 2 +- lib/query/ViewQuery/index.js | 2 +- lib/query/cube.js | 2 +- lib/query/cubes.js | 2 +- lib/query/cubesFilter.js | 2 +- lib/query/view.js | 2 +- lib/query/views.js | 2 +- package-lock.json | 27 ++++++++++++++++++++------- package.json | 2 +- 11 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 .changeset/witty-pans-wave.md diff --git a/.changeset/witty-pans-wave.md b/.changeset/witty-pans-wave.md new file mode 100644 index 0000000..3109fc7 --- /dev/null +++ b/.changeset/witty-pans-wave.md @@ -0,0 +1,5 @@ +--- +"rdf-cube-view-query": patch +--- + +Updated `rdf-sparql-builder` to `0.2.2` diff --git a/lib/query/ViewQuery/Filters.js b/lib/query/ViewQuery/Filters.js index e62db2c..42cc1b0 100644 --- a/lib/query/ViewQuery/Filters.js +++ b/lib/query/ViewQuery/Filters.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../../namespaces.js' import { contains } from '../utils.js' diff --git a/lib/query/ViewQuery/Result.js b/lib/query/ViewQuery/Result.js index 0b41f29..dbcbe47 100644 --- a/lib/query/ViewQuery/Result.js +++ b/lib/query/ViewQuery/Result.js @@ -1,4 +1,4 @@ -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../../namespaces.js' import { contains } from '../utils.js' diff --git a/lib/query/ViewQuery/index.js b/lib/query/ViewQuery/index.js index c826c0f..d872336 100644 --- a/lib/query/ViewQuery/index.js +++ b/lib/query/ViewQuery/index.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import Dimensions from './Dimensions.js' import Filters from './Filters.js' import Patterns from './Patterns.js' diff --git a/lib/query/cube.js b/lib/query/cube.js index e7f5d7d..c6b04ef 100644 --- a/lib/query/cube.js +++ b/lib/query/cube.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../namespaces.js' export function cubeQuery({ cube, graph = rdf.defaultGraph() } = {}) { diff --git a/lib/query/cubes.js b/lib/query/cubes.js index 82ff3af..aa060b6 100644 --- a/lib/query/cubes.js +++ b/lib/query/cubes.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../namespaces.js' export function cubesQuery({ filters = [], graph = rdf.defaultGraph() } = {}) { diff --git a/lib/query/cubesFilter.js b/lib/query/cubesFilter.js index e0c48f5..6dc8115 100644 --- a/lib/query/cubesFilter.js +++ b/lib/query/cubesFilter.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import { sparql as sparqlTemplate } from '@tpluscode/rdf-string' import * as ns from '../namespaces.js' diff --git a/lib/query/view.js b/lib/query/view.js index 89ceeae..89192cc 100644 --- a/lib/query/view.js +++ b/lib/query/view.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../namespaces.js' export function viewDefQuery({ view, graph = rdf.defaultGraph() } = {}) { diff --git a/lib/query/views.js b/lib/query/views.js index 5ab2363..1552599 100644 --- a/lib/query/views.js +++ b/lib/query/views.js @@ -1,5 +1,5 @@ import rdf from '@zazuko/env' -import sparql from 'rdf-sparql-builder' +import * as sparql from 'rdf-sparql-builder' import * as ns from '../namespaces.js' export function viewListQuery({ filters = [], graph = rdf.defaultGraph() } = {}) { diff --git a/package-lock.json b/package-lock.json index 34db04f..6fa6fea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@tpluscode/rdf-string": "^1.1.3", "@zazuko/env": "^2.0.4", "commander": "^5.1.0", - "rdf-sparql-builder": "^0.1.10", + "rdf-sparql-builder": "^0.2.2", "sparql-http-client": "^2.2.2" }, "devDependencies": { @@ -9517,15 +9517,28 @@ } }, "node_modules/rdf-sparql-builder": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/rdf-sparql-builder/-/rdf-sparql-builder-0.1.10.tgz", - "integrity": "sha512-oJxz7e3mzOAWC0bfsPud0PtbftmmaEFwrQwNad4cRNcqhmAueaGI7j6BEzFUqIhwsNVeivqHKIUh5UuHPGt2Ow==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/rdf-sparql-builder/-/rdf-sparql-builder-0.2.2.tgz", + "integrity": "sha512-t8Lbot/D85glFNbdwPshiLqetRK6K/0thk1TpVsooSZ6rA20khCH0zd5b6Zf7j7YBdh+hL+vDqXxNSyeG6oUEA==", "dependencies": { - "@rdfjs/data-model": "^1.1.2", - "@rdfjs/to-ntriples": "^1.0.2", - "lodash": "^4.17.15" + "@rdfjs/data-model": "^2.0.1", + "@rdfjs/to-ntriples": "^2.0.0", + "lodash": "^4.17.21" } }, + "node_modules/rdf-sparql-builder/node_modules/@rdfjs/data-model": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@rdfjs/data-model/-/data-model-2.0.2.tgz", + "integrity": "sha512-v5LRNkLRJazMCGU7VtEzhz5wKwz/IrOdJEKapCtd35HuFbQfeGpoJP6QOXGyFHhWwKmtG+UMlZzYFyNDVE1m6g==", + "bin": { + "rdfjs-data-model-test": "bin/test.js" + } + }, + "node_modules/rdf-sparql-builder/node_modules/@rdfjs/to-ntriples": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@rdfjs/to-ntriples/-/to-ntriples-2.0.0.tgz", + "integrity": "sha512-nDhpfhx6W6HKsy4HjyLp3H1nbrX1CiUCWhWQwKcYZX1s9GOjcoQTwY7GUUbVec0hzdJDQBR6gnjxtENBDt482Q==" + }, "node_modules/rdf-transform-triple-to-quad": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/rdf-transform-triple-to-quad/-/rdf-transform-triple-to-quad-1.0.2.tgz", diff --git a/package.json b/package.json index 19a22a6..89a3188 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@tpluscode/rdf-string": "^1.1.3", "@zazuko/env": "^2.0.4", "commander": "^5.1.0", - "rdf-sparql-builder": "^0.1.10", + "rdf-sparql-builder": "^0.2.2", "sparql-http-client": "^2.2.2" }, "devDependencies": {