Skip to content

Commit 3701c56

Browse files
authored
Create qc-missing-deprecation-reason.sparql QC check
see #6968
1 parent 609e092 commit 3701c56

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
3+
PREFIX IAO: <http://purl.obolibrary.org/obo/IAO_>
4+
PREFIX OMO: <http://purl.obolibrary.org/obo/OMO_>
5+
PREFIX MONDO: <http://purl.obolibrary.org/obo/MONDO_>
6+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
7+
8+
# description: Checks if a proper obsolesence reason was documented for this class
9+
10+
SELECT ?entity ?property ?value WHERE {
11+
?entity owl:deprecated true .
12+
FILTER NOT EXISTS {
13+
?entity IAO:0000231 ?value .
14+
}
15+
FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_"))
16+
}

0 commit comments

Comments
 (0)