@zazuko/query-rdf-data-cube
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -0,1 +1,6 @@ | ||
<a name="0.0.8"></a> | ||
## [0.0.8](https://github.com/zazuko/query-rdf-data-cube/compare/v0.0.7...v0.0.8) (2019-09-10) | ||
<a name="0.0.7"></a> | ||
@@ -2,0 +7,0 @@ ## [0.0.7](https://github.com/zazuko/query-rdf-data-cube/compare/v0.0.6...v0.0.7) (2019-09-10) |
@@ -5,2 +5,7 @@ import { Term } from "rdf-js"; | ||
import { IExpr } from "../expressions/utils"; | ||
export declare type SerializedComponent = { | ||
componentType: string; | ||
iri: string; | ||
labels: Label[]; | ||
}; | ||
declare class Component extends BaseExpr { | ||
@@ -7,0 +12,0 @@ /** |
@@ -8,3 +8,8 @@ import { NamedNode } from "rdf-js"; | ||
} | ||
export declare class DataCube { | ||
export declare type SerializedDataCube = { | ||
endpoint: string; | ||
languages: string[]; | ||
datasets: string[]; | ||
}; | ||
export default class DataCube { | ||
/** | ||
@@ -11,0 +16,0 @@ * Deserializes a DataCube from JSON generated by DataCube#toJSON |
@@ -6,3 +6,3 @@ import { namedNode, variable } from "@rdfjs/data-model"; | ||
import SparqlFetcher from "./sparqlfetcher"; | ||
export class DataCube { | ||
export default class DataCube { | ||
/** | ||
@@ -9,0 +9,0 @@ * A DataCube queries a SPARQL endpoint and retrieves [[DataSet]]s and |
import { Literal } from "rdf-js"; | ||
declare class BaseExpr implements IExpr { | ||
export default class BaseExpr implements IExpr { | ||
resolve(mapping: Map<string, string>): IExpr; | ||
@@ -23,4 +23,3 @@ readonly not: Operator; | ||
} | ||
export default BaseExpr; | ||
import Operator from "./operator"; | ||
import { IExpr, IntoExpr } from "./utils"; |
@@ -23,3 +23,3 @@ const notableOperators = { | ||
} | ||
class BaseExpr { | ||
export default class BaseExpr { | ||
resolve(mapping) { | ||
@@ -115,5 +115,4 @@ throw new Error("Not implemented"); | ||
} | ||
export default BaseExpr; | ||
// for cyclic dependencies | ||
import Operator from "./operator"; | ||
//# sourceMappingURL=base.js.map |
@@ -19,1 +19,2 @@ import { Literal, Term } from "rdf-js"; | ||
export declare function toLiteral(arg: any): Literal; | ||
export declare function isLiteral(term: any): term is Literal; |
@@ -100,5 +100,5 @@ // tslint:disable: max-classes-per-file | ||
} | ||
function isLiteral(term) { | ||
export function isLiteral(term) { | ||
return (term instanceof literal("").constructor); | ||
} | ||
//# sourceMappingURL=utils.js.map |
@@ -13,3 +13,3 @@ import Component from "../components/index"; | ||
*/ | ||
declare class DataSetQuery { | ||
export default class DataSetQuery { | ||
private dataSet; | ||
@@ -130,2 +130,1 @@ private bindingToComponent; | ||
} | ||
export default DataSetQuery; |
@@ -14,3 +14,3 @@ import { namedNode, variable } from "@rdfjs/data-model"; | ||
*/ | ||
class DataSetQuery { | ||
export default class DataSetQuery { | ||
/** | ||
@@ -441,3 +441,2 @@ * Creates an instance of DataSetQuery. You should not have to manually create queries, | ||
} | ||
export default DataSetQuery; | ||
//# sourceMappingURL=datasetquery.js.map |
import fetch, { RequestInit } from "node-fetch"; | ||
import { Term } from "rdf-js"; | ||
export declare type Result = Record<string, Term>; | ||
export interface ISparqlFetcherOptions { | ||
@@ -5,0 +3,0 @@ fetch?: typeof fetch; |
@@ -5,2 +5,7 @@ import { Term } from "rdf-js"; | ||
import { IExpr } from "../expressions/utils"; | ||
export declare type SerializedComponent = { | ||
componentType: string; | ||
iri: string; | ||
labels: Label[]; | ||
}; | ||
declare class Component extends BaseExpr { | ||
@@ -7,0 +12,0 @@ /** |
@@ -8,3 +8,8 @@ import { NamedNode } from "rdf-js"; | ||
} | ||
export declare class DataCube { | ||
export declare type SerializedDataCube = { | ||
endpoint: string; | ||
languages: string[]; | ||
datasets: string[]; | ||
}; | ||
export default class DataCube { | ||
/** | ||
@@ -11,0 +16,0 @@ * Deserializes a DataCube from JSON generated by DataCube#toJSON |
@@ -203,3 +203,3 @@ "use strict"; | ||
} | ||
exports.DataCube = DataCube; | ||
exports.default = DataCube; | ||
//# sourceMappingURL=datacube.js.map |
import { Literal } from "rdf-js"; | ||
declare class BaseExpr implements IExpr { | ||
export default class BaseExpr implements IExpr { | ||
resolve(mapping: Map<string, string>): IExpr; | ||
@@ -23,4 +23,3 @@ readonly not: Operator; | ||
} | ||
export default BaseExpr; | ||
import Operator from "./operator"; | ||
import { IExpr, IntoExpr } from "./utils"; |
@@ -19,1 +19,2 @@ import { Literal, Term } from "rdf-js"; | ||
export declare function toLiteral(arg: any): Literal; | ||
export declare function isLiteral(term: any): term is Literal; |
@@ -113,2 +113,3 @@ "use strict"; | ||
} | ||
exports.isLiteral = isLiteral; | ||
//# sourceMappingURL=utils.js.map |
@@ -13,3 +13,3 @@ import Component from "../components/index"; | ||
*/ | ||
declare class DataSetQuery { | ||
export default class DataSetQuery { | ||
private dataSet; | ||
@@ -130,2 +130,1 @@ private bindingToComponent; | ||
} | ||
export default DataSetQuery; |
import fetch, { RequestInit } from "node-fetch"; | ||
import { Term } from "rdf-js"; | ||
export declare type Result = Record<string, Term>; | ||
export interface ISparqlFetcherOptions { | ||
@@ -5,0 +3,0 @@ fetch?: typeof fetch; |
{ | ||
"name": "@zazuko/query-rdf-data-cube", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Query (or introspect) [RDF Data Cubes](https://www.w3.org/TR/vocab-data-cube/) with a JavaScript API, without writing SPARQL.", | ||
@@ -19,5 +19,5 @@ "scripts": { | ||
}, | ||
"types": "dist/node/datacube.d.ts", | ||
"main": "dist/node/datacube.js", | ||
"module": "dist/es/datacube.js", | ||
"types": "dist/node/index.d.ts", | ||
"main": "dist/node/index.js", | ||
"module": "dist/es/index.js", | ||
"files": [ | ||
@@ -24,0 +24,0 @@ "dist" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
229020
99
3913
1