You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/11_writing_a_profile.rst
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,11 +63,25 @@ These instructions assume you are familiar with code development using Python an
63
63
checks to write, you can create multiple files - the validator will
64
64
collect them all automatically at runtime.
65
65
66
-
* Note: some profiles split the checks into folders called ``must/``,
66
+
.. note::
67
+
68
+
Some profiles split the checks into folders called ``must/``,
67
69
``should/`` and ``may/`` according to the requirement severity. This
68
70
is not mandatory - you can also label individual checks/shapes with
69
71
``sh:severity`` in the SHACL code instead.
70
72
73
+
#. Optionally, associate an ontology graph with the profile by providing
74
+
an ``ontology.ttl`` file alongside the SHACL files.
75
+
This graph is merged into the crate's data graph at validation time,
76
+
allowing you to define formal relationships and additional definitions
77
+
between profile entities (e.g., using ``rdfs:subClassOf``,
78
+
``owl:equivalentClass``, etc.).
79
+
80
+
.. warning::
81
+
82
+
Including an ontology can significantly impact validation times and
83
+
overall performance, especially for large graphs. Use with caution.
84
+
71
85
#. From the root folder of the repo, create a test folder for the profile
72
86
under
73
87
`tests/integration/profiles <https://github.com/crs4/rocrate-validator/tree/develop/tests/integration/profiles>`_. The name should match the folder you made earlier.
@@ -90,4 +104,6 @@ When running the validator manually, use ``--profile-identifier`` to select the
90
104
91
105
The crates in ``tests/data/crates``` can be used as examples for running the validator. For example: ::
0 commit comments