@ulb-darmstadt/shacl-form 1.4.4 → 1.4.6
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 +2 -2
- package/dist/config.d.ts +4 -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
|
@@ -61,7 +61,7 @@ data-shapes-url | When `data-shapes` is not set, the SHACL shapes are loaded fro
|
|
|
61
61
|
data-shape-subject | Optional subject (id) of the SHACL node shape to use as root for the form. If not set, the first found node shape will be used
|
|
62
62
|
data-values | RDF triples (e.g. a turtle string) to use as existing data graph to fill the form
|
|
63
63
|
data-values-url | When `data-values` is not set, the data graph triples are loaded from this URL
|
|
64
|
-
data-
|
|
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
66
|
data-language | Language to use if shapes contain langStrings, e.g. in `sh:name` or `rdfs:label`. Default is [`navigator.language`](https://www.w3schools.com/jsref/prop_nav_language.asp)
|
|
67
67
|
data-loading | Text to display while the web component is initializing. Default: `"Loading..."`
|
|
@@ -115,7 +115,7 @@ In edit mode, `<shacl-form>` validates the constructed data graph using the libr
|
|
|
115
115
|
|
|
116
116
|
### Data graph binding
|
|
117
117
|
|
|
118
|
-
`<shacl-form>` requires only a shapes graph as input via the attribute `data-shapes` (or `data-shapes-url`) to generate an empty form and create new RDF data from the form input fields. Using the attributes `data-values` (or `data-values-url`) and `data-
|
|
118
|
+
`<shacl-form>` requires only a shapes graph as input via the attribute `data-shapes` (or `data-shapes-url`) to generate an empty form and create new RDF data from the form input fields. Using the attributes `data-values` (or `data-values-url`) and `data-values-subject`, you can also bind an existing data graph to the form. The given data graph is then used to fill the form input fields.
|
|
119
119
|
|
|
120
120
|
### Viewer mode
|
|
121
121
|
|
package/dist/config.d.ts
CHANGED
|
@@ -9,7 +9,11 @@ export declare class ElementAttributes {
|
|
|
9
9
|
shapeSubject: string | null;
|
|
10
10
|
values: string | null;
|
|
11
11
|
valuesUrl: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use valuesSubject instead
|
|
14
|
+
*/
|
|
12
15
|
valueSubject: string | null;
|
|
16
|
+
valuesSubject: string | null;
|
|
13
17
|
valuesNamespace: string;
|
|
14
18
|
view: string | null;
|
|
15
19
|
language: string;
|