Skip to content

Commit

Permalink
Use renamed bindings-factory package
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 10, 2024
1 parent 3d73e1d commit 3d1981a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pages/docs/1_query/advanced/bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ and a <i>solution sequence</i> 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

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions pages/docs/1_query/advanced/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/1_query/advanced/rdfjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

0 comments on commit 3d1981a

Please sign in to comment.