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
* add fp_020.py script to makefile to be updated automatically from OBO-Dashboard
* add fp_20 to be updated automatically; fix bug to have ID
* update checks page auto
---------
Co-authored-by: Nico Matentzoglu <nicolas.matentzoglu@gmail.com>
Copy file name to clipboardExpand all lines: principles/checks/fp_001.md
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
layout: check
3
-
id: fp_001
3
+
id: 1
4
4
title: Open Automated Check
5
5
---
6
6
@@ -39,11 +39,11 @@ See [Open Implementation](http://obofoundry.org/principles/fp-001-open.html#impl
39
39
The registry data entry is validated with JSON schema using the [license schema](https://raw.githubusercontent.com/OBOFoundry/OBOFoundry.github.io/master/util/schema/license.json). The license schema ensures that a license entry is present and that the entry has a `url` and `label`. The license schema also checks that the license is one of the CC0 or CC-BY licenses. OWL API is then used to check the ontology as an `OWLOntology` object. Annotations on the ontology are retrieved and the `dcterms:license` property is found. The python script ensures that the correct `dcterms:license` property is used. The script compares this license to the registry license to ensure that they are the same.
40
40
41
41
```python
42
-
import jsonschema
43
42
import dash_utils
43
+
import jsonschema
44
44
45
45
46
-
defis_open(ontology, data):
46
+
defis_open(ontology, data, schema):
47
47
"""Check FP 1 - Open.
48
48
49
49
This method checks the following:
@@ -63,7 +63,7 @@ def is_open(ontology, data):
63
63
ERROR, WARN, INFO, or PASS string with optional message.
Copy file name to clipboardExpand all lines: principles/checks/fp_003.md
+44-20Lines changed: 44 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,20 +33,19 @@ The full OBO Foundry ID Policy can be found [here](http://www.obofoundry.org/id-
33
33
All entity IRIs are retrieved from the ontology, excluding annotation properties. Annotation properties may use hashtags and words due to legacy OBO conversions for subset properties. All other IRIs are checked if they are in the ontology's namespace. If the IRI begins with the ontology namespace, the next character must be an underscore. If not, this is an error. The IRI is also compared to a regex pattern to check if the local ID after the underscore is numeric. If not, this is a warning.
0 commit comments