@shaclmate/shacl-ast 4.0.78 → 4.0.79

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.
@@ -23,6 +23,10 @@ export type $FromRdfResourceValuesFunction<ValueT, ValueSchemaT> = (resourceValu
23
23
  propertyPath: $PropertyPath;
24
24
  schema: ValueSchemaT;
25
25
  }) => Either<Error, Resource.Values<ValueT>>;
26
+ /**
27
+ * NamespaceBuilder type excerpted from @rdfjs/namespace (MIT license) in lieu of a type import.
28
+ */
29
+ type $NamespaceBuilder<TermNames extends string = any> = Record<TermNames, NamedNode> & ((property?: TemplateStringsArray | TermNames) => NamedNode);
26
30
  export type $PropertyPath = RdfxResourcePropertyPath;
27
31
  export declare namespace $PropertyPath {
28
32
  const fromRdfResource: $FromRdfResourceFunction<$PropertyPath>;
@@ -77,19 +81,20 @@ export type NodeShape = {
77
81
  export declare namespace NodeShape {
78
82
  const _fromRdfResource: $_FromRdfResourceFunction<NodeShape>;
79
83
  const $toString: (_nodeShape: NodeShape) => string;
80
- const create: (parameters?: {
81
- readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | string;
82
- readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
83
- readonly classes?: string | NamedNode | readonly (string | NamedNode)[];
84
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
85
+ readonly $defaultNamespace?: $DefaultNamespaceT;
86
+ readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
87
+ readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
88
+ readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
84
89
  readonly closed?: boolean | Maybe<boolean>;
85
90
  readonly comment?: string | Maybe<string>;
86
- readonly datatype?: string | NamedNode | Maybe<NamedNode>;
91
+ readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
87
92
  readonly deactivated?: boolean | Maybe<boolean>;
88
93
  readonly flags?: string | Maybe<string>;
89
94
  readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
90
- readonly ignoredProperties?: readonly (string | NamedNode)[] | Maybe<readonly NamedNode[]>;
95
+ readonly ignoredProperties?: readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[] | Maybe<readonly NamedNode[]>;
91
96
  readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
92
- readonly isDefinedBy?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
97
+ readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
93
98
  readonly label?: string | Maybe<string>;
94
99
  readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
95
100
  readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
@@ -99,34 +104,35 @@ export declare namespace NodeShape {
99
104
  readonly minExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
100
105
  readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
101
106
  readonly minLength?: bigint | Maybe<bigint>;
102
- readonly node?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
107
+ readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
103
108
  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"> | 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">>;
104
- readonly not?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
105
- readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
109
+ readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
110
+ readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
106
111
  readonly pattern?: string | Maybe<string>;
107
- readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
112
+ readonly properties?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
108
113
  readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
109
- readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
110
- readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
114
+ readonly subClassOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
115
+ readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
111
116
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
112
- readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
113
- readonly targetSubjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
114
- readonly types?: string | NamedNode | readonly (string | NamedNode)[];
115
- readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
117
+ readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
118
+ readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
119
+ readonly types?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
120
+ readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
116
121
  }) => Either<Error, NodeShape>;
117
- function createUnsafe(parameters?: {
118
- readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | string;
119
- readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
120
- readonly classes?: string | NamedNode | readonly (string | NamedNode)[];
122
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
123
+ readonly $defaultNamespace?: $DefaultNamespaceT;
124
+ readonly $identifier?: (() => NodeShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
125
+ readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
126
+ readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
121
127
  readonly closed?: boolean | Maybe<boolean>;
122
128
  readonly comment?: string | Maybe<string>;
123
- readonly datatype?: string | NamedNode | Maybe<NamedNode>;
129
+ readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
124
130
  readonly deactivated?: boolean | Maybe<boolean>;
125
131
  readonly flags?: string | Maybe<string>;
126
132
  readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
127
- readonly ignoredProperties?: readonly (string | NamedNode)[] | Maybe<readonly NamedNode[]>;
133
+ readonly ignoredProperties?: readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[] | Maybe<readonly NamedNode[]>;
128
134
  readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
129
- readonly isDefinedBy?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
135
+ readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
130
136
  readonly label?: string | Maybe<string>;
131
137
  readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
132
138
  readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
@@ -136,20 +142,20 @@ export declare namespace NodeShape {
136
142
  readonly minExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
137
143
  readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
138
144
  readonly minLength?: bigint | Maybe<bigint>;
139
- readonly node?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
145
+ readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
140
146
  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"> | 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">>;
141
- readonly not?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
142
- readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
147
+ readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
148
+ readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
143
149
  readonly pattern?: string | Maybe<string>;
144
- readonly properties?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
150
+ readonly properties?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
145
151
  readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
146
- readonly subClassOf?: string | NamedNode | readonly (string | NamedNode)[];
147
- readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
152
+ readonly subClassOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
153
+ readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
148
154
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
149
- readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
150
- readonly targetSubjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
151
- readonly types?: string | NamedNode | readonly (string | NamedNode)[];
152
- readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
155
+ readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
156
+ readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
157
+ readonly types?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
158
+ readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
153
159
  }): NodeShape;
154
160
  const fromRdfResource: $FromRdfResourceFunction<NodeShape>;
155
161
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<NodeShape, NodeShape.Schema>;
@@ -551,13 +557,15 @@ export type Ontology = {
551
557
  export declare namespace Ontology {
552
558
  const _fromRdfResource: $_FromRdfResourceFunction<Ontology>;
553
559
  const $toString: (_ontology: Ontology) => string;
554
- const create: (parameters?: {
555
- readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | string;
560
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
561
+ readonly $defaultNamespace?: $DefaultNamespaceT;
562
+ readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
556
563
  readonly comment?: string | Maybe<string>;
557
564
  readonly label?: string | Maybe<string>;
558
565
  }) => Either<Error, Ontology>;
559
- function createUnsafe(parameters?: {
560
- readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | string;
566
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
567
+ readonly $defaultNamespace?: $DefaultNamespaceT;
568
+ readonly $identifier?: (() => Ontology.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
561
569
  readonly comment?: string | Maybe<string>;
562
570
  readonly label?: string | Maybe<string>;
563
571
  }): Ontology;
@@ -617,13 +625,15 @@ export type PropertyGroup = {
617
625
  export declare namespace PropertyGroup {
618
626
  const _fromRdfResource: $_FromRdfResourceFunction<PropertyGroup>;
619
627
  const $toString: (_propertyGroup: PropertyGroup) => string;
620
- const create: (parameters?: {
621
- readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | string;
628
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
629
+ readonly $defaultNamespace?: $DefaultNamespaceT;
630
+ readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
622
631
  readonly comment?: string | Maybe<string>;
623
632
  readonly label?: string | Maybe<string>;
624
633
  }) => Either<Error, PropertyGroup>;
625
- function createUnsafe(parameters?: {
626
- readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | string;
634
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters?: {
635
+ readonly $defaultNamespace?: $DefaultNamespaceT;
636
+ readonly $identifier?: (() => PropertyGroup.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
627
637
  readonly comment?: string | Maybe<string>;
628
638
  readonly label?: string | Maybe<string>;
629
639
  }): PropertyGroup;
@@ -727,26 +737,27 @@ export type PropertyShape = {
727
737
  export declare namespace PropertyShape {
728
738
  const _fromRdfResource: $_FromRdfResourceFunction<PropertyShape>;
729
739
  const $toString: (_propertyShape: PropertyShape) => string;
730
- const create: (parameters: {
731
- readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | string;
732
- readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
733
- readonly classes?: string | NamedNode | readonly (string | NamedNode)[];
740
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
741
+ readonly $defaultNamespace?: $DefaultNamespaceT;
742
+ readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
743
+ readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
744
+ readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
734
745
  readonly comment?: string | Maybe<string>;
735
- readonly datatype?: string | NamedNode | Maybe<NamedNode>;
746
+ readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
736
747
  readonly deactivated?: boolean | Maybe<boolean>;
737
748
  readonly defaultValue?: (NamedNode | Literal) | Maybe<NamedNode | Literal>;
738
749
  readonly description?: string | Maybe<string>;
739
- readonly disjoint?: string | NamedNode | readonly (string | NamedNode)[];
740
- readonly equals?: string | NamedNode | readonly (string | NamedNode)[];
750
+ readonly disjoint?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
751
+ readonly equals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
741
752
  readonly flags?: string | Maybe<string>;
742
- readonly groups?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
753
+ readonly groups?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
743
754
  readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
744
755
  readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
745
- readonly isDefinedBy?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
756
+ readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
746
757
  readonly label?: string | Maybe<string>;
747
758
  readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
748
- readonly lessThan?: string | NamedNode | readonly (string | NamedNode)[];
749
- readonly lessThanOrEquals?: string | NamedNode | readonly (string | NamedNode)[];
759
+ readonly lessThan?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
760
+ readonly lessThanOrEquals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
750
761
  readonly maxCount?: bigint | Maybe<bigint>;
751
762
  readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
752
763
  readonly maxInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
@@ -757,45 +768,46 @@ export declare namespace PropertyShape {
757
768
  readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
758
769
  readonly minLength?: bigint | Maybe<bigint>;
759
770
  readonly name?: string | Maybe<string>;
760
- readonly node?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
771
+ readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
761
772
  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"> | 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">>;
762
- readonly not?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
763
- readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
773
+ readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
774
+ readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
764
775
  readonly order?: number | Maybe<number>;
765
776
  readonly path: $PropertyPath;
766
777
  readonly pattern?: string | Maybe<string>;
767
778
  readonly qualifiedMaxCount?: bigint | Maybe<bigint>;
768
779
  readonly qualifiedMinCount?: bigint | Maybe<bigint>;
769
- readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
780
+ readonly qualifiedValueShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
770
781
  readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
771
782
  readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
772
- readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
783
+ readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
773
784
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
774
- readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
775
- readonly targetSubjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
785
+ readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
786
+ readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
776
787
  readonly uniqueLang?: boolean | Maybe<boolean>;
777
- readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
788
+ readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
778
789
  }) => Either<Error, PropertyShape>;
779
- function createUnsafe(parameters: {
780
- readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | string;
781
- readonly and?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
782
- readonly classes?: string | NamedNode | readonly (string | NamedNode)[];
790
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
791
+ readonly $defaultNamespace?: $DefaultNamespaceT;
792
+ readonly $identifier?: (() => PropertyShape.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
793
+ readonly and?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
794
+ readonly classes?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
783
795
  readonly comment?: string | Maybe<string>;
784
- readonly datatype?: string | NamedNode | Maybe<NamedNode>;
796
+ readonly datatype?: (keyof $DefaultNamespaceT & string) | NamedNode | Maybe<NamedNode>;
785
797
  readonly deactivated?: boolean | Maybe<boolean>;
786
798
  readonly defaultValue?: (NamedNode | Literal) | Maybe<NamedNode | Literal>;
787
799
  readonly description?: string | Maybe<string>;
788
- readonly disjoint?: string | NamedNode | readonly (string | NamedNode)[];
789
- readonly equals?: string | NamedNode | readonly (string | NamedNode)[];
800
+ readonly disjoint?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
801
+ readonly equals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
790
802
  readonly flags?: string | Maybe<string>;
791
- readonly groups?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
803
+ readonly groups?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
792
804
  readonly hasValues?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
793
805
  readonly in_?: readonly (NamedNode | Literal)[] | Maybe<readonly (NamedNode | Literal)[]>;
794
- readonly isDefinedBy?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
806
+ readonly isDefinedBy?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
795
807
  readonly label?: string | Maybe<string>;
796
808
  readonly languageIn?: readonly string[] | Maybe<readonly string[]>;
797
- readonly lessThan?: string | NamedNode | readonly (string | NamedNode)[];
798
- readonly lessThanOrEquals?: string | NamedNode | readonly (string | NamedNode)[];
809
+ readonly lessThan?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
810
+ readonly lessThanOrEquals?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
799
811
  readonly maxCount?: bigint | Maybe<bigint>;
800
812
  readonly maxExclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
801
813
  readonly maxInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
@@ -806,24 +818,24 @@ export declare namespace PropertyShape {
806
818
  readonly minInclusive?: bigint | boolean | number | string | Date | Literal | Maybe<Literal>;
807
819
  readonly minLength?: bigint | Maybe<bigint>;
808
820
  readonly name?: string | Maybe<string>;
809
- readonly node?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
821
+ readonly node?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
810
822
  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"> | 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">>;
811
- readonly not?: BlankNode | NamedNode | string | readonly (BlankNode | NamedNode | string | undefined)[];
812
- readonly or?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
823
+ readonly not?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[];
824
+ readonly or?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
813
825
  readonly order?: number | Maybe<number>;
814
826
  readonly path: $PropertyPath;
815
827
  readonly pattern?: string | Maybe<string>;
816
828
  readonly qualifiedMaxCount?: bigint | Maybe<bigint>;
817
829
  readonly qualifiedMinCount?: bigint | Maybe<bigint>;
818
- readonly qualifiedValueShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
830
+ readonly qualifiedValueShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
819
831
  readonly qualifiedValueShapesDisjoint?: boolean | Maybe<boolean>;
820
832
  readonly severity?: Severity["value"] | Severity | Maybe<Severity>;
821
- readonly targetClasses?: string | NamedNode | readonly (string | NamedNode)[];
833
+ readonly targetClasses?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
822
834
  readonly targetNodes?: (NamedNode | Literal) | readonly (NamedNode | Literal)[];
823
- readonly targetObjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
824
- readonly targetSubjectsOf?: string | NamedNode | readonly (string | NamedNode)[];
835
+ readonly targetObjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
836
+ readonly targetSubjectsOf?: (keyof $DefaultNamespaceT & string) | NamedNode | readonly ((keyof $DefaultNamespaceT & string) | NamedNode)[];
825
837
  readonly uniqueLang?: boolean | Maybe<boolean>;
826
- readonly xone?: readonly (BlankNode | NamedNode | string | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
838
+ readonly xone?: readonly (BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | undefined)[] | Maybe<readonly (BlankNode | NamedNode)[]>;
827
839
  }): PropertyShape;
828
840
  const fromRdfResource: $FromRdfResourceFunction<PropertyShape>;
829
841
  const fromRdfResourceValues: $FromRdfResourceValuesFunction<PropertyShape, PropertyShape.Schema>;
@@ -1347,14 +1359,16 @@ export type ValidationReport = {
1347
1359
  export declare namespace ValidationReport {
1348
1360
  const _fromRdfResource: $_FromRdfResourceFunction<ValidationReport>;
1349
1361
  const $toString: (_validationReport: ValidationReport) => string;
1350
- const create: (parameters: {
1351
- readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | string;
1362
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1363
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1364
+ readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1352
1365
  readonly conforms: boolean;
1353
1366
  readonly results?: ValidationResult | readonly ValidationResult[];
1354
1367
  readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
1355
1368
  }) => Either<Error, ValidationReport>;
1356
- function createUnsafe(parameters: {
1357
- readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | string;
1369
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1370
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1371
+ readonly $identifier?: (() => ValidationReport.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1358
1372
  readonly conforms: boolean;
1359
1373
  readonly results?: ValidationResult | readonly ValidationResult[];
1360
1374
  readonly shapesGraphWellFormed?: boolean | Maybe<boolean>;
@@ -1515,26 +1529,28 @@ export type ValidationResult = {
1515
1529
  export declare namespace ValidationResult {
1516
1530
  const _fromRdfResource: $_FromRdfResourceFunction<ValidationResult>;
1517
1531
  const $toString: (_validationResult: ValidationResult) => string;
1518
- const create: (parameters: {
1519
- readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | string;
1532
+ const create: <$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1533
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1534
+ readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1520
1535
  readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
1521
1536
  readonly focusNode: BlankNode | NamedNode | Literal;
1522
1537
  readonly message?: string | Maybe<string>;
1523
1538
  readonly path?: $PropertyPath | Maybe<$PropertyPath>;
1524
1539
  readonly severity: Severity["value"] | Severity;
1525
- readonly sourceConstraintComponent: string | NamedNode;
1526
- readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
1540
+ readonly sourceConstraintComponent: (keyof $DefaultNamespaceT & string) | NamedNode;
1541
+ readonly sourceShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
1527
1542
  readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1528
1543
  }) => Either<Error, ValidationResult>;
1529
- function createUnsafe(parameters: {
1530
- readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | string;
1544
+ function createUnsafe<$DefaultNamespaceT extends $NamespaceBuilder = $NamespaceBuilder>(parameters: {
1545
+ readonly $defaultNamespace?: $DefaultNamespaceT;
1546
+ readonly $identifier?: (() => ValidationResult.Identifier) | BlankNode | NamedNode | (keyof $DefaultNamespaceT & string);
1531
1547
  readonly details?: (BlankNode | NamedNode | Literal) | readonly (BlankNode | NamedNode | Literal)[];
1532
1548
  readonly focusNode: BlankNode | NamedNode | Literal;
1533
1549
  readonly message?: string | Maybe<string>;
1534
1550
  readonly path?: $PropertyPath | Maybe<$PropertyPath>;
1535
1551
  readonly severity: Severity["value"] | Severity;
1536
- readonly sourceConstraintComponent: string | NamedNode;
1537
- readonly sourceShape?: BlankNode | NamedNode | string | Maybe<BlankNode | NamedNode>;
1552
+ readonly sourceConstraintComponent: (keyof $DefaultNamespaceT & string) | NamedNode;
1553
+ readonly sourceShape?: BlankNode | NamedNode | (keyof $DefaultNamespaceT & string) | Maybe<BlankNode | NamedNode>;
1538
1554
  readonly value?: (BlankNode | NamedNode | Literal) | Maybe<BlankNode | NamedNode | Literal>;
1539
1555
  }): ValidationResult;
1540
1556
  const fromRdfResource: $FromRdfResourceFunction<ValidationResult>;
@@ -24,17 +24,19 @@ function $compactRecord(record) {
24
24
  return definedProperties;
25
25
  }, {});
26
26
  }
27
- function $convertToIdentifier(value) {
27
+ function $convertToIdentifier(value, defaultNamespace) {
28
28
  switch (typeof value) {
29
29
  case "object":
30
30
  return Either.of(value);
31
31
  case "string":
32
- return Either.of(dataFactory.namedNode(value));
32
+ return Either.of(defaultNamespace
33
+ ? defaultNamespace(value)
34
+ : dataFactory.namedNode(value));
33
35
  case "undefined":
34
36
  return Either.of(dataFactory.blankNode());
35
37
  }
36
38
  }
37
- function $convertToIdentifierProperty(identifier) {
39
+ function $convertToIdentifierProperty(identifier, defaultNamespace) {
38
40
  switch (typeof identifier) {
39
41
  case "function":
40
42
  return Either.of(identifier);
@@ -43,7 +45,9 @@ function $convertToIdentifierProperty(identifier) {
43
45
  return Either.of(() => captureIdentifier);
44
46
  }
45
47
  case "string": {
46
- const captureIdentifier = dataFactory.namedNode(identifier);
48
+ const captureIdentifier = defaultNamespace
49
+ ? defaultNamespace(identifier)
50
+ : dataFactory.namedNode(identifier);
47
51
  return Either.of(() => captureIdentifier);
48
52
  }
49
53
  case "undefined": {
@@ -52,7 +56,7 @@ function $convertToIdentifierProperty(identifier) {
52
56
  }
53
57
  }
54
58
  }
55
- function $convertToIri(value) {
59
+ function $convertToInIri(value, _defaultNamespace) {
56
60
  switch (typeof value) {
57
61
  case "object":
58
62
  return Either.of(value);
@@ -60,10 +64,20 @@ function $convertToIri(value) {
60
64
  return Either.of(dataFactory.namedNode(value));
61
65
  }
62
66
  }
63
- function $convertToList(convertToItem, _readonly) {
64
- return (value) => Either.sequence(value.map(convertToItem));
67
+ function $convertToIri(value, defaultNamespace) {
68
+ switch (typeof value) {
69
+ case "object":
70
+ return Either.of(value);
71
+ case "string":
72
+ return Either.of(defaultNamespace
73
+ ? defaultNamespace(value)
74
+ : dataFactory.namedNode(value));
75
+ }
76
+ }
77
+ function $convertToList(convertToItem) {
78
+ return (value, defaultNamespace) => Either.sequence(value.map((value) => convertToItem(value, defaultNamespace)));
65
79
  }
66
- function $convertToLiteral(value) {
80
+ const $convertToLiteral = (value) => {
67
81
  if (typeof value === "object") {
68
82
  if (value instanceof Date) {
69
83
  return Either.of($literalFactory.date(value));
@@ -71,9 +85,9 @@ function $convertToLiteral(value) {
71
85
  return Either.of(value);
72
86
  }
73
87
  return Either.of($literalFactory.primitive(value));
74
- }
88
+ };
75
89
  function $convertToMaybe(convertToItem) {
76
- return (value) => {
90
+ return (value, defaultNamespace) => {
77
91
  switch (typeof value) {
78
92
  case "object": {
79
93
  if (Maybe.isMaybe(value)) {
@@ -84,16 +98,16 @@ function $convertToMaybe(convertToItem) {
84
98
  case "undefined":
85
99
  return Either.of(Maybe.empty());
86
100
  }
87
- return convertToItem(value).map(Maybe.of);
101
+ return convertToItem(value, defaultNamespace).map(Maybe.of);
88
102
  };
89
103
  }
90
- function $convertToScalarSet(convertToItem, _readonly) {
91
- return (value) => {
104
+ function $convertToScalarSet(convertToItem) {
105
+ return (value, defaultNamespace) => {
92
106
  if (typeof value === "undefined") {
93
107
  return Either.of([]);
94
108
  }
95
109
  if (Array.isArray(value)) {
96
- return Either.sequence(value.map(convertToItem));
110
+ return Either.sequence(value.map((value) => convertToItem(value, defaultNamespace)));
97
111
  }
98
112
  return convertToItem(value).map((value) => [
99
113
  value,
@@ -122,7 +136,7 @@ function $floatFromRdfResourceValues(values, options) {
122
136
  function $identifierFromRdfResourceValues(values, options) {
123
137
  return $termLikeFromRdfResourceValues(values, options).chain((values) => values.chainMap((value) => value.toIdentifier()));
124
138
  }
125
- function $identityConversionFunction(value) {
139
+ function $identityConversionFunction(value, _defaultNamespace) {
126
140
  return Either.of(value);
127
141
  }
128
142
  function $identityValidationFunction(_schema, value) {
@@ -343,7 +357,7 @@ const $termLikeFromRdfResourceValues = (values, { preferredLanguages, schema: {
343
357
  }
344
358
  return chain;
345
359
  };
346
- function $validateArray(validateItem, _readonly) {
360
+ function $validateArray(validateItem) {
347
361
  return (schema, valueArray) => {
348
362
  if (schema.minCount !== undefined && valueArray.length < schema.minCount) {
349
363
  return Left(new Error(`value array has length (${valueArray.length}) less than minCount (${schema.minCount})`));
@@ -621,41 +635,41 @@ export var NodeShape;
621
635
  }).chain((properties) => NodeShape.create(properties)));
622
636
  NodeShape.$toString = (_nodeShape) => `NodeShape(${JSON.stringify(NodeShape.toStringRecord(_nodeShape))})`;
623
637
  NodeShape.create = (parameters) => $sequenceRecord({
624
- $identifier: $convertToIdentifierProperty(parameters?.$identifier),
625
- and: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.and.type, value)),
626
- classes: $convertToScalarSet(($convertToIri), true)(parameters?.classes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.classes.type, value)),
627
- closed: $convertToMaybe($identityConversionFunction)(parameters?.closed).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type, value)),
628
- comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
629
- datatype: $convertToMaybe(($convertToIri))(parameters?.datatype).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
630
- deactivated: $convertToMaybe($identityConversionFunction)(parameters?.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
631
- flags: $convertToMaybe($identityConversionFunction)(parameters?.flags).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
632
- hasValues: $convertToScalarSet($identityConversionFunction, true)(parameters?.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.hasValues.type, value)),
633
- ignoredProperties: $convertToMaybe($convertToList(($convertToIri), true))(parameters?.ignoredProperties).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.ignoredProperties.type, value)),
634
- in_: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters?.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.in_.type, value)),
635
- isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters?.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
636
- label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
637
- languageIn: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters?.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.languageIn.type, value)),
638
- maxExclusive: $convertToMaybe($convertToLiteral)(parameters?.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
639
- maxInclusive: $convertToMaybe($convertToLiteral)(parameters?.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
640
- maxLength: $convertToMaybe($identityConversionFunction)(parameters?.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
641
- message: $convertToMaybe($identityConversionFunction)(parameters?.message).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
642
- minExclusive: $convertToMaybe($convertToLiteral)(parameters?.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
643
- minInclusive: $convertToMaybe($convertToLiteral)(parameters?.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
644
- minLength: $convertToMaybe($identityConversionFunction)(parameters?.minLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
645
- node: $convertToMaybe($convertToIdentifier)(parameters?.node).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
646
- nodeKind: $convertToMaybe(($convertToIri))(parameters?.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
647
- not: $convertToScalarSet($convertToIdentifier, true)(parameters?.not).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.not.type, value)),
648
- or: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.or.type, value)),
649
- pattern: $convertToMaybe($identityConversionFunction)(parameters?.pattern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
650
- properties: $convertToScalarSet($convertToIdentifier, true)(parameters?.properties).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.properties.type, value)),
651
- severity: $convertToMaybe(($convertToIri))(parameters?.severity).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
652
- subClassOf: $convertToScalarSet(($convertToIri), true)(parameters?.subClassOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.subClassOf.type, value)),
653
- targetClasses: $convertToScalarSet(($convertToIri), true)(parameters?.targetClasses).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetClasses.type, value)),
654
- targetNodes: $convertToScalarSet($identityConversionFunction, true)(parameters?.targetNodes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetNodes.type, value)),
655
- targetObjectsOf: $convertToScalarSet(($convertToIri), true)(parameters?.targetObjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetObjectsOf.type, value)),
656
- targetSubjectsOf: $convertToScalarSet(($convertToIri), true)(parameters?.targetSubjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
657
- types: $convertToScalarSet(($convertToIri), true)(parameters?.types).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.types.type, value)),
658
- xone: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters?.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.xone.type, value)),
638
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier, parameters?.$defaultNamespace),
639
+ and: $convertToMaybe($convertToList($convertToIdentifier))(parameters?.and, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.and.type, value)),
640
+ classes: $convertToScalarSet($convertToIri)(parameters?.classes, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
641
+ closed: $convertToMaybe($identityConversionFunction)(parameters?.closed, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.closed.type, value)),
642
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
643
+ datatype: $convertToMaybe($convertToIri)(parameters?.datatype, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
644
+ deactivated: $convertToMaybe($identityConversionFunction)(parameters?.deactivated, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
645
+ flags: $convertToMaybe($identityConversionFunction)(parameters?.flags, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
646
+ hasValues: $convertToScalarSet($identityConversionFunction)(parameters?.hasValues, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.hasValues.type, value)),
647
+ ignoredProperties: $convertToMaybe($convertToList($convertToIri))(parameters?.ignoredProperties, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.ignoredProperties.type, value)),
648
+ in_: $convertToMaybe($convertToList($identityConversionFunction))(parameters?.in_, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.in_.type, value)),
649
+ isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters?.isDefinedBy, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
650
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
651
+ languageIn: $convertToMaybe($convertToList($identityConversionFunction))(parameters?.languageIn, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.languageIn.type, value)),
652
+ maxExclusive: $convertToMaybe($convertToLiteral)(parameters?.maxExclusive, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
653
+ maxInclusive: $convertToMaybe($convertToLiteral)(parameters?.maxInclusive, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
654
+ maxLength: $convertToMaybe($identityConversionFunction)(parameters?.maxLength, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
655
+ message: $convertToMaybe($identityConversionFunction)(parameters?.message, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
656
+ minExclusive: $convertToMaybe($convertToLiteral)(parameters?.minExclusive, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
657
+ minInclusive: $convertToMaybe($convertToLiteral)(parameters?.minInclusive, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
658
+ minLength: $convertToMaybe($identityConversionFunction)(parameters?.minLength, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
659
+ node: $convertToMaybe($convertToIdentifier)(parameters?.node, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
660
+ nodeKind: $convertToMaybe(($convertToInIri))(parameters?.nodeKind, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
661
+ not: $convertToScalarSet($convertToIdentifier)(parameters?.not, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.not.type, value)),
662
+ or: $convertToMaybe($convertToList($convertToIdentifier))(parameters?.or, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.or.type, value)),
663
+ pattern: $convertToMaybe($identityConversionFunction)(parameters?.pattern, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
664
+ properties: $convertToScalarSet($convertToIdentifier)(parameters?.properties, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.properties.type, value)),
665
+ severity: $convertToMaybe(($convertToInIri))(parameters?.severity, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
666
+ subClassOf: $convertToScalarSet($convertToIri)(parameters?.subClassOf, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.subClassOf.type, value)),
667
+ targetClasses: $convertToScalarSet($convertToIri)(parameters?.targetClasses, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetClasses.type, value)),
668
+ targetNodes: $convertToScalarSet($identityConversionFunction)(parameters?.targetNodes, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetNodes.type, value)),
669
+ targetObjectsOf: $convertToScalarSet($convertToIri)(parameters?.targetObjectsOf, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetObjectsOf.type, value)),
670
+ targetSubjectsOf: $convertToScalarSet($convertToIri)(parameters?.targetSubjectsOf, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
671
+ types: $convertToScalarSet($convertToIri)(parameters?.types, parameters?.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.types.type, value)),
672
+ xone: $convertToMaybe($convertToList($convertToIdentifier))(parameters?.xone, parameters?.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.xone.type, value)),
659
673
  })
660
674
  .map((properties) => ({ ...properties, $type: "NodeShape" }))
661
675
  .map((object) => $monkeyPatchObject(object, { $toString: NodeShape.$toString }));
@@ -1005,9 +1019,9 @@ export var Ontology;
1005
1019
  }).chain((properties) => Ontology.create(properties)));
1006
1020
  Ontology.$toString = (_ontology) => `Ontology(${JSON.stringify(Ontology.toStringRecord(_ontology))})`;
1007
1021
  Ontology.create = (parameters) => $sequenceRecord({
1008
- $identifier: $convertToIdentifierProperty(parameters?.$identifier),
1009
- comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1010
- label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1022
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier, parameters?.$defaultNamespace),
1023
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1024
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1011
1025
  })
1012
1026
  .map((properties) => ({ ...properties, $type: "Ontology" }))
1013
1027
  .map((object) => $monkeyPatchObject(object, { $toString: Ontology.$toString }));
@@ -1089,9 +1103,9 @@ export var PropertyGroup;
1089
1103
  }).chain((properties) => PropertyGroup.create(properties)));
1090
1104
  PropertyGroup.$toString = (_propertyGroup) => `PropertyGroup(${JSON.stringify(PropertyGroup.toStringRecord(_propertyGroup))})`;
1091
1105
  PropertyGroup.create = (parameters) => $sequenceRecord({
1092
- $identifier: $convertToIdentifierProperty(parameters?.$identifier),
1093
- comment: $convertToMaybe($identityConversionFunction)(parameters?.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1094
- label: $convertToMaybe($identityConversionFunction)(parameters?.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1106
+ $identifier: $convertToIdentifierProperty(parameters?.$identifier, parameters?.$defaultNamespace),
1107
+ comment: $convertToMaybe($identityConversionFunction)(parameters?.comment, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1108
+ label: $convertToMaybe($identityConversionFunction)(parameters?.label, parameters?.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1095
1109
  })
1096
1110
  .map((properties) => ({ ...properties, $type: "PropertyGroup" }))
1097
1111
  .map((object) => $monkeyPatchObject(object, { $toString: PropertyGroup.$toString }));
@@ -1481,53 +1495,53 @@ export var PropertyShape;
1481
1495
  }).chain((properties) => PropertyShape.create(properties)));
1482
1496
  PropertyShape.$toString = (_propertyShape) => `PropertyShape(${JSON.stringify(PropertyShape.toStringRecord(_propertyShape))})`;
1483
1497
  PropertyShape.create = (parameters) => $sequenceRecord({
1484
- $identifier: $convertToIdentifierProperty(parameters.$identifier),
1485
- and: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.and).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.and.type, value)),
1486
- classes: $convertToScalarSet(($convertToIri), true)(parameters.classes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.classes.type, value)),
1487
- comment: $convertToMaybe($identityConversionFunction)(parameters.comment).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1488
- datatype: $convertToMaybe(($convertToIri))(parameters.datatype).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
1489
- deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
1490
- defaultValue: $convertToMaybe($identityConversionFunction)(parameters.defaultValue).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.defaultValue.type, value)),
1491
- description: $convertToMaybe($identityConversionFunction)(parameters.description).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.description.type, value)),
1492
- disjoint: $convertToScalarSet(($convertToIri), true)(parameters.disjoint).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.disjoint.type, value)),
1493
- equals: $convertToScalarSet(($convertToIri), true)(parameters.equals).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.equals.type, value)),
1494
- flags: $convertToMaybe($identityConversionFunction)(parameters.flags).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
1495
- groups: $convertToScalarSet($convertToIdentifier, true)(parameters.groups).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.groups.type, value)),
1496
- hasValues: $convertToScalarSet($identityConversionFunction, true)(parameters.hasValues).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.hasValues.type, value)),
1497
- in_: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters.in_).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.in_.type, value)),
1498
- isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
1499
- label: $convertToMaybe($identityConversionFunction)(parameters.label).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1500
- languageIn: $convertToMaybe($convertToList($identityConversionFunction, true))(parameters.languageIn).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.languageIn.type, value)),
1501
- lessThan: $convertToScalarSet(($convertToIri), true)(parameters.lessThan).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.lessThan.type, value)),
1502
- lessThanOrEquals: $convertToScalarSet(($convertToIri), true)(parameters.lessThanOrEquals).chain((value) => $validateArray($identityValidationFunction, true)(PropertyShape.schema.properties.lessThanOrEquals.type, value)),
1503
- maxCount: $convertToMaybe($identityConversionFunction)(parameters.maxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type, value)),
1504
- maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
1505
- maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
1506
- maxLength: $convertToMaybe($identityConversionFunction)(parameters.maxLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
1507
- message: $convertToMaybe($identityConversionFunction)(parameters.message).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
1508
- minCount: $convertToMaybe($identityConversionFunction)(parameters.minCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type, value)),
1509
- minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
1510
- minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
1511
- minLength: $convertToMaybe($identityConversionFunction)(parameters.minLength).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
1512
- name: $convertToMaybe($identityConversionFunction)(parameters.name).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type, value)),
1513
- node: $convertToMaybe($convertToIdentifier)(parameters.node).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
1514
- nodeKind: $convertToMaybe(($convertToIri))(parameters.nodeKind).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
1515
- not: $convertToScalarSet($convertToIdentifier, true)(parameters.not).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.not.type, value)),
1516
- or: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.or).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.or.type, value)),
1517
- order: $convertToMaybe($identityConversionFunction)(parameters.order).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type, value)),
1498
+ $identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
1499
+ and: $convertToMaybe($convertToList($convertToIdentifier))(parameters.and, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.and.type, value)),
1500
+ classes: $convertToScalarSet($convertToIri)(parameters.classes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.classes.type, value)),
1501
+ comment: $convertToMaybe($identityConversionFunction)(parameters.comment, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.comment.type, value)),
1502
+ datatype: $convertToMaybe($convertToIri)(parameters.datatype, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.datatype.type, value)),
1503
+ deactivated: $convertToMaybe($identityConversionFunction)(parameters.deactivated, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.deactivated.type, value)),
1504
+ defaultValue: $convertToMaybe($identityConversionFunction)(parameters.defaultValue, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.defaultValue.type, value)),
1505
+ description: $convertToMaybe($identityConversionFunction)(parameters.description, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.description.type, value)),
1506
+ disjoint: $convertToScalarSet($convertToIri)(parameters.disjoint, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.disjoint.type, value)),
1507
+ equals: $convertToScalarSet($convertToIri)(parameters.equals, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.equals.type, value)),
1508
+ flags: $convertToMaybe($identityConversionFunction)(parameters.flags, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.flags.type, value)),
1509
+ groups: $convertToScalarSet($convertToIdentifier)(parameters.groups, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.groups.type, value)),
1510
+ hasValues: $convertToScalarSet($identityConversionFunction)(parameters.hasValues, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.hasValues.type, value)),
1511
+ in_: $convertToMaybe($convertToList($identityConversionFunction))(parameters.in_, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.in_.type, value)),
1512
+ isDefinedBy: $convertToMaybe($convertToIdentifier)(parameters.isDefinedBy, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.isDefinedBy.type, value)),
1513
+ label: $convertToMaybe($identityConversionFunction)(parameters.label, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.label.type, value)),
1514
+ languageIn: $convertToMaybe($convertToList($identityConversionFunction))(parameters.languageIn, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.languageIn.type, value)),
1515
+ lessThan: $convertToScalarSet($convertToIri)(parameters.lessThan, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.lessThan.type, value)),
1516
+ lessThanOrEquals: $convertToScalarSet($convertToIri)(parameters.lessThanOrEquals, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(PropertyShape.schema.properties.lessThanOrEquals.type, value)),
1517
+ maxCount: $convertToMaybe($identityConversionFunction)(parameters.maxCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.maxCount.type, value)),
1518
+ maxExclusive: $convertToMaybe($convertToLiteral)(parameters.maxExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxExclusive.type, value)),
1519
+ maxInclusive: $convertToMaybe($convertToLiteral)(parameters.maxInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxInclusive.type, value)),
1520
+ maxLength: $convertToMaybe($identityConversionFunction)(parameters.maxLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.maxLength.type, value)),
1521
+ message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.message.type, value)),
1522
+ minCount: $convertToMaybe($identityConversionFunction)(parameters.minCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.minCount.type, value)),
1523
+ minExclusive: $convertToMaybe($convertToLiteral)(parameters.minExclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minExclusive.type, value)),
1524
+ minInclusive: $convertToMaybe($convertToLiteral)(parameters.minInclusive, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minInclusive.type, value)),
1525
+ minLength: $convertToMaybe($identityConversionFunction)(parameters.minLength, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.minLength.type, value)),
1526
+ name: $convertToMaybe($identityConversionFunction)(parameters.name, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.name.type, value)),
1527
+ node: $convertToMaybe($convertToIdentifier)(parameters.node, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.node.type, value)),
1528
+ nodeKind: $convertToMaybe(($convertToInIri))(parameters.nodeKind, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.nodeKind.type, value)),
1529
+ not: $convertToScalarSet($convertToIdentifier)(parameters.not, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.not.type, value)),
1530
+ or: $convertToMaybe($convertToList($convertToIdentifier))(parameters.or, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.or.type, value)),
1531
+ order: $convertToMaybe($identityConversionFunction)(parameters.order, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.order.type, value)),
1518
1532
  path: Either.of(parameters.path),
