@shaclmate/compiler 4.0.35 → 4.0.36

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.
Files changed (47) hide show
  1. package/dist/generators/ts/AbstractNamedUnionType.js +33 -20
  2. package/dist/generators/ts/NamedObjectType.js +7 -2
  3. package/dist/generators/ts/NamedObjectUnionType.js +14 -5
  4. package/dist/generators/ts/TsFeature.d.ts +1 -1
  5. package/dist/generators/ts/TsFeature.js +25 -7
  6. package/dist/generators/ts/TsGenerator.d.ts +1 -1
  7. package/dist/generators/ts/TsGenerator.js +66 -8
  8. package/dist/generators/ts/_NamedObjectType/NamedObjectType_createFunctionDeclaration.js +1 -1
  9. package/dist/generators/ts/_NamedObjectType/NamedObjectType_equalsFunctionDeclaration.js +1 -1
  10. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterFunctionDeclaration.d.ts +2 -1
  11. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterFunctionDeclaration.js +6 -2
  12. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterTypeDeclaration.d.ts +2 -1
  13. package/dist/generators/ts/_NamedObjectType/NamedObjectType_filterTypeDeclaration.js +6 -2
  14. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlConstructTriplesFunctionDeclaration.js +1 -1
  15. package/dist/generators/ts/_NamedObjectType/NamedObjectType_focusSparqlWherePatternsFunctionDeclaration.js +1 -1
  16. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromJsonFunctionDeclaration.js +1 -1
  17. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceFunctionDeclaration.js +1 -1
  18. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfResourceValuesFunctionDeclaration.js +1 -1
  19. package/dist/generators/ts/_NamedObjectType/NamedObjectType_fromRdfTypeVariableStatement.js +1 -1
  20. package/dist/generators/ts/_NamedObjectType/NamedObjectType_graphqlTypeVariableStatement.js +1 -1
  21. package/dist/generators/ts/_NamedObjectType/NamedObjectType_hashFunctionDeclarations.js +1 -1
  22. package/dist/generators/ts/_NamedObjectType/NamedObjectType_isTypeFunctionDeclaration.d.ts +2 -1
  23. package/dist/generators/ts/_NamedObjectType/NamedObjectType_isTypeFunctionDeclaration.js +6 -2
  24. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonParseFunctionDeclaration.js +1 -1
  25. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonSchemaFunctionDeclaration.js +1 -1
  26. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonTypeAliasDeclaration.js +1 -1
  27. package/dist/generators/ts/_NamedObjectType/NamedObjectType_jsonUiSchemaFunctionDeclaration.js +1 -1
  28. package/dist/generators/ts/_NamedObjectType/NamedObjectType_schemaVariableStatement.d.ts +2 -1
  29. package/dist/generators/ts/_NamedObjectType/NamedObjectType_schemaVariableStatement.js +6 -2
  30. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.js +1 -1
  31. package/dist/generators/ts/_NamedObjectType/NamedObjectType_sparqlConstructQueryStringFunctionDeclaration.js +1 -1
  32. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toJsonFunctionDeclaration.js +1 -1
  33. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toRdfResourceFunctionDeclaration.js +1 -1
  34. package/dist/generators/ts/_NamedObjectType/NamedObjectType_toStringFunctionDeclarations.js +3 -0
  35. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlConstructTriplesFunctionDeclaration.js +1 -1
  36. package/dist/generators/ts/_NamedObjectType/NamedObjectType_valueSparqlWherePatternsFunctionDeclaration.js +1 -1
  37. package/dist/generators/ts/_NamedObjectType/ShaclProperty.js +4 -2
  38. package/dist/generators/ts/_NamedObjectType/identifierTypeDeclarations.js +3 -0
  39. package/dist/generators/ts/_snippets/snippets_PropertyPath.js +12 -6
  40. package/dist/generators/ts/graphqlSchemaVariableStatement.js +1 -1
  41. package/dist/generators/ts/objectSetDeclarations.js +7 -10
  42. package/dist/generators/ts/rdfjsDatasetObjectSetClassDeclaration.js +0 -6
  43. package/dist/generators/ts/sparqlObjectSetClassDeclaration.js +0 -6
  44. package/dist/input/generated.js +78 -78
  45. package/package.json +2 -2
  46. package/dist/generators/ts/unsupportedObjectSetMethodDeclarations.d.ts +0 -12
  47. package/dist/generators/ts/unsupportedObjectSetMethodDeclarations.js +0 -21
@@ -2,7 +2,7 @@ import { rdf } from "@tpluscode/rdf-ns-builders";
2
2
  import { Maybe } from "purify-ts";
3
3
  import { code, joinCode } from "../ts-poet-wrapper.js";
