@rdfx/builder 0.0.42 → 0.0.44
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/BuilderBuilderParameters.d.ts +5 -5
- package/dist/IdentifierLike.d.ts +1 -1
- package/dist/IriLike.d.ts +1 -1
- package/dist/builder.d.ts +85 -92
- package/dist/builder.js +4 -3
- package/dist/sh.d.ts +34 -48
- package/dist/sh.js +6 -13
- package/dist/shapes.d.ts +232 -18389
- package/dist/shapes.js +1222 -1126
- package/dist/skos.d.ts +7 -7
- package/dist/skos.js +4 -2
- package/package.json +11 -11
|
@@ -2,10 +2,10 @@ import type { NamespaceBuilder } from "@rdfjs/namespace";
|
|
|
2
2
|
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
3
3
|
import type { IdentifierLike } from "./IdentifierLike.js";
|
|
4
4
|
import type { IriLike } from "./IriLike.js";
|
|
5
|
-
export interface BuilderBuilderParameters<
|
|
6
|
-
|
|
7
|
-
toIdentifier: (identifier: IdentifierLike<
|
|
8
|
-
toIri: (iri: IriLike<
|
|
9
|
-
toIriArray: (iriArray: IriLike<
|
|
5
|
+
export interface BuilderBuilderParameters<DefaultNamespaceT extends NamespaceBuilder> {
|
|
6
|
+
defaultNamespace: DefaultNamespaceT;
|
|
7
|
+
toIdentifier: (identifier: IdentifierLike<DefaultNamespaceT>) => BlankNode | NamedNode;
|
|
8
|
+
toIri: (iri: IriLike<DefaultNamespaceT>) => NamedNode;
|
|
9
|
+
toIriArray: (iriArray: IriLike<DefaultNamespaceT> | readonly IriLike<DefaultNamespaceT>[]) => readonly NamedNode[];
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=BuilderBuilderParameters.d.ts.map
|
package/dist/IdentifierLike.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NamespaceBuilder } from "@rdfjs/namespace";
|
|
2
2
|
import type { BlankNode } from "@rdfjs/types";
|
|
3
3
|
import type { IriLike } from "./IriLike.js";
|
|
4
|
-
export type IdentifierLike<
|
|
4
|
+
export type IdentifierLike<DefaultNamespaceT extends NamespaceBuilder> = BlankNode | IriLike<DefaultNamespaceT> | undefined;
|
|
5
5
|
//# sourceMappingURL=IdentifierLike.d.ts.map
|
package/dist/IriLike.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NamespaceBuilder } from "@rdfjs/namespace";
|
|
2
2
|
import type { NamedNode } from "@rdfjs/types";
|
|
3
|
-
export type IriLike<
|
|
3
|
+
export type IriLike<DefaultNamespaceT extends NamespaceBuilder> = (keyof DefaultNamespaceT & string) | NamedNode;
|
|
4
4
|
//# sourceMappingURL=IriLike.d.ts.map
|
package/dist/builder.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { NamespaceBuilder } from "@rdfjs/namespace";
|
|
2
2
|
import type { BlankNode, NamedNode } from "@rdfjs/types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
namespace?: NamespaceT;
|
|
3
|
+
export declare function builder<DefaultNamespaceT extends NamespaceBuilder = NamespaceBuilder>(options?: {
|
|
4
|
+
defaultNamespace?: DefaultNamespaceT;
|
|
6
5
|
}): {
|
|
7
6
|
sh: {
|
|
8
7
|
namespace: NamespaceBuilder<keyof typeof import("@tpluscode/rdf-ns-builders").sh>;
|
|
9
|
-
NodeShape: ($identifier: BlankNode | NamedNode<string> | (keyof
|
|
10
|
-
readonly $
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
8
|
+
NodeShape: ($identifier: BlankNode | NamedNode<string> | (keyof DefaultNamespaceT & string), parameters?: (Omit<{
|
|
9
|
+
readonly $defaultNamespace?: DefaultNamespaceT | undefined;
|
|
10
|
+
readonly $identifier?: BlankNode | NamedNode<string> | (() => import("./shapes.js").sh_NodeShape.Identifier) | (keyof DefaultNamespaceT & string) | undefined;
|
|
11
|
+
readonly and?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
12
|
+
readonly class_?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
13
13
|
readonly closed?: boolean | import("purify-ts").Maybe<boolean>;
|
|
14
14
|
readonly comment?: string | import("purify-ts").Maybe<string>;
|
|
15
|
-
readonly datatype?: string |
|
|
15
|
+
readonly datatype?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
16
16
|
readonly deactivated?: boolean | import("purify-ts").Maybe<boolean>;
|
|
17
17
|
readonly discriminantValue?: string | import("purify-ts").Maybe<string>;
|
|
18
18
|
readonly extern?: boolean | import("purify-ts").Maybe<boolean>;
|
|
19
19
|
readonly flags?: string | import("purify-ts").Maybe<string>;
|
|
20
|
-
readonly fromRdfType?: string |
|
|
20
|
+
readonly fromRdfType?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
21
21
|
readonly hasValues?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
22
22
|
readonly ignore?: boolean;
|
|
23
|
-
readonly ignoredProperties?:
|
|
23
|
+
readonly ignoredProperties?: import("purify-ts").Maybe<readonly NamedNode<string>[]> | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
24
24
|
readonly in_?: readonly (NamedNode | import("@rdfjs/types").Literal)[] | import("purify-ts").Maybe<readonly (NamedNode | import("@rdfjs/types").Literal)[]>;
|
|
25
|
-
readonly isDefinedBy?:
|
|
25
|
+
readonly isDefinedBy?: NamedNode<string> | import("./shapes.js").owl_Ontology | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").owl_Ontology> | (keyof DefaultNamespaceT & string) | undefined;
|
|
26
26
|
readonly label?: string | import("purify-ts").Maybe<string>;
|
|
27
27
|
readonly languageIn?: readonly string[] | import("purify-ts").Maybe<readonly string[]>;
|
|
28
28
|
readonly maxExclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
@@ -33,50 +33,51 @@ export declare function builder<NamespaceT extends NamespaceBuilder = NamespaceB
|
|
|
33
33
|
readonly minInclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
34
34
|
readonly minLength?: bigint | import("purify-ts").Maybe<bigint>;
|
|
35
35
|
readonly mutable?: boolean | import("purify-ts").Maybe<boolean>;
|
|
36
|
-
readonly node?:
|
|
36
|
+
readonly node?: NamedNode<string> | import("./shapes.js").sh_NodeShape | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").sh_NodeShape> | (keyof DefaultNamespaceT & string) | undefined;
|
|
37
37
|
readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | import("purify-ts").Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
38
|
-
readonly not?:
|
|
39
|
-
readonly or?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
38
|
+
readonly not?: NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
39
|
+
readonly or?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
40
40
|
readonly pattern?: string | import("purify-ts").Maybe<string>;
|
|
41
|
-
readonly properties?:
|
|
42
|
-
readonly rdfType?: string |
|
|
43
|
-
readonly severity?: ("
|
|
41
|
+
readonly properties?: NamedNode<string> | import("./shapes.js").sh_PropertyShape | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_PropertyShape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
42
|
+
readonly rdfType?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
43
|
+
readonly severity?: import("./shapes.js").sh_Severity["value"] | import("./shapes.js").sh_Severity | import("purify-ts").Maybe<import("./shapes.js").sh_Severity>;
|
|
44
44
|
readonly shaclmateName?: string | import("purify-ts").Maybe<string>;
|
|
45
|
-
readonly subClassOf?: string |
|
|
46
|
-
readonly targetClasses?: string |
|
|
45
|
+
readonly subClassOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
46
|
+
readonly targetClasses?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
47
47
|
readonly targetNodes?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
48
|
-
readonly targetObjectsOf?: string |
|
|
49
|
-
readonly targetSubjectsOf?: string |
|
|
50
|
-
readonly toRdfTypes?: string |
|
|
48
|
+
readonly targetObjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
49
|
+
readonly targetSubjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
50
|
+
readonly toRdfTypes?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
51
51
|
readonly tsImports?: string | readonly string[];
|
|
52
|
-
readonly type?: string |
|
|
53
|
-
readonly xone?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
54
|
-
}, "$identifier" | "
|
|
52
|
+
readonly type?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
53
|
+
readonly xone?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
54
|
+
}, "$identifier" | "shaclmateName" | "in_" | "nodeKind" | "properties"> & {
|
|
55
55
|
readonly in_?: import("./shapes.js").skos_ConceptScheme | readonly (string | number | bigint | boolean | import("@rdfjs/types").Literal | Date | NamedNode<string>)[];
|
|
56
56
|
readonly implicitClassTarget?: true;
|
|
57
57
|
readonly nodeKind?: ((NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNode">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#Literal">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">)) | ("BlankNode" | "Literal" | "BlankNodeOrIRI" | "BlankNodeOrLiteral" | "IRI" | "IRIOrLiteral");
|
|
58
58
|
readonly properties?: Record<string, Omit<Omit<{
|
|
59
|
-
readonly $
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
59
|
+
readonly $defaultNamespace?: DefaultNamespaceT | undefined;
|
|
60
|
+
readonly $identifier?: BlankNode | NamedNode<string> | (() => import("./shapes.js").sh_PropertyShape.Identifier) | (keyof DefaultNamespaceT & string) | undefined;
|
|
61
|
+
readonly and?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
62
|
+
readonly class_?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
62
63
|
readonly comment?: string | import("purify-ts").Maybe<string>;
|
|
63
|
-
readonly datatype?: string |
|
|
64
|
+
readonly datatype?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
64
65
|
readonly deactivated?: boolean | import("purify-ts").Maybe<boolean>;
|
|
65
66
|
readonly defaultValue?: (NamedNode | import("@rdfjs/types").Literal) | import("purify-ts").Maybe<NamedNode | import("@rdfjs/types").Literal>;
|
|
66
67
|
readonly description?: string | import("purify-ts").Maybe<string>;
|
|
67
|
-
readonly disjoint?: string |
|
|
68
|
+
readonly disjoint?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
68
69
|
readonly display?: boolean;
|
|
69
|
-
readonly equals?: string |
|
|
70
|
+
readonly equals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
70
71
|
readonly flags?: string | import("purify-ts").Maybe<string>;
|
|
71
|
-
readonly groups?:
|
|
72
|
+
readonly groups?: NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
72
73
|
readonly hasValues?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
73
74
|
readonly ignore?: boolean;
|
|
74
75
|
readonly in_?: readonly (NamedNode | import("@rdfjs/types").Literal)[] | import("purify-ts").Maybe<readonly (NamedNode | import("@rdfjs/types").Literal)[]>;
|
|
75
|
-
readonly isDefinedBy?:
|
|
76
|
+
readonly isDefinedBy?: NamedNode<string> | import("./shapes.js").owl_Ontology | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").owl_Ontology> | (keyof DefaultNamespaceT & string) | undefined;
|
|
76
77
|
readonly label?: string | import("purify-ts").Maybe<string>;
|
|
77
78
|
readonly languageIn?: readonly string[] | import("purify-ts").Maybe<readonly string[]>;
|
|
78
|
-
readonly lessThan?: string |
|
|
79
|
-
readonly lessThanOrEquals?: string |
|
|
79
|
+
readonly lessThan?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
80
|
+
readonly lessThanOrEquals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
80
81
|
readonly maxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
81
82
|
readonly maxExclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
82
83
|
readonly maxInclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
@@ -88,65 +89,60 @@ export declare function builder<NamespaceT extends NamespaceBuilder = NamespaceB
|
|
|
88
89
|
readonly minLength?: bigint | import("purify-ts").Maybe<bigint>;
|
|
89
90
|
readonly mutable?: boolean | import("purify-ts").Maybe<boolean>;
|
|
90
91
|
readonly name?: string | import("purify-ts").Maybe<string>;
|
|
91
|
-
readonly node?:
|
|
92
|
+
readonly node?: NamedNode<string> | import("./shapes.js").sh_NodeShape | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").sh_NodeShape> | (keyof DefaultNamespaceT & string) | undefined;
|
|
92
93
|
readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | import("purify-ts").Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
93
|
-
readonly not?:
|
|
94
|
-
readonly or?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
94
|
+
readonly not?: NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
95
|
+
readonly or?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
95
96
|
readonly order?: number | import("purify-ts").Maybe<number>;
|
|
96
97
|
readonly path: import("./shapes.js").$PropertyPath;
|
|
97
98
|
readonly pattern?: string | import("purify-ts").Maybe<string>;
|
|
98
99
|
readonly qualifiedMaxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
99
100
|
readonly qualifiedMinCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
100
|
-
readonly qualifiedValueShape?: BlankNode | NamedNode
|
|
101
|
+
readonly qualifiedValueShape?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
101
102
|
readonly qualifiedValueShapesDisjoint?: boolean | import("purify-ts").Maybe<boolean>;
|
|
102
|
-
readonly resolve?: BlankNode | NamedNode
|
|
103
|
-
readonly severity?: ("
|
|
103
|
+
readonly resolve?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
104
|
+
readonly severity?: import("./shapes.js").sh_Severity["value"] | import("./shapes.js").sh_Severity | import("purify-ts").Maybe<import("./shapes.js").sh_Severity>;
|
|
104
105
|
readonly shaclmateName?: string | import("purify-ts").Maybe<string>;
|
|
105
|
-
readonly targetClasses?: string |
|
|
106
|
+
readonly targetClasses?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
106
107
|
readonly targetNodes?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
107
|
-
readonly targetObjectsOf?: string |
|
|
108
|
-
readonly targetSubjectsOf?: string |
|
|
108
|
+
readonly targetObjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
109
|
+
readonly targetSubjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
109
110
|
readonly uniqueLang?: boolean | import("purify-ts").Maybe<boolean>;
|
|
110
|
-
readonly xone?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
111
|
-
}, "$identifier" | "
|
|
111
|
+
readonly xone?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
112
|
+
}, "$identifier" | "path" | "in_" | "nodeKind" | "maxCount" | "minCount"> & {
|
|
112
113
|
readonly cardinality?: "optional" | "required" | "set";
|
|
113
|
-
readonly class?: NamedNode<string> | (keyof NamespaceT & string) | readonly (NamedNode<string> | (keyof NamespaceT & string))[] | undefined;
|
|
114
114
|
readonly in_?: import("./shapes.js").skos_ConceptScheme | readonly (string | number | bigint | boolean | import("@rdfjs/types").Literal | Date | NamedNode<string>)[];
|
|
115
|
-
readonly node?: NamedNode<string> | (keyof NamespaceT & string) | undefined;
|
|
116
115
|
readonly nodeKind?: ((NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNode">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#Literal">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">)) | ("BlankNode" | "Literal" | "BlankNodeOrIRI" | "BlankNodeOrLiteral" | "IRI" | "IRIOrLiteral");
|
|
117
|
-
readonly path?: import("@rdfx/resource").PropertyPath | (keyof
|
|
118
|
-
readonly resolve?: NamedNode<string> | (keyof NamespaceT & string) | undefined;
|
|
119
|
-
readonly xone?: readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof NamespaceT & string))[] | undefined;
|
|
116
|
+
readonly path?: import("@rdfx/resource").PropertyPath | (keyof DefaultNamespaceT & string) | undefined;
|
|
120
117
|
}, "$identifier" | "path"> & {
|
|
121
|
-
readonly $identifier?: BlankNode | NamedNode<string> | (keyof
|
|
122
|
-
readonly path?: import("@rdfx/resource").PropertyPath | (keyof
|
|
123
|
-
}> | readonly (import("./shapes.js").sh_PropertyShape | (keyof
|
|
124
|
-
readonly type?: IriLike<NamespaceT> | readonly IriLike<NamespaceT>[] | undefined;
|
|
118
|
+
readonly $identifier?: BlankNode | NamedNode<string> | (keyof DefaultNamespaceT & string) | undefined;
|
|
119
|
+
readonly path?: import("@rdfx/resource").PropertyPath | (keyof DefaultNamespaceT & string) | undefined;
|
|
120
|
+
}> | readonly (import("./shapes.js").sh_PropertyShape | (keyof DefaultNamespaceT & string) | NamedNode<string>)[] | undefined;
|
|
125
121
|
readonly shaclmateName?: string;
|
|
126
|
-
readonly xone?: readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof NamespaceT & string))[] | undefined;
|
|
127
122
|
}) | undefined) => import("./shapes.js").sh_NodeShape;
|
|
128
|
-
PropertyShape: ($identifier: BlankNode | NamedNode<string> | (keyof
|
|
129
|
-
readonly $
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
123
|
+
PropertyShape: ($identifier: BlankNode | NamedNode<string> | (keyof DefaultNamespaceT & string), parameters?: (Omit<{
|
|
124
|
+
readonly $defaultNamespace?: DefaultNamespaceT | undefined;
|
|
125
|
+
readonly $identifier?: BlankNode | NamedNode<string> | (() => import("./shapes.js").sh_PropertyShape.Identifier) | (keyof DefaultNamespaceT & string) | undefined;
|
|
126
|
+
readonly and?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
127
|
+
readonly class_?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
132
128
|
readonly comment?: string | import("purify-ts").Maybe<string>;
|
|
133
|
-
readonly datatype?: string |
|
|
129
|
+
readonly datatype?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
134
130
|
readonly deactivated?: boolean | import("purify-ts").Maybe<boolean>;
|
|
135
131
|
readonly defaultValue?: (NamedNode | import("@rdfjs/types").Literal) | import("purify-ts").Maybe<NamedNode | import("@rdfjs/types").Literal>;
|
|
136
132
|
readonly description?: string | import("purify-ts").Maybe<string>;
|
|
137
|
-
readonly disjoint?: string |
|
|
133
|
+
readonly disjoint?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
138
134
|
readonly display?: boolean;
|
|
139
|
-
readonly equals?: string |
|
|
135
|
+
readonly equals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
140
136
|
readonly flags?: string | import("purify-ts").Maybe<string>;
|
|
141
|
-
readonly groups?:
|
|
137
|
+
readonly groups?: NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
142
138
|
readonly hasValues?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
143
139
|
readonly ignore?: boolean;
|
|
144
140
|
readonly in_?: readonly (NamedNode | import("@rdfjs/types").Literal)[] | import("purify-ts").Maybe<readonly (NamedNode | import("@rdfjs/types").Literal)[]>;
|
|
145
|
-
readonly isDefinedBy?:
|
|
141
|
+
readonly isDefinedBy?: NamedNode<string> | import("./shapes.js").owl_Ontology | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").owl_Ontology> | (keyof DefaultNamespaceT & string) | undefined;
|
|
146
142
|
readonly label?: string | import("purify-ts").Maybe<string>;
|
|
147
143
|
readonly languageIn?: readonly string[] | import("purify-ts").Maybe<readonly string[]>;
|
|
148
|
-
readonly lessThan?: string |
|
|
149
|
-
readonly lessThanOrEquals?: string |
|
|
144
|
+
readonly lessThan?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
145
|
+
readonly lessThanOrEquals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
150
146
|
readonly maxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
151
147
|
readonly maxExclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
152
148
|
readonly maxInclusive?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | import("purify-ts").Maybe<import("@rdfjs/types").Literal>;
|
|
@@ -158,54 +154,51 @@ export declare function builder<NamespaceT extends NamespaceBuilder = NamespaceB
|
|
|
158
154
|
readonly minLength?: bigint | import("purify-ts").Maybe<bigint>;
|
|
159
155
|
readonly mutable?: boolean | import("purify-ts").Maybe<boolean>;
|
|
160
156
|
readonly name?: string | import("purify-ts").Maybe<string>;
|
|
161
|
-
readonly node?:
|
|
157
|
+
readonly node?: NamedNode<string> | import("./shapes.js").sh_NodeShape | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").sh_NodeShape> | (keyof DefaultNamespaceT & string) | undefined;
|
|
162
158
|
readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | import("purify-ts").Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
163
|
-
readonly not?:
|
|
164
|
-
readonly or?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
159
|
+
readonly not?: NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_NodeShape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
160
|
+
readonly or?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
165
161
|
readonly order?: number | import("purify-ts").Maybe<number>;
|
|
166
162
|
readonly path: import("./shapes.js").$PropertyPath;
|
|
167
163
|
readonly pattern?: string | import("purify-ts").Maybe<string>;
|
|
168
164
|
readonly qualifiedMaxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
169
165
|
readonly qualifiedMinCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
170
|
-
readonly qualifiedValueShape?: BlankNode | NamedNode
|
|
166
|
+
readonly qualifiedValueShape?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
171
167
|
readonly qualifiedValueShapesDisjoint?: boolean | import("purify-ts").Maybe<boolean>;
|
|
172
|
-
readonly resolve?: BlankNode | NamedNode
|
|
173
|
-
readonly severity?: ("
|
|
168
|
+
readonly resolve?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
169
|
+
readonly severity?: import("./shapes.js").sh_Severity["value"] | import("./shapes.js").sh_Severity | import("purify-ts").Maybe<import("./shapes.js").sh_Severity>;
|
|
174
170
|
readonly shaclmateName?: string | import("purify-ts").Maybe<string>;
|
|
175
|
-
readonly targetClasses?: string |
|
|
171
|
+
readonly targetClasses?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
176
172
|
readonly targetNodes?: (NamedNode | import("@rdfjs/types").Literal) | readonly (NamedNode | import("@rdfjs/types").Literal)[];
|
|
177
|
-
readonly targetObjectsOf?: string |
|
|
178
|
-
readonly targetSubjectsOf?: string |
|
|
173
|
+
readonly targetObjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
174
|
+
readonly targetSubjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
179
175
|
readonly uniqueLang?: boolean | import("purify-ts").Maybe<boolean>;
|
|
180
|
-
readonly xone?: readonly (NamedNode | import("./shapes.js").sh_Shape)[] |
|
|
181
|
-
}, "$identifier" | "
|
|
176
|
+
readonly xone?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
177
|
+
}, "$identifier" | "path" | "in_" | "nodeKind" | "maxCount" | "minCount"> & {
|
|
182
178
|
readonly cardinality?: "optional" | "required" | "set";
|
|
183
|
-
readonly class?: NamedNode<string> | (keyof NamespaceT & string) | readonly (NamedNode<string> | (keyof NamespaceT & string))[] | undefined;
|
|
184
179
|
readonly in_?: import("./shapes.js").skos_ConceptScheme | readonly (string | number | bigint | boolean | import("@rdfjs/types").Literal | Date | NamedNode<string>)[];
|
|
185
|
-
readonly node?: NamedNode<string> | (keyof NamespaceT & string) | undefined;
|
|
186
180
|
readonly nodeKind?: ((NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNode">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#Literal">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrIRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#BlankNodeOrLiteral">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRI">) | (NamedNode<string> & NamedNode<"http://www.w3.org/ns/shacl#IRIOrLiteral">)) | ("BlankNode" | "Literal" | "BlankNodeOrIRI" | "BlankNodeOrLiteral" | "IRI" | "IRIOrLiteral");
|
|
187
|
-
readonly path?: import("@rdfx/resource").PropertyPath | (keyof
|
|
188
|
-
readonly resolve?: NamedNode<string> | (keyof NamespaceT & string) | undefined;
|
|
189
|
-
readonly xone?: readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof NamespaceT & string))[] | undefined;
|
|
181
|
+
readonly path?: import("@rdfx/resource").PropertyPath | (keyof DefaultNamespaceT & string) | undefined;
|
|
190
182
|
}) | undefined) => ReturnType<typeof import("./shapes.js").sh_PropertyShape.createUnsafe>;
|
|
191
183
|
};
|
|
192
184
|
skos: {
|
|
193
185
|
namespace: NamespaceBuilder<keyof typeof import("@tpluscode/rdf-ns-builders").skos>;
|
|
194
|
-
Concept: ($identifier: NamedNode<string> | (keyof
|
|
195
|
-
ConceptScheme: <ConceptsRecordT extends { [K in keyof ConceptsRecordT]: Omit<import("./skos.js").ConvertibleConceptParameters<Extract<keyof ConceptsRecordT, string
|
|
196
|
-
readonly $identifier?: NamedNode<string> | (keyof
|
|
186
|
+
Concept: ($identifier: NamedNode<string> | (keyof DefaultNamespaceT & string), parameters?: import("./skos.js").ConvertibleConceptParameters<keyof DefaultNamespaceT & string, DefaultNamespaceT> | undefined) => import("./shapes.js").skos_Concept;
|
|
187
|
+
ConceptScheme: <ConceptsRecordT extends { [K in keyof ConceptsRecordT]: Omit<import("./skos.js").ConvertibleConceptParameters<Extract<keyof ConceptsRecordT, string>, DefaultNamespaceT>, "broader" | "notation"> & {
|
|
188
|
+
readonly $identifier?: NamedNode<string> | (keyof DefaultNamespaceT & string) | undefined;
|
|
197
189
|
readonly broader?: (import("./shapes.js").skos_Concept | NamedNode<string> | Extract<keyof ConceptsRecordT, string> | readonly (import("./shapes.js").skos_Concept | NamedNode<string> | Extract<keyof ConceptsRecordT, string>)[]) | undefined;
|
|
198
|
-
readonly notation?: boolean | import("
|
|
199
|
-
}; }>($identifier: NamedNode<string> | (keyof
|
|
200
|
-
readonly $
|
|
190
|
+
readonly notation?: boolean | (string | number | bigint | boolean | import("@rdfjs/types").Literal | Date | readonly (string | number | bigint | boolean | import("@rdfjs/types").Literal | Date)[] | undefined);
|
|
191
|
+
}; }>($identifier: NamedNode<string> | (keyof DefaultNamespaceT & string), parameters?: (Omit<{
|
|
192
|
+
readonly $defaultNamespace?: DefaultNamespaceT | undefined;
|
|
193
|
+
readonly $identifier: NamedNode<string> | (() => import("./shapes.js").skos_ConceptScheme.Identifier) | (keyof DefaultNamespaceT & string);
|
|
201
194
|
readonly altLabel?: string | import("@rdfjs/types").Literal | readonly (string | import("@rdfjs/types").Literal)[];
|
|
202
|
-
readonly concepts?:
|
|
195
|
+
readonly concepts?: NamedNode<string> | import("./shapes.js").skos_Concept | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").skos_Concept | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
203
196
|
readonly definition?: string | import("@rdfjs/types").Literal | readonly (string | import("@rdfjs/types").Literal)[];
|
|
204
197
|
readonly hiddenLabel?: string | import("@rdfjs/types").Literal | readonly (string | import("@rdfjs/types").Literal)[];
|
|
205
198
|
readonly notation?: bigint | boolean | number | string | Date | import("@rdfjs/types").Literal | readonly (bigint | boolean | number | string | Date | import("@rdfjs/types").Literal)[];
|
|
206
199
|
readonly prefLabel?: string | import("@rdfjs/types").Literal | readonly (string | import("@rdfjs/types").Literal)[];
|
|
207
|
-
readonly topConcepts?:
|
|
208
|
-
readonly type?: string |
|
|
200
|
+
readonly topConcepts?: NamedNode<string> | import("./shapes.js").skos_Concept | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").skos_Concept | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
201
|
+
readonly type?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
209
202
|
}, "$identifier" | "concepts" | "topConcepts" | "termType"> & {
|
|
210
203
|
readonly concepts?: ConceptsRecordT | undefined;
|
|
211
204
|
}) | undefined) => import("./shapes.js").skos_ConceptScheme;
|
package/dist/builder.js
CHANGED
|
@@ -3,19 +3,20 @@ import dataFactory from "@rdfx/data-factory";
|
|
|
3
3
|
import { sh } from "./sh.js";
|
|
4
4
|
import { skos } from "./skos.js";
|
|
5
5
|
export function builder(options) {
|
|
6
|
-
const
|
|
6
|
+
const defaultNamespace = (options?.defaultNamespace ??
|
|
7
|
+
namespace(""));
|
|
7
8
|
const toIri = (iri) => {
|
|
8
9
|
switch (typeof iri) {
|
|
9
10
|
case "object":
|
|
10
11
|
return iri;
|
|
11
12
|
case "string":
|
|
12
|
-
return
|
|
13
|
+
return defaultNamespace(iri);
|
|
13
14
|
default:
|
|
14
15
|
throw new RangeError(typeof iri);
|
|
15
16
|
}
|
|
16
17
|
};
|
|
17
18
|
const builderBuilderParameters = {
|
|
18
|
-
|
|
19
|
+
defaultNamespace,
|
|
19
20
|
toIdentifier: (identifier) => {
|
|
20
21
|
switch (typeof identifier) {
|
|
21
22
|
case "object":
|
package/dist/sh.d.ts
CHANGED
|
@@ -3,39 +3,39 @@ import type { BlankNode, Literal, NamedNode } from "@rdfjs/types";
|
|
|
3
3
|
import type { PropertyPath } from "@rdfx/resource";
|
|
4
4
|
import { sh as _namespace } from "@tpluscode/rdf-ns-builders";
|
|
5
5
|
import type { BuilderBuilderParameters } from "./BuilderBuilderParameters.js";
|
|
6
|
-
import type
|
|
7
|
-
import { sh_NodeShape, sh_PropertyShape, type sh_Shape, type skos_ConceptScheme } from "./shapes.js";
|
|
6
|
+
import { sh_NodeShape, sh_PropertyShape, type skos_ConceptScheme } from "./shapes.js";
|
|
8
7
|
type ConvertibleInArray = readonly (bigint | boolean | Date | Literal | NamedNode | number | string)[];
|
|
9
8
|
type NodeKindIri = (typeof _namespace)["BlankNode"] | (typeof _namespace)["BlankNodeOrIRI"] | (typeof _namespace)["BlankNodeOrLiteral"] | (typeof _namespace)["IRI"] | (typeof _namespace)["IRIOrLiteral"] | (typeof _namespace)["Literal"];
|
|
10
9
|
type NodeKindString = "BlankNode" | "BlankNodeOrIRI" | "BlankNodeOrLiteral" | "IRI" | "IRIOrLiteral" | "Literal";
|
|
11
|
-
export declare function sh<
|
|
10
|
+
export declare function sh<DefaultNamespaceT extends NamespaceBuilder>({ defaultNamespace, toIdentifier, toIri, toIriArray, }: BuilderBuilderParameters<DefaultNamespaceT>): {
|
|
12
11
|
namespace: NamespaceBuilder<keyof typeof _namespace>;
|
|
13
|
-
NodeShape: ($identifier:
|
|
12
|
+
NodeShape: ($identifier: BlankNode | (keyof DefaultNamespaceT & string) | NamedNode, parameters?: Omit<NonNullable<Parameters<typeof sh_NodeShape.createUnsafe<DefaultNamespaceT>>[0]>, "$identifier" | "in_" | "nodeKind" | "properties" | "shaclmateName"> & {
|
|
14
13
|
readonly in_?: skos_ConceptScheme | ConvertibleInArray;
|
|
15
14
|
readonly implicitClassTarget?: true;
|
|
16
15
|
readonly nodeKind?: NodeKindIri | NodeKindString;
|
|
17
16
|
readonly properties?: Record<string, Omit<Omit<{
|
|
18
|
-
readonly $
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
17
|
+
readonly $defaultNamespace?: DefaultNamespaceT | undefined;
|
|
18
|
+
readonly $identifier?: BlankNode | NamedNode<string> | (() => sh_PropertyShape.Identifier) | (keyof DefaultNamespaceT & string) | undefined;
|
|
19
|
+
readonly and?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
20
|
+
readonly class_?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
21
21
|
readonly comment?: string | import("purify-ts").Maybe<string>;
|
|
22
|
-
readonly datatype?: string |
|
|
22
|
+
readonly datatype?: NamedNode<string> | import("purify-ts").Maybe<NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
23
23
|
readonly deactivated?: boolean | import("purify-ts").Maybe<boolean>;
|
|
24
24
|
readonly defaultValue?: (NamedNode | Literal) | import("purify-ts").Maybe<NamedNode | Literal>;
|
|
25
25
|
readonly description?: string | import("purify-ts").Maybe<string>;
|
|
26
|
-
readonly disjoint?: string |
|
|
26
|
+
readonly disjoint?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
27
27
|
readonly display?: boolean;
|
|
28
|
-
readonly equals?: string |
|
|
28
|
+
readonly equals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
29
29
|
readonly flags?: string | import("purify-ts").Maybe<string>;
|
|
30
|
-
readonly groups?:
|
|
30
|
+
readonly groups?: NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | import("./shapes.js").sh_PropertyGroup | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
31
31
|
readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
32
32
|
readonly ignore?: boolean;
|
|
33
33
|
readonly in_?: readonly (NamedNode | Literal)[] | import("purify-ts").Maybe<readonly (NamedNode | Literal)[]>;
|
|
34
|
-
readonly isDefinedBy?:
|
|
34
|
+
readonly isDefinedBy?: NamedNode<string> | import("./shapes.js").owl_Ontology | import("purify-ts").Maybe<NamedNode<string> | import("./shapes.js").owl_Ontology> | (keyof DefaultNamespaceT & string) | undefined;
|
|
35
35
|
readonly label?: string | import("purify-ts").Maybe<string>;
|
|
36
36
|
readonly languageIn?: readonly string[] | import("purify-ts").Maybe<readonly string[]>;
|
|
37
|
-
readonly lessThan?: string |
|
|
38
|
-
readonly lessThanOrEquals?: string |
|
|
37
|
+
readonly lessThan?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
38
|
+
readonly lessThanOrEquals?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
39
39
|
readonly maxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
40
40
|
readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | import("purify-ts").Maybe<Literal>;
|
|
41
41
|
readonly maxInclusive?: bigint | boolean | number | string | Date | Literal | import("purify-ts").Maybe<Literal>;
|
|
@@ -47,62 +47,48 @@ export declare function sh<NamespaceT extends NamespaceBuilder>({ namespace, toI
|
|
|
47
47
|
readonly minLength?: bigint | import("purify-ts").Maybe<bigint>;
|
|
48
48
|
readonly mutable?: boolean | import("purify-ts").Maybe<boolean>;
|
|
49
49
|
readonly name?: string | import("purify-ts").Maybe<string>;
|
|
50
|
-
readonly node?:
|
|
50
|
+
readonly node?: NamedNode<string> | sh_NodeShape | import("purify-ts").Maybe<NamedNode<string> | sh_NodeShape> | (keyof DefaultNamespaceT & string) | undefined;
|
|
51
51
|
readonly nodeKind?: ("http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal") | NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal"> | import("purify-ts").Maybe<NamedNode<"http://www.w3.org/ns/shacl#BlankNode" | "http://www.w3.org/ns/shacl#BlankNodeOrIRI" | "http://www.w3.org/ns/shacl#BlankNodeOrLiteral" | "http://www.w3.org/ns/shacl#IRI" | "http://www.w3.org/ns/shacl#IRIOrLiteral" | "http://www.w3.org/ns/shacl#Literal">>;
|
|
52
|
-
readonly not?:
|
|
53
|
-
readonly or?: readonly (NamedNode | sh_Shape)[] | import("
|
|
52
|
+
readonly not?: NamedNode<string> | sh_NodeShape | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | sh_NodeShape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
53
|
+
readonly or?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
54
54
|
readonly order?: number | import("purify-ts").Maybe<number>;
|
|
55
55
|
readonly path: import("./shapes.js").$PropertyPath;
|
|
56
56
|
readonly pattern?: string | import("purify-ts").Maybe<string>;
|
|
57
57
|
readonly qualifiedMaxCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
58
58
|
readonly qualifiedMinCount?: bigint | import("purify-ts").Maybe<bigint>;
|
|
59
|
-
readonly qualifiedValueShape?: BlankNode | NamedNode
|
|
59
|
+
readonly qualifiedValueShape?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
60
60
|
readonly qualifiedValueShapesDisjoint?: boolean | import("purify-ts").Maybe<boolean>;
|
|
61
|
-
readonly resolve?: BlankNode | NamedNode
|
|
62
|
-
readonly severity?: ("
|
|
61
|
+
readonly resolve?: BlankNode | NamedNode<string> | import("purify-ts").Maybe<BlankNode | NamedNode<string>> | (keyof DefaultNamespaceT & string) | undefined;
|
|
62
|
+
readonly severity?: import("./shapes.js").sh_Severity["value"] | import("./shapes.js").sh_Severity | import("purify-ts").Maybe<import("./shapes.js").sh_Severity>;
|
|
63
63
|
readonly shaclmateName?: string | import("purify-ts").Maybe<string>;
|
|
64
|
-
readonly targetClasses?: string |
|
|
64
|
+
readonly targetClasses?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
65
65
|
readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
|
|
66
|
-
readonly targetObjectsOf?: string |
|
|
67
|
-
readonly targetSubjectsOf?: string |
|
|
66
|
+
readonly targetObjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
67
|
+
readonly targetSubjectsOf?: NamedNode<string> | (keyof DefaultNamespaceT & string) | readonly (NamedNode<string> | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
68
68
|
readonly uniqueLang?: boolean | import("purify-ts").Maybe<boolean>;
|
|
69
|
-
readonly xone?: readonly (NamedNode | sh_Shape)[] | import("
|
|
70
|
-
}, "$identifier" | "
|
|
69
|
+
readonly xone?: import("purify-ts").Maybe<readonly (NamedNode<string> | import("./shapes.js").sh_Shape)[]> | readonly (NamedNode<string> | import("./shapes.js").sh_Shape | (keyof DefaultNamespaceT & string))[] | undefined;
|
|
70
|
+
}, "$identifier" | "path" | "in_" | "nodeKind" | "maxCount" | "minCount"> & {
|
|
71
71
|
readonly cardinality?: "optional" | "required" | "set";
|
|
72
|
-
readonly class?: NamedNode | (keyof NamespaceT & string) | readonly (NamedNode | (keyof NamespaceT & string))[];
|
|
73
72
|
readonly in_?: skos_ConceptScheme | ConvertibleInArray;
|
|
74
|
-
readonly node?: NamedNode | (keyof NamespaceT & string);
|
|
75
73
|
readonly nodeKind?: NodeKindIri | NodeKindString;
|
|
76
|
-
readonly path?: (keyof
|
|
77
|
-
readonly resolve?: NamedNode | (keyof NamespaceT & string);
|
|
78
|
-
readonly xone?: readonly (NamedNode | (keyof NamespaceT & string) | sh_Shape)[];
|
|
74
|
+
readonly path?: (keyof DefaultNamespaceT & string) | PropertyPath;
|
|
79
75
|
}, "$identifier" | "path"> & {
|
|
80
|
-
readonly $identifier?: Parameters<($identifier:
|
|
76
|
+
readonly $identifier?: Parameters<($identifier: BlankNode | (keyof DefaultNamespaceT & string) | NamedNode, parameters?: Omit<NonNullable<Parameters<typeof sh_PropertyShape.createUnsafe<DefaultNamespaceT>>[0]>, "$identifier" | "in_" | "maxCount" | "minCount" | "nodeKind" | "path"> & {
|
|
81
77
|
readonly cardinality?: "optional" | "required" | "set";
|
|
82
|
-
readonly class?: NamedNode | (keyof NamespaceT & string) | readonly (NamedNode | (keyof NamespaceT & string))[];
|
|
83
78
|
readonly in_?: skos_ConceptScheme | ConvertibleInArray;
|
|
84
|
-
readonly node?: NamedNode | (keyof NamespaceT & string);
|
|
85
79
|
readonly nodeKind?: NodeKindIri | NodeKindString;
|
|
86
|
-
readonly path?: (keyof
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
readonly path?: (keyof NamespaceT & string) | PropertyPath;
|
|
91
|
-
}> | readonly (sh_PropertyShape | (keyof NamespaceT & string) | NamedNode<string>)[];
|
|
92
|
-
readonly type?: IriLike<NamespaceT> | readonly IriLike<NamespaceT>[];
|
|
80
|
+
readonly path?: (keyof DefaultNamespaceT & string) | PropertyPath;
|
|
81
|
+
}) => ReturnType<typeof sh_PropertyShape.createUnsafe<DefaultNamespaceT>>>[0];
|
|
82
|
+
readonly path?: (keyof DefaultNamespaceT & string) | PropertyPath;
|
|
83
|
+
}> | readonly (sh_PropertyShape | (keyof DefaultNamespaceT & string) | NamedNode<string>)[];
|
|
93
84
|
readonly shaclmateName?: string;
|
|
94
|
-
readonly xone?: readonly (NamedNode | (keyof NamespaceT & string) | sh_Shape)[];
|
|
95
85
|
}) => sh_NodeShape;
|
|
96
|
-
PropertyShape: ($identifier:
|
|
86
|
+
PropertyShape: ($identifier: BlankNode | (keyof DefaultNamespaceT & string) | NamedNode, parameters?: Omit<NonNullable<Parameters<typeof sh_PropertyShape.createUnsafe<DefaultNamespaceT>>[0]>, "$identifier" | "in_" | "maxCount" | "minCount" | "nodeKind" | "path"> & {
|
|
97
87
|
readonly cardinality?: "optional" | "required" | "set";
|
|
98
|
-
readonly class?: NamedNode | (keyof NamespaceT & string) | readonly (NamedNode | (keyof NamespaceT & string))[];
|
|
99
88
|
readonly in_?: skos_ConceptScheme | ConvertibleInArray;
|
|
100
|
-
readonly node?: NamedNode | (keyof NamespaceT & string);
|
|
101
89
|
readonly nodeKind?: NodeKindIri | NodeKindString;
|
|
102
|
-
readonly path?: (keyof
|
|
103
|
-
|
|
104
|
-
readonly xone?: readonly (NamedNode | (keyof NamespaceT & string) | sh_Shape)[];
|
|
105
|
-
}) => ReturnType<typeof sh_PropertyShape.createUnsafe>;
|
|
90
|
+
readonly path?: (keyof DefaultNamespaceT & string) | PropertyPath;
|
|
91
|
+
}) => ReturnType<typeof sh_PropertyShape.createUnsafe<DefaultNamespaceT>>;
|
|
106
92
|
};
|
|
107
93
|
export {};
|
|
108
94
|
//# sourceMappingURL=sh.d.ts.map
|