@shaclmate/shacl-ast 2.0.18 → 2.0.19
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/dist/generated.d.ts +28 -28
- package/dist/generated.js +31 -31
- package/package.json +5 -5
package/dist/generated.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import * as rdfjsResource from "rdfjs-resource";
|
|
|
4
4
|
import { PropertyPath } from "./PropertyPath.js";
|
|
5
5
|
type UnwrapR<T> = T extends purify.Either<any, infer R> ? R : never;
|
|
6
6
|
export interface BaseShaclCoreShape {
|
|
7
|
+
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
8
|
+
readonly type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape";
|
|
7
9
|
readonly and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
|
|
8
10
|
readonly classes: readonly rdfjs.NamedNode[];
|
|
9
11
|
readonly comments: readonly rdfjs.Literal[];
|
|
@@ -11,7 +13,6 @@ export interface BaseShaclCoreShape {
|
|
|
11
13
|
readonly deactivated: purify.Maybe<boolean>;
|
|
12
14
|
readonly flags: readonly string[];
|
|
13
15
|
readonly hasValues: readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[];
|
|
14
|
-
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
15
16
|
readonly in_: purify.Maybe<readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[]>;
|
|
16
17
|
readonly isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
|
|
17
18
|
readonly labels: readonly rdfjs.Literal[];
|
|
@@ -29,16 +30,16 @@ export interface BaseShaclCoreShape {
|
|
|
29
30
|
readonly not: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
|
|
30
31
|
readonly or: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
|
|
31
32
|
readonly patterns: readonly string[];
|
|
32
|
-
readonly type: "ShaclCoreNodeShape" | "ShaclCorePropertyShape";
|
|
33
33
|
readonly xone: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
|
|
34
34
|
}
|
|
35
35
|
export declare namespace BaseShaclCoreShape {
|
|
36
|
-
function
|
|
36
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
|
|
37
37
|
[_index: string]: any;
|
|
38
38
|
ignoreRdfType?: boolean;
|
|
39
39
|
languageIn?: readonly string[];
|
|
40
40
|
resource: rdfjsResource.Resource;
|
|
41
41
|
}): purify.Either<rdfjsResource.Resource.ValueError, {
|
|
42
|
+
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
42
43
|
and: readonly (readonly (rdfjs.BlankNode | rdfjs.NamedNode)[])[];
|
|
43
44
|
classes: readonly rdfjs.NamedNode[];
|
|
44
45
|
comments: readonly rdfjs.Literal[];
|
|
@@ -46,7 +47,6 @@ export declare namespace BaseShaclCoreShape {
|
|
|
46
47
|
deactivated: purify.Maybe<boolean>;
|
|
47
48
|
flags: readonly string[];
|
|
48
49
|
hasValues: readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[];
|
|
49
|
-
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
50
50
|
in_: purify.Maybe<readonly (rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal)[]>;
|
|
51
51
|
isDefinedBy: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode>;
|
|
52
52
|
labels: readonly rdfjs.Literal[];
|
|
@@ -68,97 +68,97 @@ export declare namespace BaseShaclCoreShape {
|
|
|
68
68
|
}>;
|
|
69
69
|
}
|
|
70
70
|
export interface ShaclCorePropertyShape extends BaseShaclCoreShape {
|
|
71
|
+
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
72
|
+
readonly type: "ShaclCorePropertyShape";
|
|
71
73
|
readonly defaultValue: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal>;
|
|
72
74
|
readonly descriptions: readonly rdfjs.Literal[];
|
|
73
75
|
readonly groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
|
|
74
|
-
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
75
76
|
readonly names: readonly rdfjs.Literal[];
|
|
76
77
|
readonly order: purify.Maybe<number>;
|
|
77
78
|
readonly path: PropertyPath;
|
|
78
|
-
readonly type: "ShaclCorePropertyShape";
|
|
79
79
|
readonly uniqueLang: purify.Maybe<boolean>;
|
|
80
80
|
}
|
|
81
81
|
export declare namespace ShaclCorePropertyShape {
|
|
82
|
-
function
|
|
82
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
|
|
83
83
|
[_index: string]: any;
|
|
84
84
|
ignoreRdfType?: boolean;
|
|
85
85
|
languageIn?: readonly string[];
|
|
86
86
|
resource: rdfjsResource.Resource;
|
|
87
87
|
}): purify.Either<rdfjsResource.Resource.ValueError, {
|
|
88
|
+
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
89
|
+
type: "ShaclCorePropertyShape";
|
|
88
90
|
defaultValue: purify.Maybe<rdfjs.BlankNode | rdfjs.NamedNode | rdfjs.Literal>;
|
|
89
91
|
descriptions: readonly rdfjs.Literal[];
|
|
90
92
|
groups: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
|
|
91
|
-
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
92
93
|
names: readonly rdfjs.Literal[];
|
|
93
94
|
order: purify.Maybe<number>;
|
|
94
95
|
path: PropertyPath;
|
|
95
|
-
type: "ShaclCorePropertyShape";
|
|
96
96
|
uniqueLang: purify.Maybe<boolean>;
|
|
97
|
-
} & UnwrapR<ReturnType<typeof BaseShaclCoreShape.
|
|
98
|
-
function fromRdf(parameters: Parameters<typeof ShaclCorePropertyShape.
|
|
97
|
+
} & UnwrapR<ReturnType<typeof BaseShaclCoreShape._propertiesFromRdf>>>;
|
|
98
|
+
function fromRdf(parameters: Parameters<typeof ShaclCorePropertyShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyShape>;
|
|
99
99
|
const fromRdfType: rdfjs.NamedNode<string>;
|
|
100
100
|
}
|
|
101
101
|
export interface ShaclCorePropertyGroup {
|
|
102
|
-
readonly comments: readonly rdfjs.Literal[];
|
|
103
102
|
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
104
|
-
readonly labels: readonly rdfjs.Literal[];
|
|
105
103
|
readonly type: "ShaclCorePropertyGroup";
|
|
104
|
+
readonly comments: readonly rdfjs.Literal[];
|
|
105
|
+
readonly labels: readonly rdfjs.Literal[];
|
|
106
106
|
}
|
|
107
107
|
export declare namespace ShaclCorePropertyGroup {
|
|
108
|
-
function
|
|
108
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
|
|
109
109
|
[_index: string]: any;
|
|
110
110
|
ignoreRdfType?: boolean;
|
|
111
111
|
languageIn?: readonly string[];
|
|
112
112
|
resource: rdfjsResource.Resource;
|
|
113
113
|
}): purify.Either<rdfjsResource.Resource.ValueError, {
|
|
114
|
-
comments: readonly rdfjs.Literal[];
|
|
115
114
|
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
116
|
-
labels: readonly rdfjs.Literal[];
|
|
117
115
|
type: "ShaclCorePropertyGroup";
|
|
116
|
+
comments: readonly rdfjs.Literal[];
|
|
117
|
+
labels: readonly rdfjs.Literal[];
|
|
118
118
|
}>;
|
|
119
|
-
function fromRdf(parameters: Parameters<typeof ShaclCorePropertyGroup.
|
|
119
|
+
function fromRdf(parameters: Parameters<typeof ShaclCorePropertyGroup._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCorePropertyGroup>;
|
|
120
120
|
const fromRdfType: rdfjs.NamedNode<string>;
|
|
121
121
|
}
|
|
122
122
|
export interface ShaclCoreNodeShape extends BaseShaclCoreShape {
|
|
123
|
-
readonly closed: purify.Maybe<boolean>;
|
|
124
123
|
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
124
|
+
readonly type: "ShaclCoreNodeShape";
|
|
125
|
+
readonly closed: purify.Maybe<boolean>;
|
|
125
126
|
readonly ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
|
|
126
127
|
readonly properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
|
|
127
|
-
readonly type: "ShaclCoreNodeShape";
|
|
128
128
|
}
|
|
129
129
|
export declare namespace ShaclCoreNodeShape {
|
|
130
|
-
function
|
|
130
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
|
|
131
131
|
[_index: string]: any;
|
|
132
132
|
ignoreRdfType?: boolean;
|
|
133
133
|
languageIn?: readonly string[];
|
|
134
134
|
resource: rdfjsResource.Resource;
|
|
135
135
|
}): purify.Either<rdfjsResource.Resource.ValueError, {
|
|
136
|
-
closed: purify.Maybe<boolean>;
|
|
137
136
|
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
137
|
+
type: "ShaclCoreNodeShape";
|
|
138
|
+
closed: purify.Maybe<boolean>;
|
|
138
139
|
ignoredProperties: purify.Maybe<readonly rdfjs.NamedNode[]>;
|
|
139
140
|
properties: readonly (rdfjs.BlankNode | rdfjs.NamedNode)[];
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
function fromRdf(parameters: Parameters<typeof ShaclCoreNodeShape.propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCoreNodeShape>;
|
|
141
|
+
} & UnwrapR<ReturnType<typeof BaseShaclCoreShape._propertiesFromRdf>>>;
|
|
142
|
+
function fromRdf(parameters: Parameters<typeof ShaclCoreNodeShape._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, ShaclCoreNodeShape>;
|
|
143
143
|
const fromRdfType: rdfjs.NamedNode<string>;
|
|
144
144
|
}
|
|
145
145
|
export interface OwlOntology {
|
|
146
146
|
readonly identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
147
|
-
readonly labels: readonly rdfjs.Literal[];
|
|
148
147
|
readonly type: "OwlOntology";
|
|
148
|
+
readonly labels: readonly rdfjs.Literal[];
|
|
149
149
|
}
|
|
150
150
|
export declare namespace OwlOntology {
|
|
151
|
-
function
|
|
151
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource, ..._context }: {
|
|
152
152
|
[_index: string]: any;
|
|
153
153
|
ignoreRdfType?: boolean;
|
|
154
154
|
languageIn?: readonly string[];
|
|
155
155
|
resource: rdfjsResource.Resource;
|
|
156
156
|
}): purify.Either<rdfjsResource.Resource.ValueError, {
|
|
157
157
|
identifier: rdfjs.BlankNode | rdfjs.NamedNode;
|
|
158
|
-
labels: readonly rdfjs.Literal[];
|
|
159
158
|
type: "OwlOntology";
|
|
159
|
+
labels: readonly rdfjs.Literal[];
|
|
160
160
|
}>;
|
|
161
|
-
function fromRdf(parameters: Parameters<typeof OwlOntology.
|
|
161
|
+
function fromRdf(parameters: Parameters<typeof OwlOntology._propertiesFromRdf>[0]): purify.Either<rdfjsResource.Resource.ValueError, OwlOntology>;
|
|
162
162
|
const fromRdfType: rdfjs.NamedNode<string>;
|
|
163
163
|
}
|
|
164
164
|
export type ShaclCoreShape = ShaclCoreNodeShape | ShaclCorePropertyShape;
|
package/dist/generated.js
CHANGED
|
@@ -4,9 +4,10 @@ import * as rdfjsResource from "rdfjs-resource";
|
|
|
4
4
|
import { PropertyPath } from "./PropertyPath.js";
|
|
5
5
|
export var BaseShaclCoreShape;
|
|
6
6
|
(function (BaseShaclCoreShape) {
|
|
7
|
-
function
|
|
7
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
|
|
8
8
|
// @ts-ignore
|
|
9
9
|
..._context }) {
|
|
10
|
+
const identifier = _resource.identifier;
|
|
10
11
|
const _andEither = purify.Either.of([
|
|
11
12
|
..._resource
|
|
12
13
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#and"), {
|
|
@@ -122,7 +123,6 @@ export var BaseShaclCoreShape;
|
|
|
122
123
|
return _hasValuesEither;
|
|
123
124
|
}
|
|
124
125
|
const hasValues = _hasValuesEither.unsafeCoerce();
|
|
125
|
-
const identifier = _resource.identifier;
|
|
126
126
|
const _in_Either = purify.Either.of(_resource
|
|
127
127
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#in"), {
|
|
128
128
|
unique: true,
|
|
@@ -439,6 +439,7 @@ export var BaseShaclCoreShape;
|
|
|
439
439
|
}
|
|
440
440
|
const xone = _xoneEither.unsafeCoerce();
|
|
441
441
|
return purify.Either.of({
|
|
442
|
+
identifier,
|
|
442
443
|
and,
|
|
443
444
|
classes,
|
|
444
445
|
comments,
|
|
@@ -446,7 +447,6 @@ export var BaseShaclCoreShape;
|
|
|
446
447
|
deactivated,
|
|
447
448
|
flags,
|
|
448
449
|
hasValues,
|
|
449
|
-
identifier,
|
|
450
450
|
in_,
|
|
451
451
|
isDefinedBy,
|
|
452
452
|
labels,
|
|
@@ -467,14 +467,14 @@ export var BaseShaclCoreShape;
|
|
|
467
467
|
xone,
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
BaseShaclCoreShape.
|
|
470
|
+
BaseShaclCoreShape._propertiesFromRdf = _propertiesFromRdf;
|
|
471
471
|
})(BaseShaclCoreShape || (BaseShaclCoreShape = {}));
|
|
472
472
|
export var ShaclCorePropertyShape;
|
|
473
473
|
(function (ShaclCorePropertyShape) {
|
|
474
|
-
function
|
|
474
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
|
|
475
475
|
// @ts-ignore
|
|
476
476
|
..._context }) {
|
|
477
|
-
const _super0Either = BaseShaclCoreShape.
|
|
477
|
+
const _super0Either = BaseShaclCoreShape._propertiesFromRdf({
|
|
478
478
|
..._context,
|
|
479
479
|
ignoreRdfType: true,
|
|
480
480
|
languageIn: _languageIn,
|
|
@@ -492,6 +492,8 @@ export var ShaclCorePropertyShape;
|
|
|
492
492
|
predicate: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"),
|
|
493
493
|
}));
|
|
494
494
|
}
|
|
495
|
+
const identifier = _resource.identifier;
|
|
496
|
+
const type = "ShaclCorePropertyShape";
|
|
495
497
|
const _defaultValueEither = purify.Either.of(_resource
|
|
496
498
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#defaultValue"), { unique: true })
|
|
497
499
|
.head()
|
|
@@ -542,7 +544,6 @@ export var ShaclCorePropertyShape;
|
|
|
542
544
|
return _groupsEither;
|
|
543
545
|
}
|
|
544
546
|
const groups = _groupsEither.unsafeCoerce();
|
|
545
|
-
const identifier = _resource.identifier;
|
|
546
547
|
const _namesEither = purify.Either.of([
|
|
547
548
|
..._resource
|
|
548
549
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#name"), {
|
|
@@ -597,7 +598,6 @@ export var ShaclCorePropertyShape;
|
|
|
597
598
|
return _pathEither;
|
|
598
599
|
}
|
|
599
600
|
const path = _pathEither.unsafeCoerce();
|
|
600
|
-
const type = "ShaclCorePropertyShape";
|
|
601
601
|
const _uniqueLangEither = purify.Either.of(_resource
|
|
602
602
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"), { unique: true })
|
|
603
603
|
.head()
|
|
@@ -609,27 +609,27 @@ export var ShaclCorePropertyShape;
|
|
|
609
609
|
const uniqueLang = _uniqueLangEither.unsafeCoerce();
|
|
610
610
|
return purify.Either.of({
|
|
611
611
|
..._super0,
|
|
612
|
+
identifier,
|
|
613
|
+
type,
|
|
612
614
|
defaultValue,
|
|
613
615
|
descriptions,
|
|
614
616
|
groups,
|
|
615
|
-
identifier,
|
|
616
617
|
names,
|
|
617
618
|
order,
|
|
618
619
|
path,
|
|
619
|
-
type,
|
|
620
620
|
uniqueLang,
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
|
-
ShaclCorePropertyShape.
|
|
623
|
+
ShaclCorePropertyShape._propertiesFromRdf = _propertiesFromRdf;
|
|
624
624
|
function fromRdf(parameters) {
|
|
625
|
-
return ShaclCorePropertyShape.
|
|
625
|
+
return ShaclCorePropertyShape._propertiesFromRdf(parameters);
|
|
626
626
|
}
|
|
627
627
|
ShaclCorePropertyShape.fromRdf = fromRdf;
|
|
628
628
|
ShaclCorePropertyShape.fromRdfType = dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape");
|
|
629
629
|
})(ShaclCorePropertyShape || (ShaclCorePropertyShape = {}));
|
|
630
630
|
export var ShaclCorePropertyGroup;
|
|
631
631
|
(function (ShaclCorePropertyGroup) {
|
|
632
|
-
function
|
|
632
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
|
|
633
633
|
// @ts-ignore
|
|
634
634
|
..._context }) {
|
|
635
635
|
if (!_ignoreRdfType &&
|
|
@@ -640,6 +640,8 @@ export var ShaclCorePropertyGroup;
|
|
|
640
640
|
predicate: dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"),
|
|
641
641
|
}));
|
|
642
642
|
}
|
|
643
|
+
const identifier = _resource.identifier;
|
|
644
|
+
const type = "ShaclCorePropertyGroup";
|
|
643
645
|
const _commentsEither = purify.Either.of([
|
|
644
646
|
..._resource
|
|
645
647
|
.values(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"), { unique: true })
|
|
@@ -665,7 +667,6 @@ export var ShaclCorePropertyGroup;
|
|
|
665
667
|
return _commentsEither;
|
|
666
668
|
}
|
|
667
669
|
const comments = _commentsEither.unsafeCoerce();
|
|
668
|
-
const identifier = _resource.identifier;
|
|
669
670
|
const _labelsEither = purify.Either.of([
|
|
670
671
|
..._resource
|
|
671
672
|
.values(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), { unique: true })
|
|
@@ -691,22 +692,21 @@ export var ShaclCorePropertyGroup;
|
|
|
691
692
|
return _labelsEither;
|
|
692
693
|
}
|
|
693
694
|
const labels = _labelsEither.unsafeCoerce();
|
|
694
|
-
|
|
695
|
-
return purify.Either.of({ comments, identifier, labels, type });
|
|
695
|
+
return purify.Either.of({ identifier, type, comments, labels });
|
|
696
696
|
}
|
|
697
|
-
ShaclCorePropertyGroup.
|
|
697
|
+
ShaclCorePropertyGroup._propertiesFromRdf = _propertiesFromRdf;
|
|
698
698
|
function fromRdf(parameters) {
|
|
699
|
-
return ShaclCorePropertyGroup.
|
|
699
|
+
return ShaclCorePropertyGroup._propertiesFromRdf(parameters);
|
|
700
700
|
}
|
|
701
701
|
ShaclCorePropertyGroup.fromRdf = fromRdf;
|
|
702
702
|
ShaclCorePropertyGroup.fromRdfType = dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup");
|
|
703
703
|
})(ShaclCorePropertyGroup || (ShaclCorePropertyGroup = {}));
|
|
704
704
|
export var ShaclCoreNodeShape;
|
|
705
705
|
(function (ShaclCoreNodeShape) {
|
|
706
|
-
function
|
|
706
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
|
|
707
707
|
// @ts-ignore
|
|
708
708
|
..._context }) {
|
|
709
|
-
const _super0Either = BaseShaclCoreShape.
|
|
709
|
+
const _super0Either = BaseShaclCoreShape._propertiesFromRdf({
|
|
710
710
|
..._context,
|
|
711
711
|
ignoreRdfType: true,
|
|
712
712
|
languageIn: _languageIn,
|
|
@@ -724,6 +724,8 @@ export var ShaclCoreNodeShape;
|
|
|
724
724
|
predicate: dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"),
|
|
725
725
|
}));
|
|
726
726
|
}
|
|
727
|
+
const identifier = _resource.identifier;
|
|
728
|
+
const type = "ShaclCoreNodeShape";
|
|
727
729
|
const _closedEither = purify.Either.of(_resource
|
|
728
730
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"), {
|
|
729
731
|
unique: true,
|
|
@@ -735,7 +737,6 @@ export var ShaclCoreNodeShape;
|
|
|
735
737
|
return _closedEither;
|
|
736
738
|
}
|
|
737
739
|
const closed = _closedEither.unsafeCoerce();
|
|
738
|
-
const identifier = _resource.identifier;
|
|
739
740
|
const _ignoredPropertiesEither = purify.Either.of(_resource
|
|
740
741
|
.values(dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"), { unique: true })
|
|
741
742
|
.head()
|
|
@@ -767,26 +768,25 @@ export var ShaclCoreNodeShape;
|
|
|
767
768
|
return _propertiesEither;
|
|
768
769
|
}
|
|
769
770
|
const properties = _propertiesEither.unsafeCoerce();
|
|
770
|
-
const type = "ShaclCoreNodeShape";
|
|
771
771
|
return purify.Either.of({
|
|
772
772
|
..._super0,
|
|
773
|
-
closed,
|
|
774
773
|
identifier,
|
|
774
|
+
type,
|
|
775
|
+
closed,
|
|
775
776
|
ignoredProperties,
|
|
776
777
|
properties,
|
|
777
|
-
type,
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
|
-
ShaclCoreNodeShape.
|
|
780
|
+
ShaclCoreNodeShape._propertiesFromRdf = _propertiesFromRdf;
|
|
781
781
|
function fromRdf(parameters) {
|
|
782
|
-
return ShaclCoreNodeShape.
|
|
782
|
+
return ShaclCoreNodeShape._propertiesFromRdf(parameters);
|
|
783
783
|
}
|
|
784
784
|
ShaclCoreNodeShape.fromRdf = fromRdf;
|
|
785
785
|
ShaclCoreNodeShape.fromRdfType = dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape");
|
|
786
786
|
})(ShaclCoreNodeShape || (ShaclCoreNodeShape = {}));
|
|
787
787
|
export var OwlOntology;
|
|
788
788
|
(function (OwlOntology) {
|
|
789
|
-
function
|
|
789
|
+
function _propertiesFromRdf({ ignoreRdfType: _ignoreRdfType, languageIn: _languageIn, resource: _resource,
|
|
790
790
|
// @ts-ignore
|
|
791
791
|
..._context }) {
|
|
792
792
|
if (!_ignoreRdfType &&
|
|
@@ -798,6 +798,7 @@ export var OwlOntology;
|
|
|
798
798
|
}));
|
|
799
799
|
}
|
|
800
800
|
const identifier = _resource.identifier;
|
|
801
|
+
const type = "OwlOntology";
|
|
801
802
|
const _labelsEither = purify.Either.of([
|
|
802
803
|
..._resource
|
|
803
804
|
.values(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), { unique: true })
|
|
@@ -823,12 +824,11 @@ export var OwlOntology;
|
|
|
823
824
|
return _labelsEither;
|
|
824
825
|
}
|
|
825
826
|
const labels = _labelsEither.unsafeCoerce();
|
|
826
|
-
|
|
827
|
-
return purify.Either.of({ identifier, labels, type });
|
|
827
|
+
return purify.Either.of({ identifier, type, labels });
|
|
828
828
|
}
|
|
829
|
-
OwlOntology.
|
|
829
|
+
OwlOntology._propertiesFromRdf = _propertiesFromRdf;
|
|
830
830
|
function fromRdf(parameters) {
|
|
831
|
-
return OwlOntology.
|
|
831
|
+
return OwlOntology._propertiesFromRdf(parameters);
|
|
832
832
|
}
|
|
833
833
|
OwlOntology.fromRdf = fromRdf;
|
|
834
834
|
OwlOntology.fromRdfType = dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology");
|
package/package.json
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"name": "@shaclmate/shacl-ast",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/minorg/shaclmate"
|
|
31
|
+
},
|
|
28
32
|
"scripts": {
|
|
29
33
|
"build": "tsc -b",
|
|
30
34
|
"check": "biome check",
|
|
@@ -46,10 +50,6 @@
|
|
|
46
50
|
"watch": "tsc -w --preserveWatchOutput",
|
|
47
51
|
"watch:noEmit": "tsc --noEmit -w --preserveWatchOutput"
|
|
48
52
|
},
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/minorg/shaclmate"
|
|
52
|
-
},
|
|
53
53
|
"type": "module",
|
|
54
|
-
"version": "2.0.
|
|
54
|
+
"version": "2.0.19"
|
|
55
55
|
}
|