1519
- pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
1520
- qualifiedMaxCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMaxCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMaxCount.type, value)),
1521
- qualifiedMinCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMinCount).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMinCount.type, value)),
1522
- qualifiedValueShape: $convertToMaybe($convertToIdentifier)(parameters.qualifiedValueShape).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShape.type, value)),
1523
- qualifiedValueShapesDisjoint: $convertToMaybe($identityConversionFunction)(parameters.qualifiedValueShapesDisjoint).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShapesDisjoint.type, value)),
1524
- severity: $convertToMaybe(($convertToIri))(parameters.severity).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
1525
- targetClasses: $convertToScalarSet(($convertToIri), true)(parameters.targetClasses).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetClasses.type, value)),
1526
- targetNodes: $convertToScalarSet($identityConversionFunction, true)(parameters.targetNodes).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetNodes.type, value)),
1527
- targetObjectsOf: $convertToScalarSet(($convertToIri), true)(parameters.targetObjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetObjectsOf.type, value)),
1528
- targetSubjectsOf: $convertToScalarSet(($convertToIri), true)(parameters.targetSubjectsOf).chain((value) => $validateArray($identityValidationFunction, true)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
1529
- uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type, value)),
1530
- xone: $convertToMaybe($convertToList($convertToIdentifier, true))(parameters.xone).chain((value) => $validateMaybe($validateArray($identityValidationFunction, true))(NodeShape.schema.properties.xone.type, value)),
1533
+ pattern: $convertToMaybe($identityConversionFunction)(parameters.pattern, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.pattern.type, value)),
1534
+ qualifiedMaxCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMaxCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMaxCount.type, value)),
1535
+ qualifiedMinCount: $convertToMaybe($identityConversionFunction)(parameters.qualifiedMinCount, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedMinCount.type, value)),
1536
+ qualifiedValueShape: $convertToMaybe($convertToIdentifier)(parameters.qualifiedValueShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShape.type, value)),
1537
+ qualifiedValueShapesDisjoint: $convertToMaybe($identityConversionFunction)(parameters.qualifiedValueShapesDisjoint, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.qualifiedValueShapesDisjoint.type, value)),
1538
+ severity: $convertToMaybe(($convertToInIri))(parameters.severity, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(NodeShape.schema.properties.severity.type, value)),
1539
+ targetClasses: $convertToScalarSet($convertToIri)(parameters.targetClasses, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetClasses.type, value)),
1540
+ targetNodes: $convertToScalarSet($identityConversionFunction)(parameters.targetNodes, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetNodes.type, value)),
1541
+ targetObjectsOf: $convertToScalarSet($convertToIri)(parameters.targetObjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetObjectsOf.type, value)),
1542
+ targetSubjectsOf: $convertToScalarSet($convertToIri)(parameters.targetSubjectsOf, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(NodeShape.schema.properties.targetSubjectsOf.type, value)),
1543
+ uniqueLang: $convertToMaybe($identityConversionFunction)(parameters.uniqueLang, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(PropertyShape.schema.properties.uniqueLang.type, value)),
1544
+ xone: $convertToMaybe($convertToList($convertToIdentifier))(parameters.xone, parameters.$defaultNamespace).chain((value) => $validateMaybe($validateArray($identityValidationFunction))(NodeShape.schema.properties.xone.type, value)),
1531
1545
  })
1532
1546
  .map((properties) => ({ ...properties, $type: "PropertyShape" }))
1533
1547
  .map((object) => $monkeyPatchObject(object, { $toString: PropertyShape.$toString }));
@@ -1982,10 +1996,10 @@ export var ValidationReport;
1982
1996
  }).chain((properties) => ValidationReport.create(properties)));
1983
1997
  ValidationReport.$toString = (_validationReport) => `ValidationReport(${JSON.stringify(ValidationReport.toStringRecord(_validationReport))})`;
1984
1998
  ValidationReport.create = (parameters) => $sequenceRecord({
1985
- $identifier: $convertToIdentifierProperty(parameters.$identifier),
1999
+ $identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
1986
2000
  conforms: Either.of(parameters.conforms),
1987
- results: $convertToScalarSet($identityConversionFunction, true)(parameters.results).chain((value) => $validateArray($identityValidationFunction, true)(ValidationReport.schema.properties.results.type, value)),
1988
- shapesGraphWellFormed: $convertToMaybe($identityConversionFunction)(parameters.shapesGraphWellFormed).chain((value) => $validateMaybe($identityValidationFunction)(ValidationReport.schema.properties.shapesGraphWellFormed.type, value)),
2001
+ results: $convertToScalarSet($identityConversionFunction)(parameters.results, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationReport.schema.properties.results.type, value)),
2002
+ shapesGraphWellFormed: $convertToMaybe($identityConversionFunction)(parameters.shapesGraphWellFormed, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationReport.schema.properties.shapesGraphWellFormed.type, value)),
1989
2003
  })
