From c237afe1c36d04c7c815c62c16af46ab6ea1462b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Aug 2023 19:07:35 -0700 Subject: [PATCH] Update DOSDP template and SPARQL qc documentation (#6545) Co-authored-by: nicolevasilevsky --- docs/editors-guide/quality-control-tests.md | 23 +++++++++++++++++++++ src/patterns/pattern-merged.owl | 2 +- src/patterns/pattern-with-imports.owl | 2 +- src/patterns/pattern.owl | 2 +- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/docs/editors-guide/quality-control-tests.md b/docs/editors-guide/quality-control-tests.md index 2aba2ad506..4875fccc53 100644 --- a/docs/editors-guide/quality-control-tests.md +++ b/docs/editors-guide/quality-control-tests.md @@ -1154,6 +1154,29 @@ ORDER BY ?entity ``` +### qc-obsoletion-reason.sparql + +``` +PREFIX rdf: +PREFIX rdfs: +PREFIX IAO: +PREFIX OMO: +PREFIX MONDO: + +# description: Checks if a proper obsolesence reason was documented for this class + +SELECT ?entity ?property ?value WHERE { + VALUES ?property { IAO:0000231 } + ?entity ?property ?value . + FILTER(!isIRI(?value)) + FILTER(?value!=OMO:00001000 || + ?value!=IAO:0000423 || + ?value!=IAO:0000229 || + ?value!=MONDO:TermsMerged ) + FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_")) +} +``` + ### qc-owldef-self-reference.sparql ``` diff --git a/src/patterns/pattern-merged.owl b/src/patterns/pattern-merged.owl index 99be3a3d63..58f9b52ec2 100644 --- a/src/patterns/pattern-merged.owl +++ b/src/patterns/pattern-merged.owl @@ -10,7 +10,7 @@ xmlns:terms="http://purl.org/dc/terms/" xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"> - + diff --git a/src/patterns/pattern-with-imports.owl b/src/patterns/pattern-with-imports.owl index f2d932244b..167710d98e 100644 --- a/src/patterns/pattern-with-imports.owl +++ b/src/patterns/pattern-with-imports.owl @@ -12,7 +12,7 @@ xmlns:terms="http://purl.org/dc/terms/" xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"> - + diff --git a/src/patterns/pattern.owl b/src/patterns/pattern.owl index 5bb529b9ef..a8a25b5095 100644 --- a/src/patterns/pattern.owl +++ b/src/patterns/pattern.owl @@ -12,7 +12,7 @@ xmlns:terms="http://purl.org/dc/terms/" xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"> - +