Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zazuko/query-rdf-data-cube

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zazuko/query-rdf-data-cube - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="0.3.0"></a>
# [0.3.0](https://github.com/zazuko/query-rdf-data-cube/compare/v0.2.3...v0.3.0) (2019-10-30)
### Features
* **query:** many filters can be applied at once ([63b867b](https://github.com/zazuko/query-rdf-data-cube/commit/63b867b))
* **query:** select arg can be obj or array ([33bb231](https://github.com/zazuko/query-rdf-data-cube/commit/33bb231))
<a name="0.2.3"></a>

@@ -2,0 +13,0 @@ ## [0.2.3](https://github.com/zazuko/query-rdf-data-cube/compare/v0.2.2...v0.2.3) (2019-10-30)

4

dist/es/components/component.d.ts

@@ -155,1 +155,5 @@ import { Term } from "rdf-js";

}
/**
* @ignore
*/
export declare function isComponent(component: any): component is Component;

22

dist/es/query.d.ts

@@ -7,6 +7,7 @@ import { Literal, NamedNode } from "rdf-js";

import { FilterPattern, SelectQuery } from "./sparqljs";
declare type PredicateFunction = (data: Selects) => Component;
declare type PredicatesFunction = (data: Selects) => Component[];
declare type FilterFunction = (data: Selects) => Operator;
declare type Selects = Record<string, Component>;
declare type PredicateFunction = (data: SelectsObj) => Component;
declare type PredicatesFunction = (data: SelectsObj) => Component[];
declare type FilterFunction = (data: SelectsObj) => Operator;
declare type SelectsObj = Record<string, Component>;
declare type SelectsArr = Array<Array<string | Component>>;
export interface QueryOptions extends BaseOptions {

@@ -37,4 +38,3 @@ }

/**
* Decide what data needs to be returned by the query. An object with binding
* names as keys and [[Component]] ([[Dimension]]/[[Attribute]]/[[Measure]]) as values.
* Decide what data needs to be returned by the query.
*

@@ -48,5 +48,7 @@ * ```js

* ```
* @param {Selects} selects
* @param {SelectsObj | SelectsArr} selects Either object with binding names as keys
* and [[Component]] ([[Dimension]]/[[Attribute]]/[[Measure]]) as values,
* or an array of arrays: `[["bindingName", aComponent], …]`
*/
select(selects: Selects): Query;
select(selects: SelectsObj | SelectsArr): Query;
/**

@@ -64,6 +66,8 @@ * Filter the results.

* .filter(dateDimension.not.equals("2019-08-29T07:27:56.241Z"));
* // syntax 3:
* .filter([dateDimension.not.equals("2019-08-29T07:27:56.241Z"), secondFilter, thirdFilter, moreFilters]);
* ```
* @param filter
*/
filter(filter: IExpr | FilterFunction): Query;
filter(filter: IExpr | FilterFunction | Array<IExpr | FilterFunction>): Query;
/**

@@ -70,0 +74,0 @@ * Aggregate the results. Pass it a binding name used in `.select()` or a function

@@ -155,1 +155,5 @@ import { Term } from "rdf-js";

}
/**
* @ignore
*/
export declare function isComponent(component: any): component is Component;

@@ -7,6 +7,7 @@ import { Literal, NamedNode } from "rdf-js";

import { FilterPattern, SelectQuery } from "./sparqljs";
declare type PredicateFunction = (data: Selects) => Component;
declare type PredicatesFunction = (data: Selects) => Component[];
declare type FilterFunction = (data: Selects) => Operator;
declare type Selects = Record<string, Component>;
declare type PredicateFunction = (data: SelectsObj) => Component;
declare type PredicatesFunction = (data: SelectsObj) => Component[];
declare type FilterFunction = (data: SelectsObj) => Operator;
declare type SelectsObj = Record<string, Component>;
declare type SelectsArr = Array<Array<string | Component>>;
export interface QueryOptions extends BaseOptions {

@@ -37,4 +38,3 @@ }

/**
* Decide what data needs to be returned by the query. An object with binding
* names as keys and [[Component]] ([[Dimension]]/[[Attribute]]/[[Measure]]) as values.
* Decide what data needs to be returned by the query.
*

@@ -48,5 +48,7 @@ * ```js

* ```
* @param {Selects} selects
* @param {SelectsObj | SelectsArr} selects Either object with binding names as keys
* and [[Component]] ([[Dimension]]/[[Attribute]]/[[Measure]]) as values,
* or an array of arrays: `[["bindingName", aComponent], …]`
*/
select(selects: Selects): Query;
select(selects: SelectsObj | SelectsArr): Query;
/**

@@ -64,6 +66,8 @@ * Filter the results.

* .filter(dateDimension.not.equals("2019-08-29T07:27:56.241Z"));
* // syntax 3:
* .filter([dateDimension.not.equals("2019-08-29T07:27:56.241Z"), secondFilter, thirdFilter, moreFilters]);
* ```
* @param filter
*/
filter(filter: IExpr | FilterFunction): Query;
filter(filter: IExpr | FilterFunction | Array<IExpr | FilterFunction>): Query;
/**

@@ -70,0 +74,0 @@ * Aggregate the results. Pass it a binding name used in `.select()` or a function

{
"name": "@zazuko/query-rdf-data-cube",
"version": "0.2.3",
"version": "0.3.0",
"description": "Query (or introspect) [RDF Data Cubes](https://www.w3.org/TR/vocab-data-cube/) with a JavaScript API, without writing SPARQL.",

@@ -16,3 +16,3 @@ "scripts": {

"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"postversion": "npm run docs:compile && npm run docs:publish"
"prepublishOnly": "npm run docs:compile && npm run docs:publish"
},

@@ -55,3 +55,3 @@ "types": "dist/node/index.d.ts",

"@types/clone": "^0.1.30",
"@types/jest": "^24.0.19",
"@types/jest": "^24.0.21",
"@types/node-fetch": "^2.5.2",

@@ -67,3 +67,3 @@ "conventional-changelog-cli": "^2.0.25",

"rimraf": "^3.0.0",
"rollup": "^1.25.1",
"rollup": "^1.26.0",
"rollup-plugin-typescript2": "^0.24.3",

@@ -70,0 +70,0 @@ "ts-jest": "^24.1.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc