@shaclmate/shacl-ast 4.0.51 → 4.0.53

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.
@@ -276,7 +276,7 @@ function $termFromRdfResourceValues(values, options) {
276
276
  if (schema.in &&
277
277
  schema.in.length > 0 &&
278
278
  !schema.in.some((in_) => in_.equals(term))) {
279
- return Left(new Resource.MistypedTermValueError({
279
+ return Left(new Resource.MistypedValueError({
280
280
  actualValue: term,
281
281
  expectedValueType: "Term in",
282
282
  focusResource,
@@ -284,7 +284,7 @@ function $termFromRdfResourceValues(values, options) {
284
284
  }));
285
285
  }
286
286
  if (!schema.types.some((type) => term.termType === type)) {
287
- return Left(new Resource.MistypedTermValueError({
287
+ return Left(new Resource.MistypedValueError({
288
288
  actualValue: term,
289
289
  expectedValueType: "Term types",
290
290
  focusResource,
@@ -302,7 +302,7 @@ const $termLikeFromRdfResourceValues = (values, { preferredLanguages, schema: {
302
302
  if (languageIn && languageIn.length > 0) {
303
303
  chain = chain.chain((values) => values.chainMap((value) => value.toLiteral().chain((literal) => languageIn.includes(literal.language)
304
304
  ? Right(value)
305
- : Left(new Resource.MistypedTermValueError({
305
+ : Left(new Resource.MistypedValueError({
306
306
  actualValue: literal,
307
307
  expectedValueType: "Literal",
308
308
  focusResource: value.focusResource,
@@ -229,6 +229,7 @@ shaclmate:PropertyShape-uniqueLang
229
229
  sh:path sh:uniqueLang .
230
230
 
231
231
  shaclmate:Severity
232
+ shaclmate:name "Severity" ;
232
233
  a sh:NodeShape ;
233
234
  sh:in (sh:Info
234
235
  sh:Warning
@@ -236,6 +237,7 @@ shaclmate:Severity
236
237
  ) .
237
238
 
238
239
  shaclmate:Shape
240
+ shaclmate:name "Shape" ;
239
241
  a sh:NodeShape ;
240
242
  sh:xone (shaclmate:NodeShape
241
243
  shaclmate:PropertyShape
package/package.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "@rdfjs/term-map": "~2.0.2",
5
5
  "@rdfjs/term-set": "~2.0.3",
6
6
  "@rdfjs/types": "~2.0.1",
7
- "@rdfx/data-factory": "0.0.19",
8
- "@rdfx/resource": "0.0.19",
9
- "@rdfx/string": "0.0.19",
7
+ "@rdfx/data-factory": "0.0.24",
8
+ "@rdfx/resource": "0.0.24",
9
+ "@rdfx/string": "0.0.24",
10
10
  "@tpluscode/rdf-ns-builders": "~4.3.0",
11
11
  "@types/rdfjs__dataset": "~2.0.7",
12
12
  "@types/rdfjs__term-map": "~2.0.10",
@@ -15,7 +15,7 @@
15
15
  "typescript-memoize": "~1.1.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@rdfx/literal": "0.0.19",
18
+ "@rdfx/literal": "0.0.24",
19
19
  "@types/n3": "~1.26.0",
20
20
  "n3": "~1.26.0",
21
21
  "ts-invariant": "~0.10.3"
@@ -60,5 +60,5 @@
60
60
  },
61
61
  "type": "module",
62
62
  "types": "./dist/index.d.ts",
63
- "version": "4.0.51"
63
+ "version": "4.0.53"
64
64
  }