Form capability report
At deploy, Agrafe derives one form per concept from the project’s SHACL
shapes. Some SHACL constructs have no form widget. The deriver records each
one in the form’s capability report: the construct (sh:sparql,
sh:and, …), the node shape that holds it, the path of the field it applies
to (if any), and what the form does instead. The report is served with the
forms by GET /api/data/:id/form-specs, as each spec’s capabilities
list. A form with no such construct omits the capabilities key.
S055 warnings
The Problems panel lists every report entry as an S055 warning, source
forms:
| Message | Meaning |
|---|---|
| S055: sh:and on PersonShape/age: not rendered, the field is rendered read-only | The field is shown with its value but cannot be edited. |
| S055: sh:or on PersonShape: not rendered, checked on the whole form | No single field hosts the constraint. It is checked when the whole form is validated. |
| S055: sh:pattern on PersonShape/email: not rendered, checked by the validator | The field renders as usual. The validator enforces the constraint. |
| S055: sh:sparql on PersonShape: validated by the server only | See below. |
A concept’s sub parent gives no warning: the parent’s fields are part of the form.
Each warning points at the Dolfin declaration behind the shape:
- the field’s
hasline, when the entry has a path. For a nested path, the field is the path’s last step. - else the concept’s name. Inverse, alternative and repeated paths name no field, so they point at the concept.
- else
package.dlf.
The check runs on the server after each save. It needs no Validation checkbox.
Validated by the server only
Shapes with sh:sparql (from a concept’s check conditions) need SPARQL.
The validator in the browser runs without SPARQL, so only Agrafe’s write gate
checks them, when the form is submitted. The field stays editable.
In Formol
A form whose report has entries shows a note under its title: Some constraints are checked by the server on submit. Read-only fields are shown greyed out with their value and cannot be edited; the required-field check skips them. A form with no entries shows neither.
Public share-link forms behave the same. A link only receives the fields and report entries of the fields it exposes.
Never blocking
S055 is a warning. It never counts as an error, and never fails a build, a
deploy or the “project has errors” check.