@_linked/core 2.12.0 → 2.13.0-next.20260706164859
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/esm/queries/IRPipeline.d.ts +7 -1
- package/lib/esm/queries/IRPipeline.js +20 -6
- package/lib/esm/queries/IRPipeline.js.map +1 -1
- package/lib/esm/queries/queryDispatch.js +12 -2
- package/lib/esm/queries/queryDispatch.js.map +1 -1
- package/package.json +10 -13
- package/lib/cjs/collections/CoreSet.d.ts +0 -47
- package/lib/cjs/collections/CoreSet.js +0 -136
- package/lib/cjs/collections/CoreSet.js.map +0 -1
- package/lib/cjs/collections/ShapeSet.d.ts +0 -6
- package/lib/cjs/collections/ShapeSet.js +0 -20
- package/lib/cjs/collections/ShapeSet.js.map +0 -1
- package/lib/cjs/expressions/Expr.d.ts +0 -29
- package/lib/cjs/expressions/Expr.js +0 -80
- package/lib/cjs/expressions/Expr.js.map +0 -1
- package/lib/cjs/expressions/ExpressionMethods.d.ts +0 -85
- package/lib/cjs/expressions/ExpressionMethods.js +0 -3
- package/lib/cjs/expressions/ExpressionMethods.js.map +0 -1
- package/lib/cjs/expressions/ExpressionNode.d.ts +0 -144
- package/lib/cjs/expressions/ExpressionNode.js +0 -432
- package/lib/cjs/expressions/ExpressionNode.js.map +0 -1
- package/lib/cjs/index.d.ts +0 -29
- package/lib/cjs/index.js +0 -65
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/interfaces/ICoreIterable.d.ts +0 -14
- package/lib/cjs/interfaces/ICoreIterable.js +0 -3
- package/lib/cjs/interfaces/ICoreIterable.js.map +0 -1
- package/lib/cjs/interfaces/IDataset.d.ts +0 -26
- package/lib/cjs/interfaces/IDataset.js +0 -3
- package/lib/cjs/interfaces/IDataset.js.map +0 -1
- package/lib/cjs/interfaces/IFileStore.d.ts +0 -16
- package/lib/cjs/interfaces/IFileStore.js +0 -3
- package/lib/cjs/interfaces/IFileStore.js.map +0 -1
- package/lib/cjs/ontologies/linked-core.d.ts +0 -15
- package/lib/cjs/ontologies/linked-core.js +0 -38
- package/lib/cjs/ontologies/linked-core.js.map +0 -1
- package/lib/cjs/ontologies/npm.d.ts +0 -6
- package/lib/cjs/ontologies/npm.js +0 -15
- package/lib/cjs/ontologies/npm.js.map +0 -1
- package/lib/cjs/ontologies/owl.d.ts +0 -14
- package/lib/cjs/ontologies/owl.js +0 -21
- package/lib/cjs/ontologies/owl.js.map +0 -1
- package/lib/cjs/ontologies/rdf.d.ts +0 -13
- package/lib/cjs/ontologies/rdf.js +0 -27
- package/lib/cjs/ontologies/rdf.js.map +0 -1
- package/lib/cjs/ontologies/rdfs.d.ts +0 -16
- package/lib/cjs/ontologies/rdfs.js +0 -33
- package/lib/cjs/ontologies/rdfs.js.map +0 -1
- package/lib/cjs/ontologies/shacl.d.ts +0 -103
- package/lib/cjs/ontologies/shacl.js +0 -152
- package/lib/cjs/ontologies/shacl.js.map +0 -1
- package/lib/cjs/ontologies/xsd.d.ts +0 -19
- package/lib/cjs/ontologies/xsd.js +0 -41
- package/lib/cjs/ontologies/xsd.js.map +0 -1
- package/lib/cjs/package.d.ts +0 -4
- package/lib/cjs/package.js +0 -6
- package/lib/cjs/package.js.map +0 -1
- package/lib/cjs/package.json +0 -9
- package/lib/cjs/paths/PropertyPathExpr.d.ts +0 -38
- package/lib/cjs/paths/PropertyPathExpr.js +0 -221
- package/lib/cjs/paths/PropertyPathExpr.js.map +0 -1
- package/lib/cjs/paths/normalizePropertyPath.d.ts +0 -23
- package/lib/cjs/paths/normalizePropertyPath.js +0 -75
- package/lib/cjs/paths/normalizePropertyPath.js.map +0 -1
- package/lib/cjs/paths/pathExprToSparql.d.ts +0 -14
- package/lib/cjs/paths/pathExprToSparql.js +0 -136
- package/lib/cjs/paths/pathExprToSparql.js.map +0 -1
- package/lib/cjs/queries/ContextRef.d.ts +0 -32
- package/lib/cjs/queries/ContextRef.js +0 -69
- package/lib/cjs/queries/ContextRef.js.map +0 -1
- package/lib/cjs/queries/CreateBuilder.d.ts +0 -59
- package/lib/cjs/queries/CreateBuilder.js +0 -138
- package/lib/cjs/queries/CreateBuilder.js.map +0 -1
- package/lib/cjs/queries/CreateQuery.d.ts +0 -20
- package/lib/cjs/queries/CreateQuery.js +0 -3
- package/lib/cjs/queries/CreateQuery.js.map +0 -1
- package/lib/cjs/queries/DeleteBuilder.d.ts +0 -56
- package/lib/cjs/queries/DeleteBuilder.js +0 -172
- package/lib/cjs/queries/DeleteBuilder.js.map +0 -1
- package/lib/cjs/queries/DeleteQuery.d.ts +0 -37
- package/lib/cjs/queries/DeleteQuery.js +0 -3
- package/lib/cjs/queries/DeleteQuery.js.map +0 -1
- package/lib/cjs/queries/DslJsonExpression.d.ts +0 -68
- package/lib/cjs/queries/DslJsonExpression.js +0 -427
- package/lib/cjs/queries/DslJsonExpression.js.map +0 -1
- package/lib/cjs/queries/FieldSet.d.ts +0 -310
- package/lib/cjs/queries/FieldSet.js +0 -802
- package/lib/cjs/queries/FieldSet.js.map +0 -1
- package/lib/cjs/queries/IRAliasScope.d.ts +0 -20
- package/lib/cjs/queries/IRAliasScope.js +0 -52
- package/lib/cjs/queries/IRAliasScope.js.map +0 -1
- package/lib/cjs/queries/IRCanonicalize.d.ts +0 -19
- package/lib/cjs/queries/IRCanonicalize.js +0 -19
- package/lib/cjs/queries/IRCanonicalize.js.map +0 -1
- package/lib/cjs/queries/IRDesugar.d.ts +0 -123
- package/lib/cjs/queries/IRDesugar.js +0 -261
- package/lib/cjs/queries/IRDesugar.js.map +0 -1
- package/lib/cjs/queries/IRLower.d.ts +0 -25
- package/lib/cjs/queries/IRLower.js +0 -398
- package/lib/cjs/queries/IRLower.js.map +0 -1
- package/lib/cjs/queries/IRMutation.d.ts +0 -53
- package/lib/cjs/queries/IRMutation.js +0 -130
- package/lib/cjs/queries/IRMutation.js.map +0 -1
- package/lib/cjs/queries/IRPipeline.d.ts +0 -8
- package/lib/cjs/queries/IRPipeline.js +0 -25
- package/lib/cjs/queries/IRPipeline.js.map +0 -1
- package/lib/cjs/queries/IRProjection.d.ts +0 -39
- package/lib/cjs/queries/IRProjection.js +0 -105
- package/lib/cjs/queries/IRProjection.js.map +0 -1
- package/lib/cjs/queries/IntermediateRepresentation.d.ts +0 -282
- package/lib/cjs/queries/IntermediateRepresentation.js +0 -3
- package/lib/cjs/queries/IntermediateRepresentation.js.map +0 -1
- package/lib/cjs/queries/MutationQuery.d.ts +0 -50
- package/lib/cjs/queries/MutationQuery.js +0 -334
- package/lib/cjs/queries/MutationQuery.js.map +0 -1
- package/lib/cjs/queries/MutationSerialization.d.ts +0 -102
- package/lib/cjs/queries/MutationSerialization.js +0 -207
- package/lib/cjs/queries/MutationSerialization.js.map +0 -1
- package/lib/cjs/queries/MutationThenable.d.ts +0 -18
- package/lib/cjs/queries/MutationThenable.js +0 -32
- package/lib/cjs/queries/MutationThenable.js.map +0 -1
- package/lib/cjs/queries/PropertyPath.d.ts +0 -38
- package/lib/cjs/queries/PropertyPath.js +0 -82
- package/lib/cjs/queries/PropertyPath.js.map +0 -1
- package/lib/cjs/queries/ProxiedPathBuilder.d.ts +0 -14
- package/lib/cjs/queries/ProxiedPathBuilder.js +0 -29
- package/lib/cjs/queries/ProxiedPathBuilder.js.map +0 -1
- package/lib/cjs/queries/QueryBuilder.d.ts +0 -193
- package/lib/cjs/queries/QueryBuilder.js +0 -519
- package/lib/cjs/queries/QueryBuilder.js.map +0 -1
- package/lib/cjs/queries/QueryBuilderSerialization.d.ts +0 -31
- package/lib/cjs/queries/QueryBuilderSerialization.js +0 -68
- package/lib/cjs/queries/QueryBuilderSerialization.js.map +0 -1
- package/lib/cjs/queries/QueryContext.d.ts +0 -50
- package/lib/cjs/queries/QueryContext.js +0 -147
- package/lib/cjs/queries/QueryContext.js.map +0 -1
- package/lib/cjs/queries/QueryFactory.d.ts +0 -80
- package/lib/cjs/queries/QueryFactory.js +0 -21
- package/lib/cjs/queries/QueryFactory.js.map +0 -1
- package/lib/cjs/queries/SelectQuery.d.ts +0 -302
- package/lib/cjs/queries/SelectQuery.js +0 -761
- package/lib/cjs/queries/SelectQuery.js.map +0 -1
- package/lib/cjs/queries/UpdateBuilder.d.ts +0 -69
- package/lib/cjs/queries/UpdateBuilder.js +0 -199
- package/lib/cjs/queries/UpdateBuilder.js.map +0 -1
- package/lib/cjs/queries/UpdateQuery.d.ts +0 -18
- package/lib/cjs/queries/UpdateQuery.js +0 -3
- package/lib/cjs/queries/UpdateQuery.js.map +0 -1
- package/lib/cjs/queries/fromJSON.d.ts +0 -16
- package/lib/cjs/queries/fromJSON.js +0 -41
- package/lib/cjs/queries/fromJSON.js.map +0 -1
- package/lib/cjs/queries/lower.d.ts +0 -28
- package/lib/cjs/queries/lower.js +0 -114
- package/lib/cjs/queries/lower.js.map +0 -1
- package/lib/cjs/queries/lowerMutationJSON.d.ts +0 -25
- package/lib/cjs/queries/lowerMutationJSON.js +0 -173
- package/lib/cjs/queries/lowerMutationJSON.js.map +0 -1
- package/lib/cjs/queries/mutationLowerSpec.d.ts +0 -32
- package/lib/cjs/queries/mutationLowerSpec.js +0 -8
- package/lib/cjs/queries/mutationLowerSpec.js.map +0 -1
- package/lib/cjs/queries/queryDispatch.d.ts +0 -33
- package/lib/cjs/queries/queryDispatch.js +0 -33
- package/lib/cjs/queries/queryDispatch.js.map +0 -1
- package/lib/cjs/queries/resolveShape.d.ts +0 -10
- package/lib/cjs/queries/resolveShape.js +0 -23
- package/lib/cjs/queries/resolveShape.js.map +0 -1
- package/lib/cjs/queries/wireVersion.d.ts +0 -7
- package/lib/cjs/queries/wireVersion.js +0 -25
- package/lib/cjs/queries/wireVersion.js.map +0 -1
- package/lib/cjs/shapes/List.d.ts +0 -35
- package/lib/cjs/shapes/List.js +0 -72
- package/lib/cjs/shapes/List.js.map +0 -1
- package/lib/cjs/shapes/PathNode.d.ts +0 -20
- package/lib/cjs/shapes/PathNode.js +0 -68
- package/lib/cjs/shapes/PathNode.js.map +0 -1
- package/lib/cjs/shapes/SHACL.d.ts +0 -300
- package/lib/cjs/shapes/SHACL.js +0 -612
- package/lib/cjs/shapes/SHACL.js.map +0 -1
- package/lib/cjs/shapes/Shape.d.ts +0 -74
- package/lib/cjs/shapes/Shape.js +0 -124
- package/lib/cjs/shapes/Shape.js.map +0 -1
- package/lib/cjs/shapes/serializePathToNodeData.d.ts +0 -24
- package/lib/cjs/shapes/serializePathToNodeData.js +0 -67
- package/lib/cjs/shapes/serializePathToNodeData.js.map +0 -1
- package/lib/cjs/shapes/syncShapes.d.ts +0 -38
- package/lib/cjs/shapes/syncShapes.js +0 -214
- package/lib/cjs/shapes/syncShapes.js.map +0 -1
- package/lib/cjs/sparql/SparqlAlgebra.d.ts +0 -190
- package/lib/cjs/sparql/SparqlAlgebra.js +0 -4
- package/lib/cjs/sparql/SparqlAlgebra.js.map +0 -1
- package/lib/cjs/sparql/SparqlDataset.d.ts +0 -60
- package/lib/cjs/sparql/SparqlDataset.js +0 -117
- package/lib/cjs/sparql/SparqlDataset.js.map +0 -1
- package/lib/cjs/sparql/algebraToString.d.ts +0 -13
- package/lib/cjs/sparql/algebraToString.js +0 -385
- package/lib/cjs/sparql/algebraToString.js.map +0 -1
- package/lib/cjs/sparql/index.d.ts +0 -9
- package/lib/cjs/sparql/index.js +0 -41
- package/lib/cjs/sparql/index.js.map +0 -1
- package/lib/cjs/sparql/irToAlgebra.d.ts +0 -79
- package/lib/cjs/sparql/irToAlgebra.js +0 -2042
- package/lib/cjs/sparql/irToAlgebra.js.map +0 -1
- package/lib/cjs/sparql/resultMapping.d.ts +0 -36
- package/lib/cjs/sparql/resultMapping.js +0 -563
- package/lib/cjs/sparql/resultMapping.js.map +0 -1
- package/lib/cjs/sparql/sparqlUtils.d.ts +0 -53
- package/lib/cjs/sparql/sparqlUtils.js +0 -154
- package/lib/cjs/sparql/sparqlUtils.js.map +0 -1
- package/lib/cjs/utils/LinkedErrorLogging.d.ts +0 -13
- package/lib/cjs/utils/LinkedErrorLogging.js +0 -22
- package/lib/cjs/utils/LinkedErrorLogging.js.map +0 -1
- package/lib/cjs/utils/LinkedFileStorage.d.ts +0 -23
- package/lib/cjs/utils/LinkedFileStorage.js +0 -62
- package/lib/cjs/utils/LinkedFileStorage.js.map +0 -1
- package/lib/cjs/utils/LinkedStorage.d.ts +0 -40
- package/lib/cjs/utils/LinkedStorage.js +0 -148
- package/lib/cjs/utils/LinkedStorage.js.map +0 -1
- package/lib/cjs/utils/NameSpace.d.ts +0 -2
- package/lib/cjs/utils/NameSpace.js +0 -8
- package/lib/cjs/utils/NameSpace.js.map +0 -1
- package/lib/cjs/utils/NodeReference.d.ts +0 -30
- package/lib/cjs/utils/NodeReference.js +0 -54
- package/lib/cjs/utils/NodeReference.js.map +0 -1
- package/lib/cjs/utils/Package.d.ts +0 -153
- package/lib/cjs/utils/Package.js +0 -419
- package/lib/cjs/utils/Package.js.map +0 -1
- package/lib/cjs/utils/Prefix.d.ts +0 -22
- package/lib/cjs/utils/Prefix.js +0 -104
- package/lib/cjs/utils/Prefix.js.map +0 -1
- package/lib/cjs/utils/ShapeClass.d.ts +0 -30
- package/lib/cjs/utils/ShapeClass.js +0 -180
- package/lib/cjs/utils/ShapeClass.js.map +0 -1
- package/lib/cjs/utils/URI.d.ts +0 -18
- package/lib/cjs/utils/URI.js +0 -42
- package/lib/cjs/utils/URI.js.map +0 -1
- package/lib/cjs/utils/cached.d.ts +0 -14
- package/lib/cjs/utils/cached.js +0 -71
- package/lib/cjs/utils/cached.js.map +0 -1
- package/lib/cjs/utils/loadStores.d.ts +0 -34
- package/lib/cjs/utils/loadStores.js +0 -105
- package/lib/cjs/utils/loadStores.js.map +0 -1
- package/lib/cjs/utils/parseDatasetsConfig.d.ts +0 -49
- package/lib/cjs/utils/parseDatasetsConfig.js +0 -110
- package/lib/cjs/utils/parseDatasetsConfig.js.map +0 -1
- package/lib/esm/package.json +0 -9
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { Shape, type ShapeConstructor } from '../shapes/Shape.js';
|
|
2
|
-
import type { NodeReferenceValue } from './NodeReference.js';
|
|
3
|
-
/**
|
|
4
|
-
* a map of requested property shapes for specific nodes
|
|
5
|
-
* The value is a promise if it's still loading, or true if it is fully loaded
|
|
6
|
-
*/
|
|
7
|
-
export type ShapeConfig = {
|
|
8
|
-
/**
|
|
9
|
-
* A short description of the shape, what it represents and what it is used for.
|
|
10
|
-
* will be stored as rdfs:comment on the shape node
|
|
11
|
-
*/
|
|
12
|
-
description?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Marks this shape's instances as *dependent* (composition / no independent existence):
|
|
15
|
-
* they may be cascade-deleted when reached through a `contains` property.
|
|
16
|
-
*/
|
|
17
|
-
dependent?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Close the shape (sh:closed): target nodes with properties outside this shape are invalid.
|
|
20
|
-
*/
|
|
21
|
-
closed?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Properties permitted in addition to the declared ones when the shape is closed
|
|
24
|
-
* (sh:ignoredProperties).
|
|
25
|
-
*/
|
|
26
|
-
ignoredProperties?: NodeReferenceValue[];
|
|
27
|
-
};
|
|
28
|
-
export type PackageMetadata = {
|
|
29
|
-
id: string;
|
|
30
|
-
packageName: string;
|
|
31
|
-
type: NodeReferenceValue;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* This object, returned by [linkedPackage()](/docs/lincd.js/modules/utils_Module#linkedPackage),
|
|
35
|
-
* contains the decorators to link different parts of a LINCD module.
|
|
36
|
-
*/
|
|
37
|
-
export interface LinkedPackageObject {
|
|
38
|
-
/**
|
|
39
|
-
* Links a typescript class to a SHACL shape.
|
|
40
|
-
* This decorator creates a SHACL shape and looks at the static property [targetClass](/docs/lincd.js/classes/shapes_Shape.Shape#targetclass)
|
|
41
|
-
* The rest of the shape is typically 'shaped' by methods that use [property decorators](/docs/lincd.js/modules/utils_ShapeDecorators).
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* Example of a typescript class using the \@linkedShape decorator:
|
|
45
|
-
* ```tsx
|
|
46
|
-
* @linkedShape
|
|
47
|
-
* export class Person extends Shape { ... }
|
|
48
|
-
* ```
|
|
49
|
-
* Or with options:
|
|
50
|
-
* ```tsx
|
|
51
|
-
* @linkedShape({ description: "..." })
|
|
52
|
-
* export class Person extends Shape { ... }
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
linkedShape: {
|
|
56
|
-
<T extends typeof Shape>(constructor: T): void;
|
|
57
|
-
<T extends typeof Shape>(config?: ShapeConfig): (constructor: T) => void;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Use this decorator to make any other classes or functions available on demand to other LINCD modules.
|
|
61
|
-
* It does not change the object it is applied on.
|
|
62
|
-
* This is specifically required for their use in an open-ended LINCD application.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* An example helper utility using the \@linkedUtil decorator:
|
|
66
|
-
* ```tsx
|
|
67
|
-
* @linkedUtil
|
|
68
|
-
* export class Sort {
|
|
69
|
-
* static byName(persons:Person[]) {
|
|
70
|
-
* return persons.sort((p1,p2) => p1.name < p2.name ? -1 : 1)
|
|
71
|
-
* }
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
linkedUtil: (constructor: any) => any;
|
|
75
|
-
/**
|
|
76
|
-
* Used to notify LINCD.js of an ontology.
|
|
77
|
-
* See also the [Ontology guides](/docs/guides/linked-code/ontologies).
|
|
78
|
-
*
|
|
79
|
-
* @param allFileExports - all the objects that are exported by the ontology file (use `import * as _this from "./path-to-this-file")`)
|
|
80
|
-
* @param nameSpace - the result of [createNameSpace](/docs/lincd.js/modules/utils_NameSpace#createnamespace). This allows consumers to generate NamedNodes that may not be listed in this ontology if needed
|
|
81
|
-
* @param prefixAndFileName - a suggested prefix chosen by you. Make sure the suggestedPrefix matches the file name and the name of the exported object that groups all entities together
|
|
82
|
-
* @param loadDataFunction - a method that loads _and parses_ the raw ontology data. This means the ontology will be loaded into the local graph. The returned result is mostly a JSONLDParsePromise (from lincd-jsonld/JSONLD, not bundled in LINCD.js)
|
|
83
|
-
* @param dataSource - the relative path to the raw data of the ontology
|
|
84
|
-
* @example
|
|
85
|
-
* Example of an Ontology File that used linkedOntology()
|
|
86
|
-
* ```tsx
|
|
87
|
-
* import {NamedNode} from 'lincd/models';
|
|
88
|
-
* import {JSONLD} from 'lincd-jsonld/JSONLD';
|
|
89
|
-
* import {createNameSpace} from 'lincd/utils/NameSpace';
|
|
90
|
-
* import {linkedOntology} from '../package.js';
|
|
91
|
-
* import * as _this from './my.js-ontology';
|
|
92
|
-
*
|
|
93
|
-
* let dataFile = '../data/my.js-ontology.json';
|
|
94
|
-
* export var loadData = () => JSONLD.parsePromise(import(dataFile));
|
|
95
|
-
*
|
|
96
|
-
* export var ns = createNameSpace('http://www.my-ontology.com/');
|
|
97
|
-
*
|
|
98
|
-
* export var _self: NamedNode = ns('');
|
|
99
|
-
*
|
|
100
|
-
* // Classes
|
|
101
|
-
* export var ExampleClass: NamedNode = ns('ExampleClass');
|
|
102
|
-
*
|
|
103
|
-
* // Properties
|
|
104
|
-
* export var exampleProperty: NamedNode = ns('exampleProperty');
|
|
105
|
-
*
|
|
106
|
-
* export const myOntology = {
|
|
107
|
-
* ExampleClass,
|
|
108
|
-
* exampleProperty,
|
|
109
|
-
* };
|
|
110
|
-
*
|
|
111
|
-
* linkedOntology(_this, ns, 'myOntology', loadData, dataFile);
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
linkedOntology: (allFileExports: any, nameSpace: (term: string) => NodeReferenceValue, suggestedPrefixAndFileName: string, loadDataFunction?: () => Promise<any>, dataSource?: string | string[]) => void;
|
|
115
|
-
/**
|
|
116
|
-
* Low level method used by other decorators to write to the modules' object in the LINCD tree.
|
|
117
|
-
* You should typically not need this.
|
|
118
|
-
* @param exportFileName - the file name that this exported object is available under. Needs to be unique across the module.
|
|
119
|
-
* @param exportedObject - the exported object (the class, constant, function, etc)
|
|
120
|
-
*/
|
|
121
|
-
registerPackageExport: (exportedObject: any) => void;
|
|
122
|
-
/**
|
|
123
|
-
* Get a Shape subclass registered in this package by name.
|
|
124
|
-
* Returns undefined if the shape is not registered or bundled.
|
|
125
|
-
*
|
|
126
|
-
* Useful for avoiding circular dependencies between shapes.
|
|
127
|
-
* E.g. `getOneAs(..., getPackageShape('ImageObject'))` in Thing.ts
|
|
128
|
-
* avoids importing ImageObject (which extends Thing).
|
|
129
|
-
*/
|
|
130
|
-
getPackageShape: (name: string) => ShapeConstructor | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* A reference to the modules' object in the LINCD tree.
|
|
133
|
-
* Contains all linked components of the module.
|
|
134
|
-
*/
|
|
135
|
-
packageExports: any;
|
|
136
|
-
packageName: string;
|
|
137
|
-
packageMetadata: PackageMetadata;
|
|
138
|
-
/**
|
|
139
|
-
* Register a file (a javascript module) and all its exported objects.
|
|
140
|
-
* Specifically helpful for registering multiple functional components if you declare them without a function name
|
|
141
|
-
* @param _this
|
|
142
|
-
* @param _module
|
|
143
|
-
*/
|
|
144
|
-
registerPackageModule(_module: any): void;
|
|
145
|
-
}
|
|
146
|
-
export declare var DEFAULT_LIMIT: number;
|
|
147
|
-
export declare function setDefaultPageLimit(limit: number): void;
|
|
148
|
-
export declare function autoLoadOntologyData(value: boolean): void;
|
|
149
|
-
export declare function linkedPackage(packageName: string, options?: {
|
|
150
|
-
baseUri?: string;
|
|
151
|
-
}): LinkedPackageObject;
|
|
152
|
-
export declare function initTree(): void;
|
|
153
|
-
export declare const corePackage: LinkedPackageObject;
|
package/lib/cjs/utils/Package.js
DELETED
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.corePackage = exports.DEFAULT_LIMIT = void 0;
|
|
4
|
-
exports.setDefaultPageLimit = setDefaultPageLimit;
|
|
5
|
-
exports.autoLoadOntologyData = autoLoadOntologyData;
|
|
6
|
-
exports.linkedPackage = linkedPackage;
|
|
7
|
-
exports.initTree = initTree;
|
|
8
|
-
/*
|
|
9
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
10
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
11
|
-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
12
|
-
*/
|
|
13
|
-
const SHACL_js_1 = require("../shapes/SHACL.js");
|
|
14
|
-
const Shape_js_1 = require("../shapes/Shape.js");
|
|
15
|
-
const Prefix_js_1 = require("./Prefix.js");
|
|
16
|
-
const linked_core_js_1 = require("../ontologies/linked-core.js");
|
|
17
|
-
const rdf_js_1 = require("../ontologies/rdf.js");
|
|
18
|
-
const ShapeClass_js_1 = require("./ShapeClass.js");
|
|
19
|
-
const shacl_js_1 = require("../ontologies/shacl.js");
|
|
20
|
-
const rdfs_js_1 = require("../ontologies/rdfs.js");
|
|
21
|
-
const xsd_js_1 = require("../ontologies/xsd.js");
|
|
22
|
-
// var packageParsePromises: Map<string,Promise<any>> = new Map();
|
|
23
|
-
// var loadedPackages: Set<NamedNode> = new Set();
|
|
24
|
-
let ontologies = new Set();
|
|
25
|
-
let _autoLoadOntologyData = false;
|
|
26
|
-
exports.DEFAULT_LIMIT = 12;
|
|
27
|
-
function setDefaultPageLimit(limit) {
|
|
28
|
-
exports.DEFAULT_LIMIT = limit;
|
|
29
|
-
}
|
|
30
|
-
function autoLoadOntologyData(value) {
|
|
31
|
-
_autoLoadOntologyData = value;
|
|
32
|
-
//this may be set to true after some ontologies have already indexed,
|
|
33
|
-
if (_autoLoadOntologyData) {
|
|
34
|
-
// so in that case we load all data of ontologies that are already indexed
|
|
35
|
-
ontologies.forEach((ontologyExport) => {
|
|
36
|
-
//see linkedOntology() where we store the data loading method under the _load key
|
|
37
|
-
if (ontologyExport['_load']) {
|
|
38
|
-
ontologyExport['_load']();
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function linkedPackage(packageName, options) {
|
|
44
|
-
// Declare the package's publish root before any shape/metadata IRI is built.
|
|
45
|
-
// The slug is derived from `packageName`; only `baseUri` is configurable — CN
|
|
46
|
-
// injects a workspace-scoped root for private packages, first-party packages
|
|
47
|
-
// default to linked.cm.
|
|
48
|
-
(0, SHACL_js_1.setPackagePublishConfig)(packageName, options);
|
|
49
|
-
let packageMetadata = registerPackageMetadata(packageName);
|
|
50
|
-
let packageTreeObject = registerPackageInTree(packageName);
|
|
51
|
-
//#Create declarators for this module
|
|
52
|
-
let registerPackageExport = function (object) {
|
|
53
|
-
// Plan-011 §I2 interim — "Key X was already defined" warning silenced
|
|
54
|
-
// until the duplicate-instance root cause is investigated. With Vite
|
|
55
|
-
// SSR resolving workspace packages from src/, package.ts evaluates
|
|
56
|
-
// twice and every export key trips this warning. The overwrite is
|
|
57
|
-
// safe because the second registration is the same class.
|
|
58
|
-
packageTreeObject[object.name] = object;
|
|
59
|
-
};
|
|
60
|
-
let registerInPackageTree = function (exportName, exportedObject) {
|
|
61
|
-
packageTreeObject[exportName] = exportedObject;
|
|
62
|
-
};
|
|
63
|
-
function registerPackageModule(_module) {
|
|
64
|
-
for (var key in _module.exports) {
|
|
65
|
-
//if the exported object itself is not named or its name is _wrappedComponent
|
|
66
|
-
//then we give it the same name as it's export name.
|
|
67
|
-
if (!_module.exports[key].name ||
|
|
68
|
-
_module.exports[key].name === '_wrappedComponent') {
|
|
69
|
-
Object.defineProperty(_module.exports[key], 'name', { value: key });
|
|
70
|
-
//manual 'hack' to set the name of the original function
|
|
71
|
-
if (_module.exports[key]['original'] &&
|
|
72
|
-
!_module.exports[key]['original']['name']) {
|
|
73
|
-
Object.defineProperty(_module.exports[key]['original'], 'name', {
|
|
74
|
-
value: key + '_implementation',
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
registerInPackageTree(key, _module.exports[key]);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
//create a declarator function which Components of this module can use register themselves and add themselves to the global tree
|
|
82
|
-
let linkedUtil = function (constructor) {
|
|
83
|
-
//add the component class of this module to the global tree
|
|
84
|
-
registerPackageExport(constructor);
|
|
85
|
-
//return the original class without modifications
|
|
86
|
-
return constructor;
|
|
87
|
-
};
|
|
88
|
-
// helper that contains the previous body; applies the decorator work to a given constructor
|
|
89
|
-
function applyLinkedShape(constructor, options) {
|
|
90
|
-
if (!constructor) {
|
|
91
|
-
throw new Error('Constructor is undefined, skipping registration: ' + (constructor === null || constructor === void 0 ? void 0 : constructor.toString().substring(0, 100)) + ' ' + JSON.stringify(options));
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
// add the component class of this module to the global tree
|
|
95
|
-
registerPackageExport(constructor);
|
|
96
|
-
// register the component and its shape
|
|
97
|
-
Shape_js_1.Shape.registerByType(constructor);
|
|
98
|
-
// Track the un-sanitized package name on the constructor so consumers
|
|
99
|
-
// (e.g. LincdServerProxy) can route backend calls using the real module
|
|
100
|
-
// specifier (e.g. '@_linked/server'), not the lossy URI-sanitized form
|
|
101
|
-
// ('-_linked-server' — non-recoverable via decodeURIComponent).
|
|
102
|
-
if (!Object.getOwnPropertyNames(constructor).includes('packageName')) {
|
|
103
|
-
constructor.packageName = packageName;
|
|
104
|
-
}
|
|
105
|
-
// if no shape object has been attached to the constructor
|
|
106
|
-
if (!Object.getOwnPropertyNames(constructor).includes('shape')) {
|
|
107
|
-
// create a new node shape for this shapeClass
|
|
108
|
-
let nodeShape = new SHACL_js_1.NodeShape((0, SHACL_js_1.getNodeShapeUri)(packageName, constructor.name));
|
|
109
|
-
// connect the typescript class to its NodeShape
|
|
110
|
-
constructor.shape = nodeShape;
|
|
111
|
-
// set the name
|
|
112
|
-
nodeShape.label = constructor.name;
|
|
113
|
-
if (options) {
|
|
114
|
-
if (options.description) {
|
|
115
|
-
nodeShape.description = options.description;
|
|
116
|
-
}
|
|
117
|
-
if (options.dependent) {
|
|
118
|
-
nodeShape.dependent = true;
|
|
119
|
-
}
|
|
120
|
-
if (options.closed !== undefined) {
|
|
121
|
-
nodeShape.closed = options.closed;
|
|
122
|
-
}
|
|
123
|
-
if (options.ignoredProperties) {
|
|
124
|
-
nodeShape.ignoredProperties = options.ignoredProperties;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// also keep track of the reverse: nodeShape to typescript class
|
|
128
|
-
(0, ShapeClass_js_1.addNodeShapeToShapeClass)(nodeShape, constructor);
|
|
129
|
-
//track what extends what (nodeShape level)
|
|
130
|
-
const extendingShapeClass = Object.getPrototypeOf(constructor);
|
|
131
|
-
const extendingShape = extendingShapeClass.shape;
|
|
132
|
-
//if this shape class is extending something other then Shape
|
|
133
|
-
if (extendingShape && !(extendingShapeClass === Shape_js_1.Shape)) {
|
|
134
|
-
//store which nodeShape this nodeShape extends
|
|
135
|
-
nodeShape.extends = { id: extendingShape.id };
|
|
136
|
-
}
|
|
137
|
-
// run deferred callbacks from property decorators
|
|
138
|
-
if (constructor['shapeCallbacks']) {
|
|
139
|
-
constructor['shapeCallbacks'].forEach((callback) => {
|
|
140
|
-
callback(nodeShape);
|
|
141
|
-
});
|
|
142
|
-
const nodeCallbacks = (0, SHACL_js_1.getAndClearCallbacks)(nodeShape.id);
|
|
143
|
-
if (nodeCallbacks) {
|
|
144
|
-
nodeCallbacks.forEach((callback) => {
|
|
145
|
-
callback(nodeShape);
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
delete constructor['shapeCallbacks'];
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
console.warn('This ShapeClass already has a shape: ', constructor.shape);
|
|
153
|
-
}
|
|
154
|
-
if (constructor.targetClass) {
|
|
155
|
-
constructor.shape.targetClass = constructor.targetClass;
|
|
156
|
-
}
|
|
157
|
-
// return the original class without modifications
|
|
158
|
-
// return constructor;
|
|
159
|
-
}
|
|
160
|
-
function linkedShape(arg) {
|
|
161
|
-
// usage as @linkedShape
|
|
162
|
-
if (typeof arg === 'function') {
|
|
163
|
-
applyLinkedShape(arg);
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
// usage as @linkedShape({...}) or @linkedShape()
|
|
167
|
-
const options = arg;
|
|
168
|
-
return function (constructor) {
|
|
169
|
-
applyLinkedShape(constructor, options);
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @param exports all exports of the file, simply provide "this" as value!
|
|
175
|
-
* @param dataSource the path leading to the ontology's data file
|
|
176
|
-
* @param nameSpace the base URI of the ontology
|
|
177
|
-
* @param prefixAndFileName the file name MUST match the prefix for this ontology
|
|
178
|
-
*/
|
|
179
|
-
let linkedOntology = function (exports, nameSpace, prefixAndFileName, loadData, dataSource) {
|
|
180
|
-
let exportsCopy = Object.assign({}, exports);
|
|
181
|
-
//store specifics in exports. And make sure we can detect this as an ontology later
|
|
182
|
-
exportsCopy['_ns'] = nameSpace;
|
|
183
|
-
exportsCopy['_prefix'] = prefixAndFileName;
|
|
184
|
-
exportsCopy['_load'] = loadData;
|
|
185
|
-
exportsCopy['_data'] = dataSource;
|
|
186
|
-
//register the prefix here (so just calling linkedOntology with a prefix will automatically register that prefix)
|
|
187
|
-
if (prefixAndFileName) {
|
|
188
|
-
//run the namespace without any term name, this will give back a named node with just the namespace as URI, then get that URI to provide it as full URI
|
|
189
|
-
Prefix_js_1.Prefix.add(prefixAndFileName, nameSpace('').id);
|
|
190
|
-
}
|
|
191
|
-
ontologies.add(exportsCopy);
|
|
192
|
-
//register all the exports under the prefix. NOTE: this means the file name HAS to match the prefix
|
|
193
|
-
registerInPackageTree(prefixAndFileName, exportsCopy);
|
|
194
|
-
// });
|
|
195
|
-
if (_autoLoadOntologyData) {
|
|
196
|
-
loadData().catch((err) => {
|
|
197
|
-
console.warn('Could not load ontology data. Do you need to rebuild the module of the ' +
|
|
198
|
-
prefixAndFileName +
|
|
199
|
-
' ontology?', err);
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* This method is used to get a shape class in this package by its name.
|
|
205
|
-
* This can be used to avoid circular dependencies between shapes.
|
|
206
|
-
* @param name
|
|
207
|
-
*/
|
|
208
|
-
let getPackageShape = (name) => {
|
|
209
|
-
//get the named node of the node shape first,
|
|
210
|
-
//then get the shape class that defines this node shape
|
|
211
|
-
return (0, ShapeClass_js_1.getShapeClass)((0, SHACL_js_1.getNodeShapeUri)(packageName, name));
|
|
212
|
-
};
|
|
213
|
-
//return the declarators so the module can use them
|
|
214
|
-
return {
|
|
215
|
-
linkedShape,
|
|
216
|
-
linkedUtil,
|
|
217
|
-
linkedOntology,
|
|
218
|
-
registerPackageExport,
|
|
219
|
-
registerPackageModule,
|
|
220
|
-
getPackageShape,
|
|
221
|
-
packageExports: packageTreeObject,
|
|
222
|
-
packageName: packageName,
|
|
223
|
-
packageMetadata,
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
function registerPackageInTree(packageName, packageExports) {
|
|
227
|
-
//if something with this name already registered in the global tree
|
|
228
|
-
if (packageName in _linked._modules) {
|
|
229
|
-
// Plan-011 §I2 interim — silenced until the duplicate-Linked-instance
|
|
230
|
-
// root cause is investigated. Vite SSR resolving workspace packages
|
|
231
|
-
// from src/ for HMR causes each package.ts to evaluate twice, so this
|
|
232
|
-
// warning fired ~80x per boot. Same package, same exports — the
|
|
233
|
-
// Object.assign below preserves the registry correctly.
|
|
234
|
-
Object.assign(_linked._modules[packageName], packageExports);
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
//initiate an empty object for this module in the global tree
|
|
238
|
-
_linked._modules[packageName] = packageExports || {};
|
|
239
|
-
}
|
|
240
|
-
return _linked._modules[packageName];
|
|
241
|
-
}
|
|
242
|
-
function registerPackageMetadata(packageName) {
|
|
243
|
-
if (!_linked._packages) {
|
|
244
|
-
_linked._packages = {};
|
|
245
|
-
}
|
|
246
|
-
if (packageName in _linked._packages) {
|
|
247
|
-
return _linked._packages[packageName];
|
|
248
|
-
}
|
|
249
|
-
const packageMetadata = {
|
|
250
|
-
id: (0, SHACL_js_1.getPackageUri)(packageName),
|
|
251
|
-
packageName,
|
|
252
|
-
type: linked_core_js_1.coreOntology.Package,
|
|
253
|
-
};
|
|
254
|
-
_linked._packages[packageName] = packageMetadata;
|
|
255
|
-
return packageMetadata;
|
|
256
|
-
}
|
|
257
|
-
function initTree() {
|
|
258
|
-
let globalObject = typeof window !== 'undefined'
|
|
259
|
-
? window
|
|
260
|
-
: typeof global !== 'undefined'
|
|
261
|
-
? global
|
|
262
|
-
: undefined;
|
|
263
|
-
// Idempotent: if the global tree is already set up (by another copy of
|
|
264
|
-
// this Package.ts in the same Node process — structural under Vite SSR,
|
|
265
|
-
// which evaluates the file once for its own SSR transform AND once via
|
|
266
|
-
// Node's resolver when a non-Vite import path reaches @_linked/core),
|
|
267
|
-
// attach to it instead of throwing. Both instances write the same
|
|
268
|
-
// _modules / _packages registry shape.
|
|
269
|
-
//
|
|
270
|
-
// Legacy `lincd` package's Package.ts (separate file) still throws on
|
|
271
|
-
// dup — that throw signals a REAL problem (legacy `lincd` should never
|
|
272
|
-
// load in a clean post-eradication state).
|
|
273
|
-
if (!('_linked' in globalObject)) {
|
|
274
|
-
globalObject['_linked'] = { _modules: {}, _packages: {} };
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
//when this file is used, make sure the tree is initialized
|
|
278
|
-
initTree();
|
|
279
|
-
//now that this file is set up, we can link linked shapes in the core module itself
|
|
280
|
-
exports.corePackage = linkedPackage('@_linked/core');
|
|
281
|
-
exports.corePackage.linkedShape({
|
|
282
|
-
description: 'Represents a SHACL NodeShape; defines constraints for a class of RDF nodes. Links to multiple PropertyShapes. (schema, constraint, class validation)',
|
|
283
|
-
})(SHACL_js_1.NodeShape);
|
|
284
|
-
exports.corePackage.linkedShape({
|
|
285
|
-
description: 'Represents a SHACL PropertyShape; specifies rules for one property of a NodeShape (path, datatype, cardinality). (validation rule, property constraint)',
|
|
286
|
-
// A property shape has no independent existence — it is owned by its NodeShape via the
|
|
287
|
-
// `contains` sh:property edge, so deleting the NodeShape cascade-deletes it.
|
|
288
|
-
dependent: true,
|
|
289
|
-
})(SHACL_js_1.PropertyShape);
|
|
290
|
-
// ValidationReport / ValidationResult removed in core metadata rewrite
|
|
291
|
-
//ALL the following is to support Shape having get/set methods with property shapes
|
|
292
|
-
//and Shape itself having a nodeShape
|
|
293
|
-
//if we dont need Shape to have get/set methods (like label and type) then this can be removed
|
|
294
|
-
// Base Shape IRI follows the same scheme as every other core shape:
|
|
295
|
-
// https://linked.cm/shape/core/Shape (corePackage above declared slug 'core').
|
|
296
|
-
Shape_js_1.Shape.shape = new SHACL_js_1.NodeShape((0, SHACL_js_1.getNodeShapeUri)('@_linked/core', 'Shape'));
|
|
297
|
-
(0, ShapeClass_js_1.addNodeShapeToShapeClass)(Shape_js_1.Shape.shape, Shape_js_1.Shape);
|
|
298
|
-
//Here we can register the properties of the Shape class itself
|
|
299
|
-
//We can't do that inside of Shape because it would cause circular dependencies
|
|
300
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
301
|
-
path: rdfs_js_1.rdfs.label,
|
|
302
|
-
//TODO: multiple labels should be possible
|
|
303
|
-
maxCount: 1, //currently get label is implemented to return a single value
|
|
304
|
-
}, 'label', shacl_js_1.shacl.Literal, Shape_js_1.Shape);
|
|
305
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
306
|
-
path: rdf_js_1.rdf.type,
|
|
307
|
-
shape: Shape_js_1.Shape,
|
|
308
|
-
}, 'type', shacl_js_1.shacl.IRI, Shape_js_1.Shape);
|
|
309
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
310
|
-
path: shacl_js_1.shacl.property,
|
|
311
|
-
shape: SHACL_js_1.PropertyShape,
|
|
312
|
-
contains: true, // a NodeShape owns its property shapes (cascade on delete)
|
|
313
|
-
}, 'properties', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
314
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
315
|
-
path: rdfs_js_1.rdfs.comment,
|
|
316
|
-
maxCount: 1,
|
|
317
|
-
}, 'description', shacl_js_1.shacl.Literal, SHACL_js_1.NodeShape);
|
|
318
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
319
|
-
path: rdf_js_1.rdf.type,
|
|
320
|
-
maxCount: 1,
|
|
321
|
-
shape: Shape_js_1.Shape,
|
|
322
|
-
}, 'type', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
323
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
324
|
-
path: shacl_js_1.shacl.targetClass,
|
|
325
|
-
shape: Shape_js_1.Shape, //should be rdfs Class, but that's currently not available in LINCD. So queries currently cannot continue after accessing targetClass
|
|
326
|
-
maxCount: 1,
|
|
327
|
-
}, 'targetClass', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
328
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
329
|
-
path: shacl_js_1.shacl.targetNode,
|
|
330
|
-
shape: Shape_js_1.Shape, //actually returns a NamedNode... is this correct then? Should we define or use a rdfs Class that matches the potential values?
|
|
331
|
-
}, 'targetNode', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
332
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
333
|
-
path: linked_core_js_1.coreOntology.isExtending,
|
|
334
|
-
shape: SHACL_js_1.NodeShape,
|
|
335
|
-
}, 'extends', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
336
|
-
//currently path accepts multiple values, so its a multi-value property
|
|
337
|
-
//these values will be consequent properties that follow each other. Other property paths are not supported yet.
|
|
338
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
339
|
-
// No fixed valueShape: sh:path is polymorphic (a predicate IRI, an rdf:List for a
|
|
340
|
-
// sequence, or a PathNode for inverse/alt/cardinality). Omitting valueShape lets the
|
|
341
|
-
// create pipeline use each value's own shape. Simple paths are passed as
|
|
342
|
-
// {id} node references, complex paths as List/PathNode node-data.
|
|
343
|
-
path: shacl_js_1.shacl.path,
|
|
344
|
-
contains: true, // a property shape owns its complex path structure (List/PathNode)
|
|
345
|
-
}, 'path', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
346
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
347
|
-
path: shacl_js_1.shacl.node,
|
|
348
|
-
shape: SHACL_js_1.NodeShape,
|
|
349
|
-
maxCount: 1,
|
|
350
|
-
}, 'valueShape', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
351
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
352
|
-
maxCount: 1,
|
|
353
|
-
path: shacl_js_1.shacl.nodeKind,
|
|
354
|
-
shape: Shape_js_1.Shape, //actually returns a NamedNode. Queries currently cannot continue after accessing nodeKind
|
|
355
|
-
}, 'nodeKind', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
356
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
357
|
-
path: shacl_js_1.shacl.datatype,
|
|
358
|
-
shape: Shape_js_1.Shape,
|
|
359
|
-
maxCount: 1,
|
|
360
|
-
}, 'datatype', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
361
|
-
//PropertyShape.maxCount
|
|
362
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
363
|
-
path: shacl_js_1.shacl.maxCount,
|
|
364
|
-
datatype: xsd_js_1.xsd.integer,
|
|
365
|
-
maxCount: 1,
|
|
366
|
-
}, 'maxCount', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
367
|
-
//PropertyShape.minCount
|
|
368
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
369
|
-
path: shacl_js_1.shacl.minCount,
|
|
370
|
-
datatype: xsd_js_1.xsd.integer,
|
|
371
|
-
maxCount: 1,
|
|
372
|
-
}, 'minCount', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
373
|
-
//PropertyShape.name
|
|
374
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
375
|
-
path: shacl_js_1.shacl.name,
|
|
376
|
-
maxCount: 1,
|
|
377
|
-
}, 'name', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
378
|
-
//PropertyShape.description
|
|
379
|
-
(0, SHACL_js_1.createPropertyShape)({
|
|
380
|
-
path: shacl_js_1.shacl.description,
|
|
381
|
-
maxCount: 1,
|
|
382
|
-
}, 'description', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
383
|
-
// ---------------------------------------------------------------------------
|
|
384
|
-
// Remaining SHACL meta-model accessors for shape serialization.
|
|
385
|
-
// Labels match PropertyShape.getResult() / NodeShape fields so syncShapes() can
|
|
386
|
-
// build instances directly. `sh:in` is owned (contains, valueShape List).
|
|
387
|
-
// ---------------------------------------------------------------------------
|
|
388
|
-
// PropertyShape.class
|
|
389
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.class, shape: Shape_js_1.Shape, maxCount: 1 }, 'class', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
390
|
-
// PropertyShape.in → an rdf:List (owned)
|
|
391
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.in, shape: ['@_linked/core', 'List'], maxCount: 1, contains: true }, 'in', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
392
|
-
// PropertyShape pair constraints (values are property IRIs)
|
|
393
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.equals, shape: Shape_js_1.Shape, maxCount: 1 }, 'equals', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
394
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.disjoint, shape: Shape_js_1.Shape, maxCount: 1 }, 'disjoint', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
395
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.lessThan, shape: Shape_js_1.Shape, maxCount: 1 }, 'lessThan', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
396
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.lessThanOrEquals, shape: Shape_js_1.Shape, maxCount: 1 }, 'lessThanOrEquals', shacl_js_1.shacl.IRI, SHACL_js_1.PropertyShape);
|
|
397
|
-
// PropertyShape.hasValue (literal or IRI — generic)
|
|
398
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.hasValue, maxCount: 1 }, 'hasValue', null, SHACL_js_1.PropertyShape);
|
|
399
|
-
// PropertyShape value-range / string-length / pattern constraints (report 021 §3, G5).
|
|
400
|
-
// The range constraints carry no fixed datatype — the literal is typed from the JS value
|
|
401
|
-
// (integer/double), mirroring the constrained property's own datatype. Length is an integer;
|
|
402
|
-
// pattern is the regex source string.
|
|
403
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.minInclusive, maxCount: 1 }, 'minInclusive', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
404
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.maxInclusive, maxCount: 1 }, 'maxInclusive', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
405
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.minExclusive, maxCount: 1 }, 'minExclusive', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
406
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.maxExclusive, maxCount: 1 }, 'maxExclusive', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
407
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.minLength, datatype: xsd_js_1.xsd.integer, maxCount: 1 }, 'minLength', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
408
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.maxLength, datatype: xsd_js_1.xsd.integer, maxCount: 1 }, 'maxLength', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
409
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.pattern, datatype: xsd_js_1.xsd.string, maxCount: 1 }, 'pattern', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
410
|
-
// PropertyShape.order / group
|
|
411
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.order, datatype: xsd_js_1.xsd.integer, maxCount: 1 }, 'order', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
412
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.group, maxCount: 1 }, 'group', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
413
|
-
// PropertyShape.contains (linked_core:contains — persists the composition flag)
|
|
414
|
-
(0, SHACL_js_1.createPropertyShape)({ path: linked_core_js_1.coreOntology.contains, datatype: xsd_js_1.xsd.boolean, maxCount: 1 }, 'contains', shacl_js_1.shacl.Literal, SHACL_js_1.PropertyShape);
|
|
415
|
-
// NodeShape.closed / ignoredProperties / dependent
|
|
416
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.closed, datatype: xsd_js_1.xsd.boolean, maxCount: 1 }, 'closed', shacl_js_1.shacl.Literal, SHACL_js_1.NodeShape);
|
|
417
|
-
(0, SHACL_js_1.createPropertyShape)({ path: shacl_js_1.shacl.ignoredProperties, shape: Shape_js_1.Shape }, 'ignoredProperties', shacl_js_1.shacl.IRI, SHACL_js_1.NodeShape);
|
|
418
|
-
(0, SHACL_js_1.createPropertyShape)({ path: linked_core_js_1.coreOntology.dependent, datatype: xsd_js_1.xsd.boolean, maxCount: 1 }, 'dependent', shacl_js_1.shacl.Literal, SHACL_js_1.NodeShape);
|
|
419
|
-
//# sourceMappingURL=Package.js.map
|
|
@@ -1 +0,0 @@
|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,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAC,EAAE,OAAO,EAAE,gBAAK,CAAC,OAAO,EAAE,wBAAa,CAAC,CAAC;AAE7F,gFAAgF;AAChF,IAAA,8BAAmB,EACjB,EAAC,IAAI,EAAE,6BAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAC,EACjE,UAAU,EACV,gBAAK,CAAC,OAAO,EACb,wBAAa,CACd,CAAC;AAEF,mDAAmD;AACnD,IAAA,8BAAmB,EACjB,EAAC,IAAI,EAAE,gBAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAC,EACxD,QAAQ,EACR,gBAAK,CAAC,OAAO,EACb,oBAAS,CACV,CAAC;AACF,IAAA,8BAAmB,EACjB,EAAC,IAAI,EAAE,gBAAK,CAAC,iBAAiB,EAAE,KAAK,EAAE,gBAAK,EAAC,EAC7C,mBAAmB,EACnB,gBAAK,CAAC,GAAG,EACT,oBAAS,CACV,CAAC;AACF,IAAA,8BAAmB,EACjB,EAAC,IAAI,EAAE,6BAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAC,EAClE,WAAW,EACX,gBAAK,CAAC,OAAO,EACb,oBAAS,CACV,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare class Prefix {
|
|
2
|
-
static uriToPrefix: Map<string, string>;
|
|
3
|
-
static prefixToUri: Map<string, string>;
|
|
4
|
-
static getUriToPrefixMap(): Map<string, string>;
|
|
5
|
-
static getPrefixToUriMap(): Map<string, string>;
|
|
6
|
-
static add(prefix: string, fullURI: string): void;
|
|
7
|
-
static delete(prefix: string): void;
|
|
8
|
-
static clear(): void;
|
|
9
|
-
static getPrefix(fullURI: string): string;
|
|
10
|
-
static getFullURI(prefix: string): string;
|
|
11
|
-
static findMatch(fullURI: string): [string, string, string] | [];
|
|
12
|
-
static toPrefixed(fullURI: string): string;
|
|
13
|
-
static toPrefixedIfPossible(fullURI: string): string;
|
|
14
|
-
static toFullIfPossible(fullURI: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* Converts a prefixed URI back to its full URI
|
|
17
|
-
* Will return the prefixed URI if no prefix was found
|
|
18
|
-
* @param uri
|
|
19
|
-
*/
|
|
20
|
-
static toFull(uri: any): string;
|
|
21
|
-
private static _toFull;
|
|
22
|
-
}
|