Comparing version 0.2.1 to 0.2.2
@@ -67,6 +67,6 @@ [ | ||
"name": "webpack", | ||
"version": "4.44.2", | ||
"version": "4.46.0", | ||
"author": "Tobias Koppers @sokra", | ||
"repository": "https://github.com/webpack/webpack.git", | ||
"source": "https://registry.npmjs.org/webpack/-/webpack-4.44.2.tgz", | ||
"source": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", | ||
"license": "MIT", | ||
@@ -73,0 +73,0 @@ "licenseText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n" |
@@ -0,0 +0,0 @@ import { BlankNode, NamedNode } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ICoreIterable } from '../interfaces/ICoreIterable'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -35,3 +35,3 @@ import { ICoreIterable } from '../interfaces/ICoreIterable'; | ||
reverse(): this; | ||
print(includeIncomingProperties?: boolean): void; | ||
print(includeIncomingProperties?: boolean): string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CoreSet = void 0; | ||
const Debug_1 = require("../utils/Debug"); | ||
class CoreSet extends Set { | ||
@@ -101,5 +102,5 @@ createNew(...args) { | ||
print(includeIncomingProperties = true) { | ||
dprint(this, includeIncomingProperties); | ||
return Debug_1.Debug.print(this, includeIncomingProperties); | ||
} | ||
} | ||
exports.CoreSet = CoreSet; |
@@ -0,0 +0,0 @@ import { CoreMap } from './CoreMap'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { CoreSet } from './CoreSet'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NodeSet } from './NodeSet'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Graph, NamedNode, Quad } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NamedNode, Node, Quad } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Graph, NamedNode, Node, Quad } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { CoreMap } from './CoreMap'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { CoreSet } from './CoreSet'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IQuadStore } from '../interfaces/IQuadStore'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { EventEmitter } from 'eventemitter3'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { EventEmitter as EventEmitter3 } from 'eventemitter3'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -5,4 +5,4 @@ import * as Shape from './shapes/Shape'; | ||
export declare const linkedComponent: { | ||
<ShapeType extends Shape.Shape, P = any>(shapeClass: typeof Shape.Shape, functionalComponent: Component.FunctionalComponent<P, ShapeType>): Component.FunctionalComponent<Component.ComponentProps<ShapeType>, Shape.Shape>; | ||
<ShapeType extends Shape.Shape, P = any>(shapeClass: typeof Shape.Shape, functionalComponent: Component.FunctionalComponent<P, ShapeType>): Component.FunctionalComponent<Component.ComponentProps<ShapeType> & P, Shape.Shape>; | ||
<ShapeType_1 extends Shape.Shape, P_1 = any>(shape: typeof Shape.Shape): any; | ||
}, linkedShape: (constructor: any) => any; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Node } from '../models'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { NamedNode, Node } from '../models'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { NamedNode, Node } from '../models'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { QuadSet } from '../collections/QuadSet'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { IGraphObject } from './IGraphObject'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -678,3 +678,3 @@ import { DefaultGraph as TFDefaultGraph, Literal as ILiteral, NamedNode as INamedNode, Term } from 'rdflib/lib/tf-types'; | ||
toString(): string; | ||
print(includeIncomingProperties?: boolean): void; | ||
print(includeIncomingProperties?: boolean): string; | ||
/** | ||
@@ -857,3 +857,3 @@ * ####################################################################### | ||
static createUri(): string; | ||
static includeBlankNodes(quads: QuadSet | Quad[], blankNodes?: BlankNodeMap): Quad[] | QuadSet; | ||
static includeBlankNodes(quads: QuadSet | Quad[], includeObjectBlankNodes?: boolean, includeSubjectBlankNodes?: boolean, blankNodes?: BlankNodeMap): QuadSet | Quad[]; | ||
private static addBlankNodeQuads; | ||
@@ -1003,3 +1003,3 @@ } | ||
toString(): string; | ||
print(includeIncomingProperties?: boolean): void; | ||
print(includeIncomingProperties?: boolean): string; | ||
static isLiteralString(literalString: string): boolean; | ||
@@ -1006,0 +1006,0 @@ static fromString(literalString: string): Literal; |
import { Shape } from '../shapes/Shape'; | ||
import { Component } from '../interfaces/Component'; | ||
export declare function registerComponent(exportedComponent: Component, shape?: typeof Shape): void; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NamedNode } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NamedNode } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NamedNode } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NamedNode } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -7,3 +7,3 @@ import { NodeSet } from '../collections/NodeSet'; | ||
constructor(blanknode?: BlankNode); | ||
getContents(): any; | ||
getContents(): NodeSet<Node>; | ||
isEmpty(): boolean; | ||
@@ -23,3 +23,10 @@ addItem(item: Node): void; | ||
static createFrom(items: NodeSet | Node[]): List; | ||
private static getContentNodes; | ||
/** | ||
* Returns the contents of a rdf.List | ||
* Will return an empty set if the given node is not a list | ||
* @param list | ||
* @param result | ||
* @private | ||
*/ | ||
static getContents(list: NamedNode, result?: NodeSet<Node>): NodeSet; | ||
} |
@@ -25,3 +25,3 @@ "use strict"; | ||
getContents() { | ||
return List.getContentNodes(this.namedNode); | ||
return List.getContents(this.namedNode); | ||
} | ||
@@ -125,3 +125,10 @@ isEmpty() { | ||
} | ||
static getContentNodes(list, result = new NodeSet_1.NodeSet()) { | ||
/** | ||
* Returns the contents of a rdf.List | ||
* Will return an empty set if the given node is not a list | ||
* @param list | ||
* @param result | ||
* @private | ||
*/ | ||
static getContents(list, result = new NodeSet_1.NodeSet()) { | ||
if (list.hasProperty(rdf_1.rdf.first)) { | ||
@@ -133,3 +140,3 @@ result.add(list.getOne(rdf_1.rdf.first)); | ||
if (rest !== rdf_1.rdf.nil) { | ||
return List.getContentNodes(rest, result); | ||
return List.getContents(rest, result); | ||
} | ||
@@ -136,0 +143,0 @@ } |
@@ -0,0 +0,0 @@ import * as ReactDOM from 'react-dom'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { BlankNode, NamedNode } from '../models'; |
@@ -102,6 +102,6 @@ "use strict"; | ||
get path() { | ||
return this.getOne(shacl_1.shacl.property); | ||
return this.getOne(shacl_1.shacl.path); | ||
} | ||
set path(value) { | ||
this.overwrite(shacl_1.shacl.property, value); | ||
this.overwrite(shacl_1.shacl.path, value); | ||
} | ||
@@ -108,0 +108,0 @@ } |
@@ -174,3 +174,3 @@ import { EventEmitter } from '../events/EventEmitter'; | ||
toString(): string; | ||
print(includeIncomingProperties?: boolean): void; | ||
print(includeIncomingProperties?: boolean): string; | ||
/** | ||
@@ -177,0 +177,0 @@ * Returns a new cloned instance with the exact same quads |
@@ -16,2 +16,3 @@ "use strict"; | ||
const CoreSet_1 = require("../collections/CoreSet"); | ||
const Debug_1 = require("../utils/Debug"); | ||
/** | ||
@@ -349,3 +350,4 @@ * The base class of all classes that represent a rdfs:Class in the graph. | ||
print(includeIncomingProperties = true) { | ||
dprint(this, includeIncomingProperties); | ||
return Debug_1.Debug.print(this.node, includeIncomingProperties); | ||
// typeof (typeof window !== 'undefined' ? window['dprint'] : global.dprint)(this, includeIncomingProperties); | ||
} | ||
@@ -352,0 +354,0 @@ /** |
export declare class Debug { | ||
static print(node: any, includeInverseProperties?: boolean): string; | ||
} |
@@ -9,3 +9,2 @@ "use strict"; | ||
*/ | ||
const Shape_1 = require("../shapes/Shape"); | ||
const Prefix_1 = require("./Prefix"); | ||
@@ -15,3 +14,3 @@ const models_1 = require("../models"); | ||
//TODO: move stuff back into actual models, keep a general method here that handles numbers etc, so that imports of this file are minimal | ||
//TODO: and so that dprint is not undefined if lincd is not imported from index | ||
//TODO: and so that dprint is not undefined if this file is not imported from index | ||
static print(node, includeInverseProperties = true) { | ||
@@ -27,5 +26,5 @@ if (typeof node == 'number') { | ||
} | ||
if (node instanceof Shape_1.Shape) { | ||
node = node.node; | ||
} | ||
// if (node instanceof Shape) { | ||
// node = node.node; | ||
// } | ||
if (node instanceof Set || Array.isArray(node)) { | ||
@@ -40,6 +39,8 @@ let r = []; | ||
} | ||
var print = node.toString() + '\n---->\n'; | ||
var print = ''; | ||
var printQuad = (quad) => { | ||
return (Prefix_1.Prefix.toPrefixedIfPossible(quad.predicate.uri) + | ||
return (Prefix_1.Prefix.toPrefixedIfPossible(quad.subject.uri) + | ||
' ' + | ||
Prefix_1.Prefix.toPrefixedIfPossible(quad.predicate.uri) + | ||
' ' + | ||
(quad.object instanceof models_1.NamedNode | ||
@@ -49,9 +50,11 @@ ? Prefix_1.Prefix.toPrefixedIfPossible(quad.object.uri) | ||
}; | ||
var printInverseQuad = (quad) => { | ||
return (Prefix_1.Prefix.toPrefixedIfPossible(quad.subject.uri) + | ||
' ' + | ||
Prefix_1.Prefix.toPrefixedIfPossible(quad.predicate.uri)); | ||
}; | ||
node.getAsSubjectQuads().forEach((quadMap, index) => { | ||
quadMap.forEach((quad) => (print += '\t' + printQuad(quad) + '.\n')); | ||
// var printInverseQuad = (quad) => { | ||
// return ( | ||
// Prefix.toPrefixedIfPossible(quad.subject.uri) + | ||
// ' ' + | ||
// Prefix.toPrefixedIfPossible(quad.predicate.uri) | ||
// ); | ||
// }; | ||
node.getAsSubjectQuads().forEach((quadMap) => { | ||
models_1.BlankNode.includeBlankNodes(quadMap.getQuadSet()).forEach((quad) => (print += '\t' + printQuad(quad) + '.\n')); | ||
}); | ||
@@ -61,3 +64,3 @@ if (node.asObject && includeInverseProperties) { | ||
node.asObject.forEach((quadMap, index) => { | ||
quadMap.forEach((quad) => (print += '\t' + printInverseQuad(quad) + '.\n')); | ||
models_1.BlankNode.includeBlankNodes(quadMap.getQuadSet(), false, true).forEach((quad) => (print += '\t' + printQuad(quad) + '.\n')); | ||
}); | ||
@@ -64,0 +67,0 @@ } |
@@ -0,0 +0,0 @@ import { NodeSet } from '../collections/NodeSet'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -6,3 +6,3 @@ import { NamedNode } from '../models'; | ||
linkedComponent: { | ||
<ShapeType extends Shape, P = any>(shapeClass: typeof Shape, functionalComponent: FunctionalComponent<P, ShapeType>): FunctionalComponent<ComponentProps<ShapeType>, Shape>; | ||
<ShapeType extends Shape, P = any>(shapeClass: typeof Shape, functionalComponent: FunctionalComponent<P, ShapeType>): FunctionalComponent<ComponentProps<ShapeType> & P, Shape>; | ||
<ShapeType_1 extends Shape, P_1 = any>(shape: typeof Shape): any; | ||
@@ -9,0 +9,0 @@ }; |
@@ -0,0 +0,0 @@ "use strict"; |
import { NamedNode } from '../models'; | ||
export declare const createNameSpace: (nameSpace: string) => (term: any) => NamedNode; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ICoreIterable } from '../interfaces/ICoreIterable'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { NodeSet } from '../collections/NodeSet'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { CoreMap } from '../collections/CoreMap'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { BlankNode, Literal, NamedNode, Node } from '../models'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class URI { |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "lincd", | ||
"license": "MPL-2.0", | ||
"version": "0.2.1", | ||
"description": "Linked Interoperable Code & Data - A javascript library for interoperability & collaboration based on W3C's Linked Data standards", | ||
"main": "lib/index.js", | ||
"types": "dist/lincd.d.ts", | ||
"lincd": true, | ||
"scripts": { | ||
"build": "npm exec lincd build", | ||
"dev": "npm exec lincd dev", | ||
"prepublishOnly": "npm exec lincd build production", | ||
"postpublish": "npm exec lincd register" | ||
}, | ||
"keywords": [ | ||
"lincd", | ||
"linked", | ||
"code", | ||
"linked-data", | ||
"graph", | ||
"RDF", | ||
"in-memory", | ||
"interoperable", | ||
"semantic-web", | ||
"semantic" | ||
], | ||
"author": "René Verheij", | ||
"dependencies": { | ||
"@types/react": "^18.0.12", | ||
"@types/react-dom": "^18.0.5", | ||
"eventemitter3": "3.1.0", | ||
"next-tick": "^1.0.0", | ||
"rdflib": "^2.2.17", | ||
"react": "^18.1", | ||
"react-dom": "^18.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.8", | ||
"lincd-cli": "^0.1" | ||
} | ||
} | ||
"name": "lincd", | ||
"license": "MPL-2.0", | ||
"version": "0.2.2", | ||
"description": "Linked Interoperable Code & Data - A javascript library for interoperability & collaboration based on W3C's Linked Data standards", | ||
"main": "lib/index.js", | ||
"types": "dist/lincd.d.ts", | ||
"lincd": true, | ||
"scripts": { | ||
"build": "npm exec lincd build", | ||
"dev": "npm exec lincd dev", | ||
"prepublishOnly": "npm exec lincd build production", | ||
"postpublish": "npm exec lincd register" | ||
}, | ||
"keywords": [ | ||
"lincd", | ||
"linked", | ||
"code", | ||
"linked-data", | ||
"graph", | ||
"RDF", | ||
"in-memory", | ||
"interoperable", | ||
"semantic-web", | ||
"semantic" | ||
], | ||
"author": "René Verheij", | ||
"dependencies": { | ||
"@types/react": "^18.0.12", | ||
"@types/react-dom": "^18.0.5", | ||
"eventemitter3": "3.1.0", | ||
"next-tick": "^1.0.0", | ||
"rdflib": "^2.2.17", | ||
"react": "^18.1", | ||
"react-dom": "^18.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.8", | ||
"lincd-cli": "^0.1" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # LINCD.js |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1213360
18729
92