@ulb-darmstadt/shacl-form 1.5.0 → 1.5.2
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 +3 -2
- package/dist/config.d.ts +1 -0
- package/dist/form-bootstrap.js +1 -1
- package/dist/form-default.js +1 -1
- package/dist/form-material.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,7 +69,8 @@ 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.
|
|
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. Suggested values for this attribute are `http://www.w3.org/1999/02/22-rdf-syntax-ns#type` or `http://purl.org/dc/terms/conformsTo`. Default is empty, so that no such triple is created
|
|
73
|
+
show-node-ids | When this attribute is set, shacl node shapes will have their subject id shown in the form
|
|
73
74
|
|
|
74
75
|
### Element functions
|
|
75
76
|
|
|
@@ -112,7 +113,7 @@ Class hierarchies can be built using `rdfs:subClassOf` or `skos:broader`.
|
|
|
112
113
|
|
|
113
114
|
### Validation
|
|
114
115
|
|
|
115
|
-
In edit mode, `<shacl-form>` validates the constructed data graph using the library [shacl
|
|
116
|
+
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.
|
|
116
117
|
|
|
117
118
|
### Data graph binding
|
|
118
119
|
|
package/dist/config.d.ts
CHANGED