4
4
  export function NamedObjectType_toRdfResourceFunctionDeclaration() {
5
- if (!this.configuration.features.has("rdf")) {
5
+ if (!this.configuration.features.has("Object.toRdf")) {
6
6
  return Maybe.empty();
7
7
  }
8
8
  const statements = this.parentObjectTypes.map((parentObjectType) => code `${parentObjectType.name}._toRdfResource({ ...parameters, ignoreRdfType: true });`);
@@ -1,5 +1,8 @@
1
1
  import { code, joinCode } from "../ts-poet-wrapper.js";
2
2
  export function NamedObjectType_toStringFunctionDeclarations() {
3
+ if (!this.configuration.features.has("Object.toString")) {
4
+ return [];
5
+ }
3
6
  let propertiesToStringInitializers = [];
4
7
  if (this.parentObjectTypes.length > 0) {
5
8
  for (const parentObjectType of this.parentObjectTypes) {
@@ -1,7 +1,7 @@
1
1
  import { Maybe } from "purify-ts";
2
2
  import { code } from "../ts-poet-wrapper.js";
3
3
  export function NamedObjectType_valueSparqlConstructTriplesFunctionDeclaration() {
4
- if (!this.configuration.features.has("sparql")) {
4
+ if (!this.configuration.features.has("Object.SPARQL")) {
5
5
  return Maybe.empty();
6
6
  }
7
7
  return Maybe.of(code `\
@@ -1,7 +1,7 @@
1
1
  import { Maybe } from "purify-ts";
2
2
  import { code } from "../ts-poet-wrapper.js";
3
3
  export function NamedObjectType_valueSparqlWherePatternsFunctionDeclaration() {
4
- if (!this.configuration.features.has("sparql")) {
4
+ if (!this.configuration.features.has("Object.SPARQL")) {
5
5
  return Maybe.empty();
6
6
  }
7
7
  return Maybe.of(code `\
@@ -102,7 +102,9 @@ export class ShaclProperty extends AbstractProperty {
102
102
  ...super.schemaObject,
103
103
  // comment: this.comment.map(JSON.stringify).extract(),
104
104
  // description: this.description.map(JSON.stringify).extract(),
105
- path: this.configuration.features.has("rdf")
105
+ path: this.configuration.features.has("Object.fromRdf") ||
106
+ this.configuration.features.has("Object.toRdf") ||
107
+ this.configuration.features.has("Object.SPARQL")
106
108
  ? this.propertyPathToCode(this.path)
107
109
  : undefined,
108
110
  // label: this.label.map(JSON.stringify).extract(),
@@ -211,7 +213,7 @@ export class ShaclProperty extends AbstractProperty {
211
213
  default:
212
214
  return [];
213
215
  }
214
- const propertyPath = this.propertyPathToCode(this.path);
216
+ const propertyPath = code `${this.namedObjectType.name}.schema.properties.${this.name}.path`;
215
217
  return [
216
218
  code `${variables.resource}.add(${propertyPath}, ${this.type.toRdfResourceValuesExpression({
217
219
  variables: { ...variables, propertyPath },
@@ -1,5 +1,8 @@
1
1
  import { code } from "../ts-poet-wrapper.js";
2
2
  export function identifierTypeDeclarations() {
3
+ if (!this.configuration.features.has("Object.type")) {
4
+ return [];
5
+ }
3
6
  const ancestorObjectTypeWithSameIdentifierType = this.ancestorObjectTypes.find((ancestorObjectType) => ancestorObjectType.identifierType.name === this.identifierType.name);
4
7
  if (ancestorObjectTypeWithSameIdentifierType) {
5
8
  // This object type's identifier type has the same identifier type as an ancestor object type,
@@ -4,17 +4,19 @@ import { code, conditionalOutput, joinCode, } from "../ts-poet-wrapper.js";
4
4
  */
5
5
  export const snippets_PropertyPath = ({ configuration, imports, snippets, syntheticNamePrefix, }) => {
6
6
  const companionDeclarations = [];
7
- if (configuration.features.has("equals")) {
7
+ if (configuration.features.has("Object.equals")) {
8
8
  companionDeclarations.push(code `\
9
9
  export function equals(left: ${syntheticNamePrefix}PropertyPath, right: ${syntheticNamePrefix}PropertyPath): ${snippets.EqualsResult} {
10
10
  return ${snippets.EqualsResult}.fromBooleanEqualsResult(left, right, ${imports.RdfxResourcePropertyPath}.equals(left, right));
11
11
  }`);
12
12
  }
13
- companionDeclarations.push(code `export type Filter = object`, code `\
13
+ if (configuration.features.has("Object.filter")) {
14
+ companionDeclarations.push(code `export type Filter = object`, code `\
14
15
  export function filter(_filter: Filter, _value: ${syntheticNamePrefix}PropertyPath): boolean {
15
16
  return true;
16
17
  }`);
17
- if (configuration.features.has("rdf")) {
18
+ }
19
+ if (configuration.features.has("Object.fromRdf")) {
18
20
  companionDeclarations.push(code `\
19
21
  export const fromRdfResource: ${snippets.FromRdfResourceFunction}<${syntheticNamePrefix}PropertyPath> = ${imports.RdfxResourcePropertyPath}.fromResource;`, code `\
20
22
  export const fromRdfResourceValues: ${snippets.FromRdfResourceValuesFunction}<${syntheticNamePrefix}PropertyPath> = (values, options) =>
@@ -26,12 +28,16 @@ export const fromRdfResourceValues: ${snippets.FromRdfResourceValuesFunction}<${
26
28
  ),
27
29
  );`);
28
30
  }
29
- companionDeclarations.push(code `export const schema: Readonly<object> = {}`);
30
- if (configuration.features.has("rdf")) {
31
+ if (configuration.features.has("Object.schema")) {
32
+ companionDeclarations.push(code `export const schema: Readonly<object> = {}`);
33
+ }
34
+ if (configuration.features.has("Object.toRdf")) {
31
35
  companionDeclarations.push(code `\
32
36
  export const toRdfResource: ${snippets.ToRdfResourceFunction}<${syntheticNamePrefix}PropertyPath> = ${imports.RdfxResourcePropertyPath}.toResource;`);
33
37
  }
34
- companionDeclarations.push(code `export const ${syntheticNamePrefix}toString = ${imports.RdfxResourcePropertyPath}.toString;`);
38
+ if (configuration.features.has("Object.toString")) {
39
+ companionDeclarations.push(code `export const ${syntheticNamePrefix}toString = ${imports.RdfxResourcePropertyPath}.toString;`);
40
+ }
35
41
  return conditionalOutput(`${syntheticNamePrefix}PropertyPath`, code `\
36
42
  export type ${syntheticNamePrefix}PropertyPath = ${imports.RdfxResourcePropertyPath};
37
43
 
@@ -69,7 +69,7 @@ async (_source, _args, { objectSet }): Promise<number> => (await objectSet.${nam
69
69
  }, {})} })`;
70
70
  }
71
71
  export function graphqlSchemaVariableStatement({ namedObjectTypes, namedObjectUnionTypes, }) {
72
- if (!this.configuration.features.has("graphql")) {
72
+ if (!this.configuration.features.has("GraphQL")) {
73
73
  return Maybe.empty();
74
74
  }
75
75
  namedObjectTypes = namedObjectTypes.filter((namedObjectType) => !namedObjectType.synthetic);
@@ -3,23 +3,20 @@ import { rdfjsDatasetObjectSetClassDeclaration } from "./rdfjsDatasetObjectSetCl
3
3
  import { sparqlObjectSetClassDeclaration } from "./sparqlObjectSetClassDeclaration.js";
4
4
  export function objectSetDeclarations({ namedObjectUnionTypes, ...parameters }) {
5
5
  const namedObjectTypes = parameters.namedObjectTypes.filter((namedObjectType) => !namedObjectType.extern && !namedObjectType.synthetic);
6
- if (!this.configuration.features.has("rdf") &&
7
- !this.configuration.features.has("sparql")) {
8
- return [];
9
- }
10
- const declarations = [
11
- objectSetInterfaceDeclaration.call(this, {
6
+ const declarations = [];
7
+ if (this.configuration.features.has("ObjectSet")) {
8
+ declarations.push(objectSetInterfaceDeclaration.call(this, {
12
9
  namedObjectTypes: namedObjectTypes,
13
10
  namedObjectUnionTypes,
14
- }),
15
- ];
16
- if (this.configuration.features.has("rdf")) {
11
+ }));
12
+ }
13
+ if (this.configuration.features.has("RdfjsDatasetObjectSet")) {
17
14
  declarations.push(rdfjsDatasetObjectSetClassDeclaration.call(this, {
18
15
  namedObjectTypes: namedObjectTypes,
19
16
  namedObjectUnionTypes,
20
17
  }));
21
18
  }
22
- if (this.configuration.features.has("sparql")) {
19
+ if (this.configuration.features.has("SparqlObjectSet")) {
23
20
  declarations.push(sparqlObjectSetClassDeclaration.call(this, {
24
21
  namedObjectTypes: namedObjectTypes,
25
22
  namedObjectUnionTypes,
@@ -1,6 +1,5 @@
1
1
  import { objectSetMethodSignatures } from "./objectSetMethodSignatures.js";
2
2
  import { code, joinCode } from "./ts-poet-wrapper.js";
3
- import { unsupportedObjectSetMethodDeclarations } from "./unsupportedObjectSetMethodDeclarations.js";
4
3
  export function rdfjsDatasetObjectSetClassDeclaration({ namedObjectTypes, namedObjectUnionTypes, }) {
5
4
  const syntheticNamePrefix = this.configuration.syntheticNamePrefix;
6
5
  const namedObjectTypeType = code `\
@@ -40,11 +39,6 @@ export class ${syntheticNamePrefix}RdfjsDatasetObjectSet implements ${syntheticN
40
39
 
41
40
  ${joinCode([
42
41
  ...[...namedObjectTypes, ...namedObjectUnionTypes].flatMap((namedObjectType) => {
43
- if (!this.configuration.features.has("rdf")) {
44
- return Object.values(unsupportedObjectSetMethodDeclarations.call(this, {
45
- namedObjectType,
46
- }));
47
- }
48
42
  const methodSignatures = objectSetMethodSignatures.call(this, {
49
43
  namedObjectType,
50
44
  });
@@ -1,6 +1,5 @@
1
1
  import { objectSetMethodSignatures } from "./objectSetMethodSignatures.js";
2
2
  import { code, joinCode } from "./ts-poet-wrapper.js";
3
- import { unsupportedObjectSetMethodDeclarations } from "./unsupportedObjectSetMethodDeclarations.js";
4
3
  export function sparqlObjectSetClassDeclaration({ namedObjectTypes, namedObjectUnionTypes, }) {
5
4
  const syntheticNamePrefix = this.configuration.syntheticNamePrefix;
6
5
  const parameters = {
@@ -32,11 +31,6 @@ export class ${syntheticNamePrefix}SparqlObjectSet implements ${syntheticNamePre
32
31
  }
33
32
 
34
33
  ${joinCode([...namedObjectTypes, ...namedObjectUnionTypes].flatMap((namedObjectType) => {
35
- if (!this.configuration.features.has("sparql")) {
36
- return Object.values(unsupportedObjectSetMethodDeclarations.call(this, {
37
- namedObjectType,
38
- }));
39
- }
40
34
  const methodSignatures = objectSetMethodSignatures.call(this, {
41
35
  namedObjectType,
42
36
  queryT: `${syntheticNamePrefix}SparqlObjectSet.Query`,
@@ -1560,7 +1560,7 @@ export var PropertyShape;
1560
1560
  if (!parameters.ignoreRdfType) {
1561
1561
  parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyShape"), parameters.graph);
1562
1562
  }
1563
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#and"), parameters.object.and.toList().flatMap((value) => [
1563
+ parameters.resource.add(PropertyShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
1564
1564
  value.length > 0
1565
1565
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
1566
1566
  if (itemIndex === 0) {
@@ -1582,29 +1582,29 @@ export var PropertyShape;
1582
1582
  }).listResource.identifier
1583
1583
  : $RdfVocabularies.rdf.nil,
1584
1584
  ]), parameters.graph);
1585
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#class"), parameters.object.classes.flatMap((item) => [item]), parameters.graph);
1586
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"), parameters.object.comment
1585
+ parameters.resource.add(PropertyShape.schema.properties.classes.path, parameters.object.classes.flatMap((item) => [item]), parameters.graph);
1586
+ parameters.resource.add(PropertyShape.schema.properties.comment.path, parameters.object.comment
1587
1587
  .toList()
1588
1588
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1589
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"), parameters.object.datatype.toList(), parameters.graph);
1590
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"), parameters.object.deactivated
1589
+ parameters.resource.add(PropertyShape.schema.properties.datatype.path, parameters.object.datatype.toList(), parameters.graph);
1590
+ parameters.resource.add(PropertyShape.schema.properties.deactivated.path, parameters.object.deactivated
1591
1591
  .toList()
1592
1592
  .flatMap((value) => [
1593
1593
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
1594
1594
  ]), parameters.graph);
1595
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#defaultValue"), parameters.object.defaultValue.toList(), parameters.graph);
1596
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#description"), parameters.object.description
1595
+ parameters.resource.add(PropertyShape.schema.properties.defaultValue.path, parameters.object.defaultValue.toList(), parameters.graph);
1596
+ parameters.resource.add(PropertyShape.schema.properties.description.path, parameters.object.description
1597
1597
  .toList()
1598
1598
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1599
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#display"), $strictEquals(parameters.object.display, false).isLeft()
1599
+ parameters.resource.add(PropertyShape.schema.properties.display.path, $strictEquals(parameters.object.display, false).isLeft()
1600
1600
  ? [
1601
1601
  $literalFactory.boolean(parameters.object.display, $RdfVocabularies.xsd.boolean),
1602
1602
  ]
1603
1603
  : [], parameters.graph);
1604
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"), parameters.object.flags.flatMap((item) => [$literalFactory.string(item)]), parameters.graph);
1605
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#group"), parameters.object.groups.flatMap((item) => [item]), parameters.graph);
1606
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"), parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
1607
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#in"), parameters.object.in_.toList().flatMap((value) => [
1604
+ parameters.resource.add(PropertyShape.schema.properties.flags.path, parameters.object.flags.flatMap((item) => [$literalFactory.string(item)]), parameters.graph);
1605
+ parameters.resource.add(PropertyShape.schema.properties.groups.path, parameters.object.groups.flatMap((item) => [item]), parameters.graph);
1606
+ parameters.resource.add(PropertyShape.schema.properties.hasValues.path, parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
1607
+ parameters.resource.add(PropertyShape.schema.properties.in_.path, parameters.object.in_.toList().flatMap((value) => [
1608
1608
  value.length > 0
1609
1609
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
1610
1610
  if (itemIndex === 0) {
@@ -1626,11 +1626,11 @@ export var PropertyShape;
1626
1626
  }).listResource.identifier
1627
1627
  : $RdfVocabularies.rdf.nil,
1628
1628
  ]), parameters.graph);
1629
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"), parameters.object.isDefinedBy.toList(), parameters.graph);
1630
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), parameters.object.label
1629
+ parameters.resource.add(PropertyShape.schema.properties.isDefinedBy.path, parameters.object.isDefinedBy.toList(), parameters.graph);
1630
+ parameters.resource.add(PropertyShape.schema.properties.label.path, parameters.object.label
1631
1631
  .toList()
1632
1632
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1633
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"), parameters.object.languageIn.toList().flatMap((value) => [
1633
+ parameters.resource.add(PropertyShape.schema.properties.languageIn.path, parameters.object.languageIn.toList().flatMap((value) => [
1634
1634
  value.length > 0
1635
1635
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
1636
1636
  if (itemIndex === 0) {
@@ -1652,42 +1652,42 @@ export var PropertyShape;
1652
1652
  }).listResource.identifier
1653
1653
  : $RdfVocabularies.rdf.nil,
1654
1654
  ]), parameters.graph);
1655
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"), parameters.object.maxCount
1655
+ parameters.resource.add(PropertyShape.schema.properties.maxCount.path, parameters.object.maxCount
1656
1656
  .toList()
1657
1657
  .flatMap((value) => [
1658
1658
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
1659
1659
  ]), parameters.graph);
1660
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"), parameters.object.maxExclusive.toList(), parameters.graph);
1661
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"), parameters.object.maxInclusive.toList(), parameters.graph);
1662
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"), parameters.object.maxLength
1660
+ parameters.resource.add(PropertyShape.schema.properties.maxExclusive.path, parameters.object.maxExclusive.toList(), parameters.graph);
1661
+ parameters.resource.add(PropertyShape.schema.properties.maxInclusive.path, parameters.object.maxInclusive.toList(), parameters.graph);
1662
+ parameters.resource.add(PropertyShape.schema.properties.maxLength.path, parameters.object.maxLength
1663
1663
  .toList()
1664
1664
  .flatMap((value) => [
1665
1665
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
1666
1666
  ]), parameters.graph);
1667
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"), parameters.object.minCount
1667
+ parameters.resource.add(PropertyShape.schema.properties.minCount.path, parameters.object.minCount
1668
1668
  .toList()
1669
1669
  .flatMap((value) => [
1670
1670
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
1671
1671
  ]), parameters.graph);
1672
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"), parameters.object.minExclusive.toList(), parameters.graph);
1673
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"), parameters.object.minInclusive.toList(), parameters.graph);
1674
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"), parameters.object.minLength
1672
+ parameters.resource.add(PropertyShape.schema.properties.minExclusive.path, parameters.object.minExclusive.toList(), parameters.graph);
1673
+ parameters.resource.add(PropertyShape.schema.properties.minInclusive.path, parameters.object.minInclusive.toList(), parameters.graph);
1674
+ parameters.resource.add(PropertyShape.schema.properties.minLength.path, parameters.object.minLength
1675
1675
  .toList()
1676
1676
  .flatMap((value) => [
1677
1677
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
1678
1678
  ]), parameters.graph);
1679
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"), parameters.object.mutable
1679
+ parameters.resource.add(PropertyShape.schema.properties.mutable.path, parameters.object.mutable
1680
1680
  .toList()
1681
1681
  .flatMap((value) => [
1682
1682
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
1683
1683
  ]), parameters.graph);
1684
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#name"), parameters.object.name
1684
+ parameters.resource.add(PropertyShape.schema.properties.name.path, parameters.object.name
1685
1685
  .toList()
1686
1686
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1687
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#node"), parameters.object.node.toList(), parameters.graph);
1688
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"), parameters.object.nodeKind.toList(), parameters.graph);
1689
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#not"), parameters.object.not.flatMap((item) => [item]), parameters.graph);
1690
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#or"), parameters.object.or.toList().flatMap((value) => [
1687
+ parameters.resource.add(PropertyShape.schema.properties.node.path, parameters.object.node.toList(), parameters.graph);
1688
+ parameters.resource.add(PropertyShape.schema.properties.nodeKind.path, parameters.object.nodeKind.toList(), parameters.graph);
1689
+ parameters.resource.add(PropertyShape.schema.properties.not.path, parameters.object.not.flatMap((item) => [item]), parameters.graph);
1690
+ parameters.resource.add(PropertyShape.schema.properties.or.path, parameters.object.or.toList().flatMap((value) => [
1691
1691
  value.length > 0
1692
1692
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
1693
1693
  if (itemIndex === 0) {
@@ -1709,30 +1709,30 @@ export var PropertyShape;
1709
1709
  }).listResource.identifier
1710
1710
  : $RdfVocabularies.rdf.nil,
1711
1711
  ]), parameters.graph);
1712
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#order"), parameters.object.order
1712
+ parameters.resource.add(PropertyShape.schema.properties.order.path, parameters.object.order
1713
1713
  .toList()
1714
1714
  .flatMap((value) => [
1715
1715
  $literalFactory.number(value, $RdfVocabularies.xsd.double),
1716
1716
  ]), parameters.graph);
1717
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#path"), [
1717
+ parameters.resource.add(PropertyShape.schema.properties.path.path, [
1718
1718
  $PropertyPath.toRdfResource(parameters.object.path, {
1719
1719
  graph: parameters.graph,
1720
1720
  resourceSet: parameters.resourceSet,
1721
1721
  }).identifier,
1722
1722
  ], parameters.graph);
1723
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"), parameters.object.patterns.flatMap((item) => [
1723
+ parameters.resource.add(PropertyShape.schema.properties.patterns.path, parameters.object.patterns.flatMap((item) => [
1724
1724
  $literalFactory.string(item),
1725
1725
  ]), parameters.graph);
1726
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#resolve"), parameters.object.resolve.toList(), parameters.graph);
1727
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"), parameters.object.shaclmateName
1726
+ parameters.resource.add(PropertyShape.schema.properties.resolve.path, parameters.object.resolve.toList(), parameters.graph);
1727
+ parameters.resource.add(PropertyShape.schema.properties.shaclmateName.path, parameters.object.shaclmateName
1728
1728
  .toList()
1729
1729
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1730
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#uniqueLang"), parameters.object.uniqueLang
1730
+ parameters.resource.add(PropertyShape.schema.properties.uniqueLang.path, parameters.object.uniqueLang
1731
1731
  .toList()
1732
1732
  .flatMap((value) => [
1733
1733
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
1734
1734
  ]), parameters.graph);
1735
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"), parameters.object.xone.toList().flatMap((value) => [
1735
+ parameters.resource.add(PropertyShape.schema.properties.xone.path, parameters.object.xone.toList().flatMap((value) => [
1736
1736
  value.length > 0
1737
1737
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
1738
1738
  if (itemIndex === 0) {
@@ -1924,10 +1924,10 @@ export var PropertyGroup;
1924
1924
  if (!parameters.ignoreRdfType) {
1925
1925
  parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#PropertyGroup"), parameters.graph);
1926
1926
  }
1927
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"), parameters.object.comment
1927
+ parameters.resource.add(PropertyShape.schema.properties.comment.path, parameters.object.comment
1928
1928
  .toList()
1929
1929
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1930
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), parameters.object.label
1930
+ parameters.resource.add(PropertyShape.schema.properties.label.path, parameters.object.label
1931
1931
  .toList()
1932
1932
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
1933
1933
  return parameters.resource;
@@ -2095,10 +2095,10 @@ export var Ontology;
2095
2095
  if (!parameters.ignoreRdfType) {
2096
2096
  parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/2002/07/owl#Ontology"), parameters.graph);
2097
2097
  }
2098
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"), parameters.object.comment
2098
+ parameters.resource.add(PropertyShape.schema.properties.comment.path, parameters.object.comment
2099
2099
  .toList()
2100
2100
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
2101
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), parameters.object.label
2101
+ parameters.resource.add(PropertyShape.schema.properties.label.path, parameters.object.label
2102
2102
  .toList()
2103
2103
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
2104
2104
  return parameters.resource;
@@ -3336,7 +3336,7 @@ export var NodeShape;
3336
3336
  if (!parameters.ignoreRdfType) {
3337
3337
  parameters.resource.add($RdfVocabularies.rdf.type, dataFactory.namedNode("http://www.w3.org/ns/shacl#NodeShape"), parameters.graph);
3338
3338
  }
3339
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#and"), parameters.object.and.toList().flatMap((value) => [
3339
+ parameters.resource.add(PropertyShape.schema.properties.and.path, parameters.object.and.toList().flatMap((value) => [
3340
3340
  value.length > 0
3341
3341
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3342
3342
  if (itemIndex === 0) {
@@ -3358,33 +3358,33 @@ export var NodeShape;
3358
3358
  }).listResource.identifier
3359
3359
  : $RdfVocabularies.rdf.nil,
3360
3360
  ]), parameters.graph);
3361
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#class"), parameters.object.classes.flatMap((item) => [item]), parameters.graph);
3362
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#closed"), parameters.object.closed
3361
+ parameters.resource.add(PropertyShape.schema.properties.classes.path, parameters.object.classes.flatMap((item) => [item]), parameters.graph);
3362
+ parameters.resource.add(NodeShape.schema.properties.closed.path, parameters.object.closed
3363
3363
  .toList()
3364
3364
  .flatMap((value) => [
3365
3365
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
3366
3366
  ]), parameters.graph);
3367
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"), parameters.object.comment
3367
+ parameters.resource.add(PropertyShape.schema.properties.comment.path, parameters.object.comment
3368
3368
  .toList()
3369
3369
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
3370
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#datatype"), parameters.object.datatype.toList(), parameters.graph);
3371
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#deactivated"), parameters.object.deactivated
3370
+ parameters.resource.add(PropertyShape.schema.properties.datatype.path, parameters.object.datatype.toList(), parameters.graph);
3371
+ parameters.resource.add(PropertyShape.schema.properties.deactivated.path, parameters.object.deactivated
3372
3372
  .toList()
3373
3373
  .flatMap((value) => [
3374
3374
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
3375
3375
  ]), parameters.graph);
3376
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#discriminantValue"), parameters.object.discriminantValue
3376
+ parameters.resource.add(NodeShape.schema.properties.discriminantValue.path, parameters.object.discriminantValue
3377
3377
  .toList()
3378
3378
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
3379
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#extern"), parameters.object.extern
3379
+ parameters.resource.add(NodeShape.schema.properties.extern.path, parameters.object.extern
3380
3380
  .toList()
3381
3381
  .flatMap((value) => [
3382
3382
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
3383
3383
  ]), parameters.graph);
3384
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#flags"), parameters.object.flags.flatMap((item) => [$literalFactory.string(item)]), parameters.graph);
3385
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#fromRdfType"), parameters.object.fromRdfType.toList(), parameters.graph);
3386
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#hasValue"), parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
3387
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#ignoredProperties"), parameters.object.ignoredProperties.toList().flatMap((value) => [
3384
+ parameters.resource.add(PropertyShape.schema.properties.flags.path, parameters.object.flags.flatMap((item) => [$literalFactory.string(item)]), parameters.graph);
3385
+ parameters.resource.add(NodeShape.schema.properties.fromRdfType.path, parameters.object.fromRdfType.toList(), parameters.graph);
3386
+ parameters.resource.add(PropertyShape.schema.properties.hasValues.path, parameters.object.hasValues.flatMap((item) => [item]), parameters.graph);
3387
+ parameters.resource.add(NodeShape.schema.properties.ignoredProperties.path, parameters.object.ignoredProperties.toList().flatMap((value) => [
3388
3388
  value.length > 0
3389
3389
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3390
3390
  if (itemIndex === 0) {
@@ -3406,7 +3406,7 @@ export var NodeShape;
3406
3406
  }).listResource.identifier
3407
3407
  : $RdfVocabularies.rdf.nil,
3408
3408
  ]), parameters.graph);
3409
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#in"), parameters.object.in_.toList().flatMap((value) => [
3409
+ parameters.resource.add(PropertyShape.schema.properties.in_.path, parameters.object.in_.toList().flatMap((value) => [
3410
3410
  value.length > 0
3411
3411
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3412
3412
  if (itemIndex === 0) {
@@ -3428,11 +3428,11 @@ export var NodeShape;
3428
3428
  }).listResource.identifier
3429
3429
  : $RdfVocabularies.rdf.nil,
3430
3430
  ]), parameters.graph);
3431
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"), parameters.object.isDefinedBy.toList(), parameters.graph);
3432
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/2000/01/rdf-schema#label"), parameters.object.label
3431
+ parameters.resource.add(PropertyShape.schema.properties.isDefinedBy.path, parameters.object.isDefinedBy.toList(), parameters.graph);
3432
+ parameters.resource.add(PropertyShape.schema.properties.label.path, parameters.object.label
3433
3433
  .toList()
3434
3434
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
3435
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#languageIn"), parameters.object.languageIn.toList().flatMap((value) => [
3435
+ parameters.resource.add(PropertyShape.schema.properties.languageIn.path, parameters.object.languageIn.toList().flatMap((value) => [
3436
3436
  value.length > 0
3437
3437
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3438
3438
  if (itemIndex === 0) {
@@ -3454,39 +3454,39 @@ export var NodeShape;
3454
3454
  }).listResource.identifier
3455
3455
  : $RdfVocabularies.rdf.nil,
3456
3456
  ]), parameters.graph);
3457
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxCount"), parameters.object.maxCount
3457
+ parameters.resource.add(PropertyShape.schema.properties.maxCount.path, parameters.object.maxCount
3458
3458
  .toList()
3459
3459
  .flatMap((value) => [
3460
3460
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
3461
3461
  ]), parameters.graph);
3462
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxExclusive"), parameters.object.maxExclusive.toList(), parameters.graph);
3463
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxInclusive"), parameters.object.maxInclusive.toList(), parameters.graph);
3464
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#maxLength"), parameters.object.maxLength
3462
+ parameters.resource.add(PropertyShape.schema.properties.maxExclusive.path, parameters.object.maxExclusive.toList(), parameters.graph);
3463
+ parameters.resource.add(PropertyShape.schema.properties.maxInclusive.path, parameters.object.maxInclusive.toList(), parameters.graph);
3464
+ parameters.resource.add(PropertyShape.schema.properties.maxLength.path, parameters.object.maxLength
3465
3465
  .toList()
3466
3466
  .flatMap((value) => [
3467
3467
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
3468
3468
  ]), parameters.graph);
3469
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minCount"), parameters.object.minCount
3469
+ parameters.resource.add(PropertyShape.schema.properties.minCount.path, parameters.object.minCount
3470
3470
  .toList()
3471
3471
  .flatMap((value) => [
3472
3472
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
3473
3473
  ]), parameters.graph);
3474
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minExclusive"), parameters.object.minExclusive.toList(), parameters.graph);
3475
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minInclusive"), parameters.object.minInclusive.toList(), parameters.graph);
3476
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#minLength"), parameters.object.minLength
3474
+ parameters.resource.add(PropertyShape.schema.properties.minExclusive.path, parameters.object.minExclusive.toList(), parameters.graph);
3475
+ parameters.resource.add(PropertyShape.schema.properties.minInclusive.path, parameters.object.minInclusive.toList(), parameters.graph);
3476
+ parameters.resource.add(PropertyShape.schema.properties.minLength.path, parameters.object.minLength
3477
3477
  .toList()
3478
3478
  .flatMap((value) => [
3479
3479
  $literalFactory.bigint(value, $RdfVocabularies.xsd.integer),
3480
3480
  ]), parameters.graph);
3481
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#mutable"), parameters.object.mutable
3481
+ parameters.resource.add(PropertyShape.schema.properties.mutable.path, parameters.object.mutable
3482
3482
  .toList()
3483
3483
  .flatMap((value) => [
3484
3484
  $literalFactory.boolean(value, $RdfVocabularies.xsd.boolean),
3485
3485
  ]), parameters.graph);
3486
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#node"), parameters.object.node.toList(), parameters.graph);
3487
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#nodeKind"), parameters.object.nodeKind.toList(), parameters.graph);
3488
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#not"), parameters.object.not.flatMap((item) => [item]), parameters.graph);
3489
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#or"), parameters.object.or.toList().flatMap((value) => [
3486
+ parameters.resource.add(PropertyShape.schema.properties.node.path, parameters.object.node.toList(), parameters.graph);
3487
+ parameters.resource.add(PropertyShape.schema.properties.nodeKind.path, parameters.object.nodeKind.toList(), parameters.graph);
3488
+ parameters.resource.add(PropertyShape.schema.properties.not.path, parameters.object.not.flatMap((item) => [item]), parameters.graph);
3489
+ parameters.resource.add(PropertyShape.schema.properties.or.path, parameters.object.or.toList().flatMap((value) => [
3490
3490
  value.length > 0
3491
3491
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3492
3492
  if (itemIndex === 0) {
@@ -3508,21 +3508,21 @@ export var NodeShape;
3508
3508
  }).listResource.identifier
3509
3509
  : $RdfVocabularies.rdf.nil,
3510
3510
  ]), parameters.graph);
3511
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#pattern"), parameters.object.patterns.flatMap((item) => [
3511
+ parameters.resource.add(PropertyShape.schema.properties.patterns.path, parameters.object.patterns.flatMap((item) => [
3512
3512
  $literalFactory.string(item),
3513
3513
  ]), parameters.graph);
3514
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#property"), parameters.object.properties.flatMap((item) => [item]), parameters.graph);
3515
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#rdfType"), parameters.object.rdfType.toList(), parameters.graph);
3516
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#name"), parameters.object.shaclmateName
3514
+ parameters.resource.add(NodeShape.schema.properties.properties.path, parameters.object.properties.flatMap((item) => [item]), parameters.graph);
3515
+ parameters.resource.add(NodeShape.schema.properties.rdfType.path, parameters.object.rdfType.toList(), parameters.graph);
3516
+ parameters.resource.add(PropertyShape.schema.properties.shaclmateName.path, parameters.object.shaclmateName
3517
3517
  .toList()
3518
3518
  .flatMap((value) => [$literalFactory.string(value)]), parameters.graph);
3519
- parameters.resource.add($RdfVocabularies.rdfs.subClassOf, parameters.object.subClassOf.flatMap((item) => [item]), parameters.graph);
3520
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#toRdfType"), parameters.object.toRdfTypes.flatMap((item) => [item]), parameters.graph);
3521
- parameters.resource.add(dataFactory.namedNode("http://purl.org/shaclmate/ontology#tsImport"), parameters.object.tsImports.flatMap((item) => [
3519
+ parameters.resource.add(NodeShape.schema.properties.subClassOf.path, parameters.object.subClassOf.flatMap((item) => [item]), parameters.graph);
3520
+ parameters.resource.add(NodeShape.schema.properties.toRdfTypes.path, parameters.object.toRdfTypes.flatMap((item) => [item]), parameters.graph);
3521
+ parameters.resource.add(NodeShape.schema.properties.tsImports.path, parameters.object.tsImports.flatMap((item) => [
3522
3522
  $literalFactory.string(item),
3523
3523
  ]), parameters.graph);
3524
- parameters.resource.add($RdfVocabularies.rdf.type, parameters.object.types.flatMap((item) => [item]), parameters.graph);
3525
- parameters.resource.add(dataFactory.namedNode("http://www.w3.org/ns/shacl#xone"), parameters.object.xone.toList().flatMap((value) => [
3524
+ parameters.resource.add(NodeShape.schema.properties.types.path, parameters.object.types.flatMap((item) => [item]), parameters.graph);
3525
+ parameters.resource.add(PropertyShape.schema.properties.xone.path, parameters.object.xone.toList().flatMap((value) => [
3526
3526
  value.length > 0
3527
3527
  ? value.reduce(({ currentSubListResource, listResource }, item, itemIndex, list) => {
3528
3528
  if (itemIndex === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@shaclmate/shacl-ast": "4.0.35",
3
+ "@shaclmate/shacl-ast": "4.0.36",
4
4
  "@rdfjs/dataset": "~2.0.2",
5
5
  "@rdfjs/prefix-map": "~0.1.2",
6
6
  "@rdfjs/term-map": "~2.0.2",
@@ -68,5 +68,5 @@
68
68
  },
69
69
  "type": "module",
70
70
  "types": "./dist/index.d.ts",
71
- "version": "4.0.35"
71
+ "version": "4.0.36"
72
72
  }
@@ -1,12 +0,0 @@
1
- import type { NamedObjectType } from "./NamedObjectType.js";
2
- import type { TsGenerator } from "./TsGenerator.js";
3
- import { type Code } from "./ts-poet-wrapper.js";
4
- export declare function unsupportedObjectSetMethodDeclarations(this: TsGenerator, { namedObjectType, }: {
5
- namedObjectType: {
6
- readonly filterType: Code;
7
- readonly identifierTypeAlias: Code;
8
- readonly objectSetMethodNames: NamedObjectType.ObjectSetMethodNames;
9
- readonly name: string;
10
- };
11
- }): Readonly<Record<keyof NamedObjectType.ObjectSetMethodNames, Code>>;
12
- //# sourceMappingURL=unsupportedObjectSetMethodDeclarations.d.ts.map
@@ -1,21 +0,0 @@
1
- import { objectSetMethodSignatures } from "./objectSetMethodSignatures.js";
2
- import { code } from "./ts-poet-wrapper.js";
3
- function unsupportedObjectSetMethodDeclaration({ name, parameters, returnType, }) {
4
- return code `\
5
- async ${name}(${parameters}): ${returnType} {
6
- return ${this.reusables.imports.Left}(new Error("${name}: not supported")) satisfies Awaited<${returnType}>;
7
- }`;
8
- }
9
- export function unsupportedObjectSetMethodDeclarations({ namedObjectType, }) {
10
- const methodSignatures = objectSetMethodSignatures.call(this, {
11
- namedObjectType,
12
- parameterNamePrefix: "_",
13
- });
14
- return {
15
- object: unsupportedObjectSetMethodDeclaration.call(this, methodSignatures.object),
16
- objectCount: unsupportedObjectSetMethodDeclaration.call(this, methodSignatures.objectCount),
17
- objectIdentifiers: unsupportedObjectSetMethodDeclaration.call(this, methodSignatures.objectIdentifiers),
18
- objects: unsupportedObjectSetMethodDeclaration.call(this, methodSignatures.objects),
19
- };
20
- }
21
- //# sourceMappingURL=unsupportedObjectSetMethodDeclarations.js.map