INNER CODE UNIT · Python

review_ontology

OBOFoundry/OBOFoundry.github.io · util/auto-foundry-check.py:77

def review_ontology(ont):
    inject(ont)
    fails = []
    open_license = False
    if "license" in ont:
        lurl = ont["license"]["url"]
        if (
            "creativecommons.org/licenses/by/" in lurl
            or "creativecommons.org/publicdomain/zero" in lurl
        ):
            open_license = True
    if not open_license:
        fails.append(FAIL_LICENSE)
    if "tracker" not in ont:
        fails.append(FAIL_TRACKER)
    if "usages" not in ont:
        fails.append(FAIL_USERS)
    conflict = len(fails) > 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…