@ulb-darmstadt/shacl-form 1.4.7 → 1.4.8
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 -3
- 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
|
@@ -63,7 +63,7 @@ data-values | RDF triples (e.g. a turtle string) to use as existing data graph t
|
|
|
63
63
|
data-values-url | When `data-values` is not set, the data graph triples are loaded from this URL
|
|
64
64
|
data-values-subject | The subject (id) of the generated data. If this is not set, a blank node with a new UUID is created. If `data-values` or `data-values-url` is set, this id is also used to find the root node in the data graph to fill the form
|
|
65
65
|
data-values-namespace | RDF namespace to use when generating new RDF subjects. Default is empty, so that subjects will be blank nodes.
|
|
66
|
-
data-language | Language to use if shapes contain langStrings, e.g. in `sh:name` or `rdfs:label`. Default is [`navigator.language`](https://
|
|
66
|
+
data-language | Language to use if shapes contain langStrings, e.g. in `sh:name` or `rdfs:label`. Default is [`navigator.language`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language) with fallback to [`navigator.languages`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)
|
|
67
67
|
data-loading | Text to display while the web component is initializing. Default: `"Loading..."`
|
|
68
68
|
data‑ignore‑owl‑imports | By default, `owl:imports` URLs are fetched and the resulting RDF triples are added to the shapes graph. Setting this attribute to any value disables this feature
|
|
69
69
|
data-view | When set, turns the web component into a viewer that displays the given data graph without editing functionality
|
|
@@ -111,7 +111,7 @@ Class hierarchies can be built using `rdfs:subClassOf` or `skos:broader`.
|
|
|
111
111
|
|
|
112
112
|
### Validation
|
|
113
113
|
|
|
114
|
-
In edit mode, `<shacl-form>` validates the constructed data graph using the library [
|
|
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
115
|
|
|
116
116
|
### Data graph binding
|
|
117
117
|
|
|
@@ -182,7 +182,7 @@ When adding a new attribution, `<shacl-form>` renders a dropdown to let the user
|
|
|
182
182
|
|
|
183
183
|
When binding an existing data graph to the form, the `sh:or` constraint is tried to be resolved depending on the respective data value:
|
|
184
184
|
- For RDF literals, an `sh:or` option with a matching `sh:datatype` is chosen
|
|
185
|
-
- For blank nodes or named nodes, the `rdf:type` of the value is tried to be matched with a node shape having a corresponding `sh:targetClass` or with a property shape having a corresponding `sh:class`
|
|
185
|
+
- For blank nodes or named nodes, the `rdf:type` of the value is tried to be matched with a node shape having a corresponding `sh:targetClass` or with a property shape having a corresponding `sh:class`. If there is no `rdf:type` but a `sh:nodeKind` of `sh:IRI`, the id of the the node is used as the value.
|
|
186
186
|
|
|
187
187
|
### SHACL shape inheritance
|
|
188
188
|
|