1990
2004
  .map((properties) => ({
1991
2005
  ...properties,
@@ -2116,15 +2130,15 @@ export var ValidationResult;
2116
2130
  }).chain((properties) => ValidationResult.create(properties)));
2117
2131
  ValidationResult.$toString = (_validationResult) => `ValidationResult(${JSON.stringify(ValidationResult.toStringRecord(_validationResult))})`;
2118
2132
  ValidationResult.create = (parameters) => $sequenceRecord({
2119
- $identifier: $convertToIdentifierProperty(parameters.$identifier),
2120
- details: $convertToScalarSet($identityConversionFunction, true)(parameters.details).chain((value) => $validateArray($identityValidationFunction, true)(ValidationResult.schema.properties.details.type, value)),
2133
+ $identifier: $convertToIdentifierProperty(parameters.$identifier, parameters.$defaultNamespace),
2134
+ details: $convertToScalarSet($identityConversionFunction)(parameters.details, parameters.$defaultNamespace).chain((value) => $validateArray($identityValidationFunction)(ValidationResult.schema.properties.details.type, value)),
2121
2135
  focusNode: Either.of(parameters.focusNode),
2122
- message: $convertToMaybe($identityConversionFunction)(parameters.message).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
2123
- path: $convertToMaybe($identityConversionFunction)(parameters.path).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.path.type, value)),
2124
- severity: $convertToIri(parameters.severity),
2125
- sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent),
2126
- sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
2127
- value: $convertToMaybe($identityConversionFunction)(parameters.value).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
2136
+ message: $convertToMaybe($identityConversionFunction)(parameters.message, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.message.type, value)),
2137
+ path: $convertToMaybe($identityConversionFunction)(parameters.path, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.path.type, value)),
2138
+ severity: $convertToInIri(parameters.severity, parameters.$defaultNamespace),
2139
+ sourceConstraintComponent: $convertToIri(parameters.sourceConstraintComponent, parameters.$defaultNamespace),
2140
+ sourceShape: $convertToMaybe($convertToIdentifier)(parameters.sourceShape, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.sourceShape.type, value)),
2141
+ value: $convertToMaybe($identityConversionFunction)(parameters.value, parameters.$defaultNamespace).chain((value) => $validateMaybe($identityValidationFunction)(ValidationResult.schema.properties.value.type, value)),
2128
2142
  })
2129
2143
  .map((properties) => ({
2130
2144
  ...properties,
@@ -2233,10 +2247,10 @@ export var ValidationResult;
2233
2247
  export var Shape;
2234
2248
  (function (Shape) {
2235
2249
  Shape.$toString = (value) => {
2236
- if (NodeShape.isNodeShape(value)) {
2250
+ if (value["$type"] === "NodeShape") {
2237
2251
  return NodeShape.$toString(value);
2238
2252
  }
2239
- if (PropertyShape.isPropertyShape(value)) {
2253
+ if (value["$type"] === "PropertyShape") {
2240
2254
  return PropertyShape.$toString(value);
2241
2255
  }
2242
2256
  throw new Error("unable to serialize to string");
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  },
53
53
  "type": "module",
54
54
  "types": "./dist/index.d.ts",
55
- "version": "4.0.78"
55
+ "version": "4.0.79"
56
56
  }