@rdfx/builder 0.0.32 → 0.0.33

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