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
Regroup all ROBOT-related options in a dedicated robot section.
This is proof-of-concept reorganisation of the configuration schema to
test the whole idea that we can make relatively big changes to the
schema while preserving compatibility with existing files.
We create a new subsection in the top-level `project` dictionary, called
`robot`, intended to host all ROBOT-related options.
That is, the following options and group, that are currently directly
under the top-level object:
obo_format_options: ...
robot_relax_options: ...
robot_reduce_options: ...
robot_plugins:
plugins:
- name: my_plugin
robot_report:
release_reports: True
fail_on: ERROR
...
are now renamed and regrouped into a single `robot` section:
robot:
obo_format_options: ...
relax_options: ...
reduce_options: ...
plugins:
- name: my_plugin
report:
release_reports: True
fail_on: ERROR
...
"""Settings for ROBOT report, ROBOT verify and additional reports that are generated."""
621
+
606
622
607
623
608
624
@dataclass_json
@@ -664,9 +680,6 @@ class OntologyProject(JsonSchemaMixin):
664
680
export_project_yaml: bool=False
665
681
"""Flag to set if you want a full project.yaml to be exported, including all the default options."""
666
682
667
-
reasoner : str="ELK"
668
-
"""Name of reasoner to use in ontology pipeline, see robot reason docs for allowed values"""
669
-
670
683
exclude_tautologies : str="structural"
671
684
"""Remove tautologies such as A SubClassOf: owl:Thing or owl:Nothing SubclassOf: A. For more information see http://robot.obolibrary.org/reason#excluding-tautologies"""
672
685
@@ -771,15 +784,6 @@ class OntologyProject(JsonSchemaMixin):
Copy file name to clipboardExpand all lines: template/_dynamic_documentation.jinja2
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -802,19 +802,20 @@ We can define custom checks using [SPARQL](https://www.w3.org/TR/rdf-sparql-quer
802
802
803
803
1. Add the SPARQL query in `src/sparql`. The name of the file should end with `-violation.sparql`. Please give a name that helps to understand which violation the query wants to check.
804
804
2. Add the name of the new file to odk configuration file `src/ontology/uberon-odk.yaml`:
805
-
1. Include the name of the file (without the `-violation.sparql` part) to the list inside the key `custom_sparql_checks` that is inside `robot_report` key.
806
-
1. If the `robot_report` or `custom_sparql_checks` keys are not available, please add this code block to the end of the file.
805
+
1. Include the name of the file (without the `-violation.sparql` part) to the list inside the key `custom_sparql_checks` that is inside `robot.report` key.
806
+
1. If the `robot.report` or `custom_sparql_checks` keys are not available, please add this code block to the end of the file.
807
807
808
808
``` yaml
809
-
robot_report:
810
-
release_reports: False
811
-
fail_on: ERROR
812
-
use_labels: False
813
-
custom_profile: True
814
-
report_on:
815
-
- edit
816
-
custom_sparql_checks:
817
-
- name-of-the-file-check
809
+
robot:
810
+
report:
811
+
release_reports: False
812
+
fail_on: ERROR
813
+
use_labels: False
814
+
custom_profile: True
815
+
report_on:
816
+
- edit
817
+
custom_sparql_checks:
818
+
- name-of-the-file-check
818
819
```
819
820
3. Update the repository so your new SPARQL check will be included in the QC.
0 commit comments