@types/rdf-js
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -13,4 +13,4 @@ // Type definitions for the RDFJS specification 2.0 | ||
/* Data Interfaces */ | ||
/* https://github.com/rdfjs/representation-task-force/blob/master/interface-spec.md#data-interfaces */ | ||
/* Data Model Interfaces */ | ||
/* https://rdf.js.org/data-model-spec/ */ | ||
@@ -315,3 +315,3 @@ /** | ||
/* Stream Interfaces */ | ||
/* https://github.com/rdfjs/representation-task-force/blob/master/interface-spec.md#stream-interfaces */ | ||
/* https://rdf.js.org/stream-spec/ */ | ||
@@ -428,1 +428,54 @@ /** | ||
} | ||
/* Dataset Interfaces */ | ||
/* https://rdf.js.org/dataset-spec/ */ | ||
export interface DatasetCore<Q extends BaseQuad = Quad> { | ||
/** | ||
* A non-negative integer that specifies the number of quads in the set. | ||
*/ | ||
readonly size: number; | ||
/** | ||
* Adds the specified quad to the dataset. | ||
* | ||
* Existing quads, as defined in `Quad.equals`, will be ignored. | ||
*/ | ||
add(quad: Q): this; | ||
/** | ||
* Removes the specified quad from the dataset. | ||
*/ | ||
delete(quad: Q): this; | ||
/** | ||
* Determines whether a dataset includes a certain quad. | ||
*/ | ||
has(quad: Q): boolean; | ||
/** | ||
* Returns a new dataset that is comprised of all quads in the current instance matching the given arguments. | ||
* | ||
* The logic described in {@link https://rdf.js.org/dataset-spec/#quad-matching|Quad Matching} is applied for each | ||
* quad in this dataset to check if it should be included in the output dataset. | ||
* | ||
* This method always returns a new DatasetCore, even if that dataset contains no quads. | ||
* | ||
* Since a `DatasetCore` is an unordered set, the order of the quads within the returned sequence is arbitrary. | ||
* | ||
* @param subject The optional exact subject to match. | ||
* @param predicate The optional exact predicate to match. | ||
* @param object The optional exact object to match. | ||
* @param graph The optional exact graph to match. | ||
*/ | ||
match(subject?: Term, predicate?: Term, object?: Term, graph?: Term): DatasetCore<Q>; | ||
[Symbol.iterator](): Iterator<Q>; | ||
} | ||
export interface DatasetCoreFactory<Q extends BaseQuad = Quad> { | ||
/** | ||
* Returns a new dataset and imports all quads, if given. | ||
*/ | ||
dataset(quads?: Q[]): DatasetCore<Q>; | ||
} |
{ | ||
"name": "@types/rdf-js", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "TypeScript definitions for the RDFJS specification", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -30,4 +30,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "cac4ebcbfa82166fc1a73c8cb653b60c8db1073ffe8c42a37def7f63f2468cde", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "5048e4f12e6aed953f3e9bd51b676f63243345470314385287dc7983ce26c301", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for the RDFJS specification ( https://github.com/rdfjs/representation-task-force ). | ||
This package contains type definitions for the RDFJS specification (https://github.com/rdfjs/representation-task-force). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdf-js | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdf-js. | ||
Additional Details | ||
* Last updated: Thu, 30 May 2019 17:59:33 GMT | ||
* Dependencies: @types/node | ||
### Additional Details | ||
* Last updated: Tue, 26 Nov 2019 23:20:49 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Ruben Taelman <https://github.com/rubensworks>, Laurens Rietveld <https://github.com/LaurensRietveld>. | ||
These definitions were written by Ruben Taelman (https://github.com/rubensworks), and Laurens Rietveld (https://github.com/LaurensRietveld). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17138
433