Skip to content

Commit

Permalink
chore: rename to jest + minor doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maartyman committed Jan 15, 2025
1 parent 6831a60 commit 2525563
Show file tree
Hide file tree
Showing 33 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .componentsjs-generator-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packages/context-entries",
"packages/data-factory",
"packages/jest",
"packages/incremental-jest",
"packages/jest",
"packages/dev-tools",
"packages/inner-join",
"packages/packager",
Expand Down
4 changes: 2 additions & 2 deletions engines/config-query-sparql-incremental/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Comunica SPARQL Config
# Incremunica incremental SPARQL Config

[![npm version](https://badge.fury.io/js/%40comunica%2Fconfig-query-sparql.svg)](https://www.npmjs.com/package/@comunica/config-query-sparql-incremental)

The default configuration files for [Comunica SPARQL Incremental](https://github.com/maartyman/incremental/tree/master/packages/incremental#readme).
The default configuration files for [Incremunica SPARQL Incremental](https://github.com/maartyman/incremental/tree/master/packages/incremental#readme).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion engines/query-sparql-incremental/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function main() {
main();
```

You can also use an [incremental triple store](https://www.npmjs.com/package/@incremunica/incremental-rdf-streaming-store).
You can also use an [incremental triple store](https://www.npmjs.com/package/@incremunica/streaming-store).
This store allows you to change the dataset (additions and deletions) and show you the changes in the query results.
```javascript
const QueryEngine = require('@incremunica/query-sparql-incremental').QueryEngine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Needed to undo automock from actor-http-native, cleaner workarounds do not appear to be working.
import 'jest-rdf';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import type { EventEmitter } from 'events';
import type { BindingsStream, QueryStringContext } from '@comunica/types';
import type { BindingsFactory } from '@comunica/utils-bindings-factory';
Expand Down
2 changes: 1 addition & 1 deletion engines/query-sparql-incremental/test/QuerySparql-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Needed to undo automock from actor-http-native, cleaner workarounds do not appear to be working.
import 'jest-rdf';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import { EventEmitter } from 'events';
import * as http from 'node:http';
import type { Bindings, BindingsStream, QueryStringContext } from '@comunica/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { KeysBindings } from '@incremunica/context-entries';
import { createTestBindingsFactory } from '@incremunica/dev-tools';
import { DataFactory } from 'rdf-data-factory';
import { ActorMergeBindingsContextIsAddition } from '../lib';
import '@incremunica/incremental-jest';
import '@incremunica/jest';

const DF = new DataFactory();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'jest-rdf';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import { EventEmitter } from 'node:events';
import { ActionContext, Bus } from '@comunica/core';
import type { IActionContext, IActionContextKey } from '@comunica/types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { DataFactory } from 'rdf-data-factory';
import { PassThrough } from 'readable-stream';
import { Factory } from 'sparqlalgebrajs';
import { StreamingQuerySourceRdfJs } from '../lib';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import '@comunica/utils-jest';
import 'jest-rdf';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
ActorRdfJoinInnerComputationalBind,
} from '../lib';
import '@comunica/utils-jest';
import '@incremunica/incremental-jest';
import '@incremunica/jest';

const streamifyArray = require('streamify-array');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { arrayifyStream } from 'arrayify-stream';
import { ArrayIterator } from 'asynciterator';
import { DataFactory } from 'rdf-data-factory';
import { ActorRdfJoinInnerDeleteHash } from '../lib/ActorRdfJoinInnerDeleteHash';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import '@comunica/utils-jest';

const DF = new DataFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { arrayifyStream } from 'arrayify-stream';
import { ArrayIterator } from 'asynciterator';
import { DataFactory } from 'rdf-data-factory';
import { ActorRdfJoinInnerFullHash } from '../lib';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import '@comunica/utils-jest';

const DF = new DataFactory();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import { DualKeyHashMap } from '../lib/DualKeyHashMap';

class TestObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { arrayifyStream } from 'arrayify-stream';
import { ArrayIterator } from 'asynciterator';
import { DataFactory } from 'rdf-data-factory';
import { ActorRdfJoinInnerMatchHash } from '../lib';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import '@comunica/utils-jest';

const DF = new DataFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { DataFactory } from 'rdf-data-factory';
import { Factory } from 'sparqlalgebrajs';
import { ActorRdfJoinInnerMemoryBind } from '../lib';
import '@comunica/utils-jest';
import '@incremunica/incremental-jest';
import '@incremunica/jest';

const DF = new DataFactory();
const FACTORY = new Factory(DF);
Expand Down
14 changes: 7 additions & 7 deletions packages/actor-rdf-join-inner-nestedloop/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Incremunica Inner Incremental Nestedloop RDF Join Actor
# Incremunica Inner Nestedloop RDF Join Actor

[![npm version](https://badge.fury.io/js/@incremunica%2Factor-rdf-join-inner-incremental-nestedloop.svg)](https://badge.fury.io/js/@incremunica%2Factor-rdf-join-inner-incremental-nestedloop)
[![npm version](https://badge.fury.io/js/@incremunica%2Factor-rdf-join-inner-nestedloop.svg)](https://badge.fury.io/js/@incremunica%2Factor-rdf-join-inner-nestedloop)

A comunica Inner Incremental Nestedloop RDF Join Actor.
A comunica Inner Nestedloop RDF Join Actor.

## Install

```bash
$ yarn add @comunica/actor-rdf-join-inner-incremental-nestedloop
$ yarn add @comunica/actor-rdf-join-inner-nestedloop
```

## Configure
Expand All @@ -17,13 +17,13 @@ After installing, this package can be added to your engine's configuration as fo
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-inner-incremental-nestedloop/^1.0.0/components/context.jsonld"
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-inner-nestedloop/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:rdf-join/actors#inner-incremental-nestedloop",
"@type": "ActorRdfJoinInnerIncrementalNestedloop",
"@id": "urn:comunica:default:rdf-join/actors#inner-nestedloop",
"@type": "ActorRdfJoinInnerNestedloop",
"mediatorJoinSelectivity": { "@id": "urn:comunica:default:rdf-join-selectivity/mediators#main" }
}
]
Expand Down
8 changes: 4 additions & 4 deletions packages/actor-rdf-join-inner-nestedloop/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@incremunica/actor-rdf-join-inner-incremental-nestedloop",
"name": "@incremunica/actor-rdf-join-inner-nestedloop",
"version": "1.3.0",
"description": "A inner-incremental-nestedloop rdf-join actor",
"description": "A inner-nestedloop rdf-join actor",
"lsd:module": true,
"license": "MIT",
"homepage": "https://maartyman.github.io/incremunica/",
"repository": {
"type": "git",
"url": "https://github.com/maartyman/incremunica.git",
"directory": "packages/actor-rdf-join-inner-incremental-nestedloop"
"directory": "packages/actor-rdf-join-inner-nestedloop"
},
"bugs": {
"url": "https://github.com/maartyman/incremunica/issues"
Expand All @@ -17,7 +17,7 @@
"comunica",
"actor",
"rdf-join",
"inner-incremental-nestedloop"
"inner-nestedloop"
],
"sideEffects": false,
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { arrayifyStream } from 'arrayify-stream';
import { ArrayIterator } from 'asynciterator';
import { DataFactory } from 'rdf-data-factory';
import { ActorRdfJoinInnerNestedloop } from '../lib/ActorRdfJoinInnerNestedloop';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import '@comunica/utils-jest';

const DF = new DataFactory();
Expand Down
2 changes: 1 addition & 1 deletion packages/actor-rdf-join-minus-hash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ After installing, this package can be added to your engine's configuration as fo
...
{
"@id": "urn:comunica:default:rdf-join/actors#minus-hash",
"@type": "ActorRdfJoinIncrementalMinusHash",
"@type": "ActorRdfJoinMinusHash",
"mediatorJoinSelectivity": { "@id": "urn:comunica:default:rdf-join-selectivity/mediators#main" }
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type * as RDF from '@rdfjs/types';
import { arrayifyStream } from 'arrayify-stream';
import { ArrayIterator } from 'asynciterator';
import { DataFactory } from 'rdf-data-factory';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import { ActorRdfJoinOptionalHash } from '../lib';

const DF = new DataFactory();
Expand Down
2 changes: 1 addition & 1 deletion packages/inner-join/test/InnerJoin-test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Bindings } from '@comunica/utils-bindings-factory';
import type { AsyncIterator } from 'asynciterator';
import { ArrayIterator } from 'asynciterator';
import '@incremunica/incremental-jest';
import '@incremunica/jest';
import { InnerJoin } from '../lib';

const cleanupMock = jest.fn();
Expand Down
10 changes: 5 additions & 5 deletions packages/incremental-jest/README.md → packages/jest/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Incremunica Jest helpers

[![npm version](https://badge.fury.io/js/@incremunica%2Fincremental-jest.svg)](https://badge.fury.io/js/@incremunica%2Fincremental-jest)
[![npm version](https://badge.fury.io/js/@incremunica%2Fjest.svg)](https://badge.fury.io/js/@incremunica%2Fjest)

Jest test helpers for Comunica.
This package is similar to the original one,
Expand All @@ -20,15 +20,15 @@ This can be done by adding the following entry to your Jest configuration:
```json
{
"jest": {
"setupFilesAfterEnv": ["@comunica/incremental-jest"]
"setupFilesAfterEnv": ["@incremunica/jest"]
}
}
```

If you are already using an existing test framework script file,
make sure to add @comunica/jest as follows to your file:
```javascript
require('@comunica/incremental-jest');
require('@incremunica/jest');
```

## _Optional: Typescript typings configuration_
Expand All @@ -38,15 +38,15 @@ you will need to import the typings of this package to make the TS compiler reco

For this, include the following import at the top of each applicable test file:
```
import "@comunica/incremental-jest";
import "@incremunica/jest";
```

## API

All examples below make use of these helpers:

```js
import { BindingsFactory } from '@comunica/incremental-bindings-factory';
import { BindingsFactory } from '@comunica/utils-bindings-factory';
import { DataFactory } from 'rdf-data-factory';

const BF = new BindingsFactory();
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@incremunica/incremental-jest",
"name": "@incremunica/jest",
"version": "1.3.0",
"description": "Jest utilities for incremunica",
"license": "MIT",
"homepage": "https://maartyman.github.io/incremunica/",
"repository": {
"type": "git",
"url": "https://github.com/maartyman/incremunica.git",
"directory": "packages/incremental-jest"
"directory": "packages/jest"
},
"bugs": {
"url": "https://github.com/maartyman/incremunica/issues"
Expand Down
2 changes: 1 addition & 1 deletion setup-jest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jest.setTimeout(20000);
require('jest-rdf');
require('@comunica/utils-jest');
require('@incremunica/incremental-jest');
require('@incremunica/jest');

0 comments on commit 2525563

Please sign in to comment.