@ulb-darmstadt/shacl-form 1.4.9 → 1.5.1

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/README.md CHANGED
@@ -69,6 +69,7 @@ data‑ignore‑owl‑imports | By default, `owl:imports` URLs ar
69
69
  data-view | When set, turns the web component into a viewer that displays the given data graph without editing functionality
70
70
  data-collapse | When set, `sh:group`s and properties with `sh:node` and `sh:maxCount` != 1 are displayed in a collapsible accordion-like widget to reduce visual complexity of the form. The collapsible element is initially shown closed, except when this attribute's value is `"open"`
71
71
  data-submit-button | [Ignored when `data-view` attribute is set] Whether to add a submit button to the form. The value of this attribute is used as the button label. `submit` events get emitted only when the form data validates
72
+ data-generate-node-shape-reference | When generating the RDF data graph, <shacl-form> can create a triple that references the root `sh:NodeShape` of the data. Supported values of this attribute are `rdf:type` or `dcterms:conformsTo`. Default is empty, so that no such triple is created
72
73
 
73
74
  ### Element functions
74
75
 
@@ -111,7 +112,7 @@ Class hierarchies can be built using `rdfs:subClassOf` or `skos:broader`.
111
112
 
112
113
  ### Validation
113
114
 
114
- In edit mode, `<shacl-form>` validates the constructed data graph using the library [shacl-engine](https://github.com/rdf-ext/shacl-engine) and displays validation results as icons next to the respective form fields.
115
+ In edit mode, `<shacl-form>` validates the constructed data graph using the library [rdf-validate-shacl](https://github.com/zazuko/rdf-validate-shacl) and displays validation results as icons next to the respective form fields.
115
116
 
116
117
  ### Data graph binding
117
118
 
package/dist/config.d.ts CHANGED
@@ -21,6 +21,7 @@ export declare class ElementAttributes {
21
21
  ignoreOwlImports: string | null;
22
22
  collapse: string | null;
23
23
  submitButton: string | null;
24
+ generateNodeShapeReference: string | null;
24
25
  }
25
26
  export declare class Config {
26
27
  attributes: ElementAttributes;
@@ -6,9 +6,11 @@ export declare const PREFIX_RDFS = "http://www.w3.org/2000/01/rdf-schema#";
6
6
  export declare const PREFIX_SKOS = "http://www.w3.org/2004/02/skos/core#";
7
7
  export declare const PREFIX_OWL = "http://www.w3.org/2002/07/owl#";
8
8
  export declare const PREFIX_OA = "http://www.w3.org/ns/oa#";
9
+ export declare const PREFIX_DCTERMS = "http://purl.org/dc/terms/";
9
10
  export declare const SHAPES_GRAPH: import("n3").NamedNode<"shapes">;
10
11
  export declare const OWL_IMPORTS: import("n3").NamedNode<string>;
11
12
  export declare const RDF_PREDICATE_TYPE: import("n3").NamedNode<string>;
13
+ export declare const DCTERMS_PREDICATE_CONFORMS_TO: import("n3").NamedNode<string>;
12
14
  export declare const RDFS_PREDICATE_SUBCLASS_OF: import("n3").NamedNode<string>;
13
15
  export declare const SKOS_PREDICATE_BROADER: import("n3").NamedNode<string>;
14
16
  export declare const OWL_OBJECT_NAMED_INDIVIDUAL: import("n3").NamedNode<string>;