From 3d1981aed320d4f51732e9fc4068dd39cdee5cff Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Thu, 10 Oct 2024 15:56:59 +0200 Subject: [PATCH] Use renamed bindings-factory package --- pages/docs/1_query/advanced/bindings.md | 8 ++++---- pages/docs/1_query/advanced/context.md | 4 ++-- pages/docs/1_query/advanced/rdfjs.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/docs/1_query/advanced/bindings.md b/pages/docs/1_query/advanced/bindings.md index 10846cc36..264179cc9 100644 --- a/pages/docs/1_query/advanced/bindings.md +++ b/pages/docs/1_query/advanced/bindings.md @@ -14,10 +14,10 @@ and a solution sequence is equivalent to a bindings stream. Bindings object are represented using the [RDF/JS `Bindings`](http://rdf.js.org/query-spec/#bindings-interface) interface, and can be created using any RDF/JS [`BindingsFactory`](http://rdf.js.org/query-spec/#bindingsfactory-interface). -Comunica provides the [`@comunica/bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) package that implements these interfaces. +Comunica provides the [`@comunica/utils-bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) package that implements these interfaces. Below, several examples are shown on how these bindings objects can be used. -Please refer to [the README of `@comunica/bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) for a complete overview of its operations. +Please refer to [the README of `@comunica/utils-bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) for a complete overview of its operations. ## Reading values of bindings @@ -92,8 +92,8 @@ Can output in the form of: First, a bindings factory must be created: ```typescript import * as RDF from '@rdfjs/types'; -import { DataFactory } from '@comunica/data-factory'; -import { BindingsFactory } from '@comunica/bindings-factory'; +import { DataFactory } from 'rdf-data-factory'; +import { BindingsFactory } from '@comunica/utils-bindings-factory'; const DF = new DataFactory(); const BF = new BindingsFactory(DF); diff --git a/pages/docs/1_query/advanced/context.md b/pages/docs/1_query/advanced/context.md index 773ae32b6..9a5ea60e3 100644 --- a/pages/docs/1_query/advanced/context.md +++ b/pages/docs/1_query/advanced/context.md @@ -120,7 +120,7 @@ This may be valuable in case your SPARQL query is used as a template with some v This can be done by passing an [RDF/JS `Bindings`](http://rdf.js.org/query-spec/#bindings-interface) object as value to the `initialBindings` context entry: ```javascript -import { BindingsFactory } from '@comunica/bindings-factory'; +import { BindingsFactory } from '@comunica/utils-bindings-factory'; import { DataFactory } from 'rdf-data-factory'; const DF = new DataFactory(); @@ -138,7 +138,7 @@ const bindingsStream = await myEngine.queryBindings(`SELECT * WHERE { ``` `Bindings` can be created using any [RDF/JS `BindingsFactory`](http://rdf.js.org/query-spec/#bindingsfactory-interface), -such as [`@comunica/bindings-factory`](https://www.npmjs.com/package/@comunica/bindings-factory). +such as [`@comunica/utils-bindings-factory`](https://www.npmjs.com/package/@comunica/utils-bindings-factory). Learn more about the creation of these bindings objects in the [bindings guide](/docs/query/advanced/bindings/). ## 7. Setting the query format diff --git a/pages/docs/1_query/advanced/rdfjs.md b/pages/docs/1_query/advanced/rdfjs.md index 48bb0fc36..a4dd52805 100644 --- a/pages/docs/1_query/advanced/rdfjs.md +++ b/pages/docs/1_query/advanced/rdfjs.md @@ -99,5 +99,5 @@ of a [source-based context](https://rdf.js.org/query-spec/#querysourcecontext-in Next to that, Comunica also implements the [`BindingsFactory`](http://rdf.js.org/query-spec/#bindingsfactory-interface) and [`Bindings`](http://rdf.js.org/query-spec/#bindings-interface) interfaces via the -[`@comunica/bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) package. +[`@comunica/utils-bindings-factory`](https://github.com/comunica/comunica/tree/master/packages/bindings-factory) package. Learn more about the usage of these bindings [here](/docs/query/advanced/bindings/).