open-index/open-npm huggingface dataset:
npm package: @prov4itdata/actor-init-sparql
Description: A Comunica engine for PROV4ITDaTa
Latest version: 1.1.0

# Comunica PROV4ITDaTa Init Actor

A custom Comunica query engine, configured to be used by the PROV4ITDaTa project.

<!-- This module is part of the [Comunica framework](https://comunica.dev/). -->

## Install

```bash
$ yarn add @prov4itdata/actor-init-sparql
```

or

```bash
$ npm install -g @prov4itdata/actor-init-sparql
```

### Usage within application

This engine can be used in JavaScript/TypeScript applications as follows:

```javascript
const newEngine = require('@comunica/actor-init-sparql-amf').newEngine;
const myEngine = newEngine();

const result = await myEngine.query(`
  SELECT * WHERE {
      ?s ?p ?o
  }`, {
  sources: ['http://localhost:3000/dataset'],
});

// Consume results as a stream (best performance)
result.bindingsStream.on('data', (binding) => {
    console.log(binding.get('?s').value);
    console.log(binding.get('?s').termType);

    console.log(binding.get('?p').value);

    console.log(binding.get('?o').value);
});

// Consume results as an array (easier)
const bindings = await result.bindings();
console.log(bindings[0].get('?s').value);
console.log(bindings[0].get('?s').termType);

// Log metadata containing source-level provenance information
const metadata = await result.metadata();
console.log(metadata)
```

_[**Read more** about querying an application](https://comunica.dev/docs/query/getting_started/query_app/)._
npm package: @prov4itdata/actor-optimize-query-operation-provenance-wrapper
Description: A provenance-wrapper optimize-query-operation actor
Latest version: 1.1.0

# Comunica Provenance Wrapper Optimize Query Operation Actor

[![npm version](https://badge.fury.io/js/%40comunica%2Factor-optimize-query-operation-provenance-wrapper.svg)](https://www.npmjs.com/package/@prov4itdata/actor-optimize-query-operation-provenance-wrapper)

A comunica Provenance Wrapper Optimize Query Operation Actor.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @prov4itdata/actor-optimize-query-operation-provenance-wrapper
```

## Configure

After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@prov4itdata/actor-optimize-query-operation-provenance-wrapper/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "@prov4itdata/actor-optimize-query-operation-provenance-wrapper",
      "@type": "ActorOptimizeQueryOperationProvenanceWrapper"
    }
  ]
}
```
npm package: @prov4itdata/actor-query-operation-collect-provenance
Description: A collect-provenance query-operation actor
Latest version: 1.1.1

# Comunica Collect Provenance Query Operation Actor

[![npm version](https://badge.fury.io/js/%40comunica%2Factor-query-operation-collect-provenance.svg)](https://www.npmjs.com/package/@prov4itdata/actor-query-operation-collect-provenance)

Uses a Comunica observer to collect metadata from query operations executed on the query operation bus, and passes it on to the query result.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @prov4itdata/actor-query-operation-collect-provenance
```

## Configure

After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@prov4itdata/actor-query-operation-collect-provenance/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:sparql-queryoperators.json#myCollectProvenanceQueryOperator",
      "@type": "ActorQueryOperationCollectProvenance",
      "cbqo:mediatorQueryOperation": { "@id": "config-sets:sparql-queryoperators.json#mediatorQueryOperation" }
    }
  ]
}
```

### Config Parameters

* `cbqo:mediatorQueryOperation`: A mediator over the [Query Operation bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation).
npm package: @prov4itdata/actor-rdf-metadata-extract-annotate-provenance
Description: A membership rdf-metadata-extract actor
Latest version: 1.0.0

# Comunica Annotate Provenance RDF Metadata Extract Actor
<!-- 
[![npm version](https://badge.fury.io/js/%40comunica%2Factor-rdf-metadata-extract-membership.svg)](https://www.npmjs.com/package/@comunica/actor-rdf-metadata-extract-membership)

An [RDF Metadata Extract](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-metadata-extract) actor that
extracts [Approximate Membership metadata](http://semweb.mmlab.be/ns/membership).

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/). -->

## Install

```bash
$ yarn add @prov4itdata/actor-rdf-metadata-extract-annotate-provenance
```

## Configure 

- [ ] TODO
<!-- After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@prov4itdata/actor-rdf-metadata-extract-membership/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-setsa:rdf-membership-filter.json#myMembershipMetadataExtractor",
      "@type": "ActorRdfMetadataExtractMembership",
      "carmem:mediatorRdfMembership": {
        "@id": "config-setsa:rdf-membership-filter.json#mediatorRdfMembership",
        "@type": "MediatorRace",
        "cc:Mediator/bus": { "@id": "cbrmf:Bus/RdfMembershipFilter" }
      },
      "carmem:mediatorRdfDereference": {
        "@id": "config-setsa:rdf-membership-filter.json#mediatorRdfDereference",
        "@type": "MediatorRace",
        "cc:Mediator/bus": { "@id": "cbrd:Bus/RdfDereference" }
      }
    }
  ]
}
``` -->
npm package: @prov4itdata/actor-rdf-resolve-quad-pattern-federated
Description: A federated rdf-resolve-quad-pattern actor
Latest version: 1.0.0

# Comunica Federated RDF Resolve Quad Pattern Actor

<!-- [![npm version](https://badge.fury.io/js/%40comunica%2Factor-rdf-resolve-quad-pattern-federated.svg)](https://www.npmjs.com/package/@comunica/actor-rdf-resolve-quad-pattern-federated)

An [RDF Resolve Quad Pattern](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-resolve-quad-pattern) actor
that handles [a federation of multiple sources](https://comunica.dev/docs/query/advanced/federation/),
and delegates resolving each source separately using the [RDF Resolve Quad Pattern bus](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-resolve-quad-pattern).

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/). -->

## Install

```bash
$ yarn add @prov4itdata/actor-rdf-resolve-quad-pattern-federated
```

## Configure
<!-- 
After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-quad-pattern-federated/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:resolve-federated.json#myFederatedQuadPatternResolver",
      "@type": "ActorRdfResolveQuadPatternFederated",
      "carrqpf:Actor/RdfResolveQuadPattern/Federated/mediatorResolveQuadPattern": {
        "@id": "config-sets:sparql-queryoperators.json#mediatorResolveQuadPattern"
      }
    }
  ]
}
```

### Config Parameters

* `carrqpf:Actor/RdfResolveQuadPattern/Federated/mediatorResolveQuadPattern`: A mediator over the [RDF Resolve Quad Pattern bus](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-resolve-quad-pattern). -->
npm package: @prov4itdata/context-entries
Description: A collection of reusable Comunica context key definitions.
Latest version: 1.0.0

# Comunica Context Entries

A collection of reusable Comunica context key definitions.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @comunica/context-entries
```

## Usage

```typescript
import { KeysInitSparql } from '@comunica/context-entries';

// ...

const baseIRI = context.get(KeysInitSparql.baseIRI);
```

All available keys are available in [`Keys`](https://github.com/comunica/comunica/blob/master/packages/context-entries/lib/Keys.ts).
npm package: @provably-fair/primedice
Description: Primedice bet simulation and verification tools
Author: Kristóf Poduszló
Latest version: 0.2.0

# @provably-fair/primedice

[Primedice] bet simulation and verification tools.

[![Version (npm)](https://img.shields.io/npm/v/@provably-fair/primedice.svg)](https://www.npmjs.com/package/@provably-fair/primedice)

[primedice]: https://primedice.com

## API Reference

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### generateServerSeed

Generates a random server seed.

**Parameters**

-   `size` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Size of random buffer in bytes. (optional, default `16`)

Returns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** A server seed of the given size.

### parseUIntFromBuffer

Parses a buffer and tries returning the first unsigned integer which fits the given range.

**Parameters**

-   `buf` **[Buffer](https://nodejs.org/api/buffer.html)** Buffer to be parsed.
-   `max` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Maximum value of output (excluded).
-   `size` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Size of parsable chunks in bytes. Must be less than or equal to 6.
-   `startOffset` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Where to start reading the buffer. (optional, default `0`)

Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** An unsigned integer parsed from the given buffer. If no appropriate number can
be parsed, `NaN` is returned.

### roll

Generates a random roll number based on the given seeds.

**Parameters**

-   `serverSeed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Server seed used as HMAC key.
-   `clientSeed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Client seed used as HMAC data. To prove fairness of random outputs,
    the hash of `serverSeed` shall be known before revealing `clientSeed`.
-   `nonce` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Number of bets made with the given seed pair (excluding current roll).

Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** A number within the range [0.00, 99.99].
npm package: @provably-fair/shuffle
Description: Array shuffling functionality for provably fair games
Author: Kristóf Poduszló
Latest version: 0.1.0

# @provably-fair/shuffle

Array shuffling functionality for provably fair games.

[![Version (npm)](https://img.shields.io/npm/v/@provably-fair/shuffle.svg)](https://www.npmjs.com/package/@provably-fair/shuffle)

## API Reference

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### shuffle

Shuffles an array based on the given seeds, using the given HMAC algorithm.

**Parameters**

-   `arr` **\[]** Array to be shuffled.
-   `hmacAlgorithm` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Algorithm used for computing the HMAC of the given seed pair.
-   `secretSeed` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Buffer](https://nodejs.org/api/buffer.html))** Secret seed used as HMAC key.
-   `publicSeed` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Buffer](https://nodejs.org/api/buffer.html))?** Public seed used as HMAC data. To prove fairness of random
    outputs, the hash of `secretSeed` shall be known before revealing `publicSeed`.
-   `hmacBufferUIntParser` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)?** Function to be used for parsing a UInt from the
    generated HMAC buffer.
-   `fallbackProvider` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)?** Function to provide a fallback value in a given range
    whether no appropriate number can be parsed from the generated HMAC buffer.

Returns **\[]** A new array instance containing every element of the input.