@ulb-darmstadt/shacl-form 1.7.2 → 1.7.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/dist/constants.d.ts +1 -0
- package/dist/constraints.d.ts +3 -2
- package/dist/form-bootstrap.js +1 -1
- package/dist/form-default.js +1 -1
- package/dist/form-material.js +1 -1
- package/dist/node.d.ts +3 -0
- package/dist/plugins/leaflet.js +1 -1
- package/dist/plugins/mapbox.js +1 -1
- package/dist/property-template.d.ts +2 -0
- package/package.json +4 -4
- package/src/constants.ts +1 -0
- package/src/constraints.ts +76 -29
- package/src/node.ts +59 -36
- package/src/property-template.ts +22 -3
- package/src/property.ts +32 -8
- package/src/util.ts +23 -13
package/dist/constants.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const OWL_PREDICATE_IMPORTS: import("n3").NamedNode<string>;
|
|
|
16
16
|
export declare const OWL_OBJECT_NAMED_INDIVIDUAL: import("n3").NamedNode<string>;
|
|
17
17
|
export declare const SHACL_OBJECT_NODE_SHAPE: import("n3").NamedNode<string>;
|
|
18
18
|
export declare const SHACL_OBJECT_IRI: import("n3").NamedNode<string>;
|
|
19
|
+
export declare const SHACL_PREDICATE_PROPERTY: import("n3").NamedNode<string>;
|
|
19
20
|
export declare const SHACL_PREDICATE_CLASS: import("n3").NamedNode<string>;
|
|
20
21
|
export declare const SHACL_PREDICATE_TARGET_CLASS: import("n3").NamedNode<string>;
|
|
21
22
|
export declare const SHACL_PREDICATE_NODE_KIND: import("n3").NamedNode<string>;
|
package/dist/constraints.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Quad } from 'n3';
|
|
1
2
|
import { Term } from '@rdfjs/types';
|
|
2
3
|
import { ShaclNode } from "./node";
|
|
3
4
|
import { ShaclProperty } from "./property";
|
|
4
5
|
import { Config } from './config';
|
|
5
|
-
import { ShaclPropertyTemplate } from './property-template';
|
|
6
6
|
export declare function createShaclOrConstraint(options: Term[], context: ShaclNode | ShaclProperty, config: Config): HTMLElement;
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function resolveShaclOrConstraintOnProperty(subjects: Term[], value: Term, config: Config): Quad[];
|
|
8
|
+
export declare function resolveShaclOrConstraintOnNode(subjects: Term[], value: Term, config: Config): Term[];
|