shacl-wasm-node 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shacl-wasm-node",
3
3
  "description": "WebAssembly bindings for the shacl validation engine (CommonJS, for Node and require())",
4
- "version": "0.1.7",
4
+ "version": "0.1.9",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
package/shacl_wasm.d.ts CHANGED
@@ -58,9 +58,15 @@ export class Validator {
58
58
  /**
59
59
  * Validates a data graph in any supported format.
60
60
  *
61
- * `inference` is `"none"` (default) or `"rdfs"`; the latter validates
62
- * against the RDFS closure of the data, so a finding can depend on an
63
- * entailed `rdf:type` rather than only an asserted one.
61
+ * `inference` selects what is materialised before validating:
62
+ *
63
+ * - `"none"` (default)
64
+ * - `"rdfs"` — the RDFS closure, so a finding can depend on an entailed
65
+ * `rdf:type` rather than only an asserted one
66
+ * - `"rules"` — SHACL-AF rules (`sh:rule`), one pass, as the
67
+ * specification defines
68
+ * - `"rules-iterated"` — the same, repeated to a fixpoint, which a
69
+ * transitive rule needs and the specification does not define
64
70
  */
65
71
  validateText(text: string, format: string, base?: string | null, inference?: string | null): Report;
66
72
  /**
package/shacl_wasm.js CHANGED
@@ -178,9 +178,15 @@ class Validator {
178
178
  /**
179
179
  * Validates a data graph in any supported format.
180
180
  *
181
- * `inference` is `"none"` (default) or `"rdfs"`; the latter validates
182
- * against the RDFS closure of the data, so a finding can depend on an
183
- * entailed `rdf:type` rather than only an asserted one.
181
+ * `inference` selects what is materialised before validating:
182
+ *
183
+ * - `"none"` (default)
184
+ * - `"rdfs"` — the RDFS closure, so a finding can depend on an entailed
185
+ * `rdf:type` rather than only an asserted one
186
+ * - `"rules"` — SHACL-AF rules (`sh:rule`), one pass, as the
187
+ * specification defines
188
+ * - `"rules-iterated"` — the same, repeated to a fixpoint, which a
189
+ * transitive rule needs and the specification does not define
184
190
  * @param {string} text
185
191
  * @param {string} format
186
192
  * @param {string | null} [base]
Binary file