SHACL form is a frontend library that shows forms from a SHACL shape. It uses customElements, also for the widgets, this will enable a third party developer to bring their own widgets that might be made with any other technology as long as it is exported as a customElement.
This library is in development
HTML attributes on the customElement:
- subject - Useful when creating data. It will set the subject to this uri. It is possible to rename the subject when using the form.
- shacl-url - The place where the SHACL turtle is stored, it should allow CORS.
- shape-uri - Set this attribute if you have multiple shapes in your shape turtle file and do not want to use the first shape.
<shacl-form shacl-url="YOUR_SHACL_TTL"></shacl-form>