@ulb-darmstadt/shacl-form 3.0.2 → 3.0.4

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
@@ -83,10 +83,10 @@ Attribute | Description
83
83
  ---|---
84
84
  data-shapes | SHACL shape definitions (e.g. Turtle) used to generate the form
85
85
  data-shapes-url | When `data-shapes` is not set, load SHACL shapes from this URL
86
- data-shape-subject | Optional subject IRI for the root node shape. If not set, the first node shape is used
86
+ data-shape-subject | Optional subject IRI for the root `sh:NodeShape`. If not set, the `<shacl-form>` first tries to resolve the root shape from `data-values-subject` and loaded data, preferring `dcterms:conformsTo`, then `rdf:type` / `sh:targetClass`, and finally falling back to the first node shape in the shapes graph
87
87
  data-values | RDF triples (e.g. Turtle) used to prefill the form
88
88
  data-values-url | When `data-values` is not set, load RDF triples from this URL
89
- data-values-subject | Subject (IRI or blank node id) for generated data. If not set, a blank node with a new UUID is created. If `data-values` or `data-values-url` is set, this id is used to find the root node in the data graph
89
+ data-values-subject | Subject (IRI or blank node id) for generated data. If not set, a blank node with a new UUID is created. If `data-values` or `data-values-url` is set, this id is used to find the root node in the data graph. When exactly one `dcterms:conformsTo` statement exists in the loaded data graph, its subject is used automatically. For the selected subject, a `dcterms:conformsTo` object that is a known `sh:NodeShape` is used as the root shape before falling back to `rdf:type` / `sh:targetClass`
90
90
  data-values-namespace | RDF namespace used when generating new RDF subjects. Default is empty, which yields blank nodes
91
91
  data-values-graph | If set, serialization creates a named graph with this IRI
92
92
  data-language | Language for `langString` values (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)