@ulb-darmstadt/shacl-form 1.4.3 → 1.4.5

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
@@ -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-value-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
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-value-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.
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;
@@ -5,6 +5,7 @@ export declare const PREFIX_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
5
5
  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
+ export declare const PREFIX_OA = "http://www.w3.org/ns/oa#";
8
9
  export declare const SHAPES_GRAPH: import("n3").NamedNode<"shapes">;
9
10
  export declare const OWL_IMPORTS: import("n3").NamedNode<string>;
10
11
  export declare const RDF_PREDICATE_TYPE: import("n3").NamedNode<string>;