Skip to content

Commit

Permalink
exclude obsolete terms from this qc check (#8417)
Browse files Browse the repository at this point in the history
  • Loading branch information
twhetzel authored Nov 20, 2024
1 parent e8345cd commit 39ef29e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sparql/qc/mondo/qc-ordo-subset-exact-mapping.sparql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

## This QC check ensures that if we have a source for subset, it must
## also be mapped to the same term as the subset
Expand Down Expand Up @@ -29,6 +30,7 @@ SELECT DISTINCT ?entity ?property ?value WHERE {
owl:annotatedTarget ?xref ;
oboInOwl:source ?mondo_source .
}
FILTER NOT EXISTS { ?entity owl:deprecated "true"^^xsd:boolean . }
FILTER (STRSTARTS(str(?xref), "Orphanet:"))
FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_"))
BIND(?xref as ?value)
Expand Down

0 comments on commit 39ef29e

Please sign in to comment.