@ulb-darmstadt/shacl-form 1.3.1 → 1.3.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 CHANGED
@@ -4,7 +4,7 @@
4
4
  npm i @ulb-darmstadt/shacl-form
5
5
  ```
6
6
 
7
- An HTML5 web component for editing/viewing [RDF](https://www.w3.org/RDF/) data that conform to [SHACL shapes](https://www.w3.org/TR/shacl/).
7
+ HTML5 web component for editing/viewing [RDF](https://www.w3.org/RDF/) data that conform to [SHACL shapes](https://www.w3.org/TR/shacl/).
8
8
 
9
9
  ## [See demo here](https://ulb-darmstadt.github.io/shacl-form/)
10
10
 
@@ -128,8 +128,8 @@ Apart from setting the element attributes `data-shapes` or `data-shapes-url`, th
128
128
  ```
129
129
  In this case, the URL references an ontology which among other things defines instances of class `prov:Role` that are then used to populate the "Role" dropdown in the form.
130
130
 
131
- 2. The `<shacl-form>` element has a function `setClassInstanceProvider((className: string) => Promise<string>)` that registers a callback function which is called when a SHACL property has
132
- an `sh:class` predicate. The expected return value of this callback function is a (promise of a) string (e.g. in format `text/turtle`) that contains RDF class instance definitions of the given class. Instances can be defined e.g. like:
131
+ 2. The `<shacl-form>` element has a function `setClassInstanceProvider((className: string) => Promise<string>)` that registers a callback function which is invoked when a SHACL property has
132
+ an `sh:class` predicate. The expected return value is a (promise of a) string (e.g. in format `text/turtle`) that contains RDF class instance definitions of the given class. Instances can be defined e.g. like:
133
133
  - `example:Instance a example:Class`
134
134
  - `example:Instance a owl:NamedIndividual; skos:broader example:Class`
135
135