@ulb-darmstadt/shacl-form 1.8.0 → 1.8.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
@@ -141,11 +141,14 @@ Apart from setting the element attributes `data-shapes` or `data-shapes-url`, th
141
141
  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.
142
142
 
143
143
  2. <a id="classInstanceProvider"></a>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
144
- 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:
145
- - `example:Instance a example:Class`
146
- - `example:Instance a owl:NamedIndividual; skos:broader example:Class`
144
+ 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.
147
145
 
148
- Class hierarchies can be built using `rdfs:subClassOf` or `skos:broader`.
146
+ Class hierarchies can be built using `rdfs:subClassOf`. Instance hierarchies can be modeled e.g. like:
147
+ ```
148
+ ex:parent a ex:Class .
149
+ ex:child rdfs:subClassOf ex:parent; a ex:parent .
150
+ ex:grandchild rdfs:subClassOf ex:child; a ex:child .
151
+ ```
149
152
 
150
153
  In [this example](https://ulb-darmstadt.github.io/shacl-form/#example), the code:
151
154
 
@@ -13,12 +13,11 @@ export declare const DATA_GRAPH: import('n3').NamedNode<"loaded-data">;
13
13
  export declare const RDF_PREDICATE_TYPE: import('n3').NamedNode<string>;
14
14
  export declare const DCTERMS_PREDICATE_CONFORMS_TO: import('n3').NamedNode<string>;
15
15
  export declare const RDFS_PREDICATE_SUBCLASS_OF: import('n3').NamedNode<string>;
16
- export declare const SKOS_PREDICATE_BROADER: import('n3').NamedNode<string>;
17
16
  export declare const OWL_PREDICATE_IMPORTS: import('n3').NamedNode<string>;
18
- export declare const OWL_OBJECT_NAMED_INDIVIDUAL: import('n3').NamedNode<string>;
19
17
  export declare const SHACL_OBJECT_NODE_SHAPE: import('n3').NamedNode<string>;
20
18
  export declare const SHACL_OBJECT_IRI: import('n3').NamedNode<string>;
21
19
  export declare const SHACL_PREDICATE_PROPERTY: import('n3').NamedNode<string>;
22
20
  export declare const SHACL_PREDICATE_CLASS: import('n3').NamedNode<string>;
23
21
  export declare const SHACL_PREDICATE_TARGET_CLASS: import('n3').NamedNode<string>;
24
22
  export declare const SHACL_PREDICATE_NODE_KIND: import('n3').NamedNode<string>;
23
+ export declare const XSD_DATATYPE_STRING: import('n3').NamedNode<string>;