-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add QC to ensure that if we provide evidence for a subset, the mappin…
…g must be exact (#7689) * Create qc-ordo-subset-exact-mapping.sparql * Update src/sparql/qc/mondo/qc-ordo-subset-exact-mapping.sparql * Update src/sparql/qc/mondo/qc-ordo-subset-exact-mapping.sparql Co-authored-by: Nico Matentzoglu <[email protected]> * add back MONDO:obsoleteEquivalent * change annotation to source * fix proxy merge/qc issue * add ordo subset to correct term --------- Co-authored-by: Trish Whetzel <[email protected]> Co-authored-by: Trish Whetzel <[email protected]>
- Loading branch information
1 parent
ffc51dd
commit f49262c
Showing
2 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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#> | ||
|
||
## This QC check ensures that if we have a source for subset, it must | ||
## also be mapped to the same term as the subset | ||
|
||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?subset { | ||
<http://purl.obolibrary.org/obo/mondo#ordo_disorder> | ||
} | ||
?entity oboInOwl:inSubset ?subset . | ||
|
||
?subset_anno a owl:Axiom ; | ||
owl:annotatedSource ?entity ; | ||
owl:annotatedProperty oboInOwl:inSubset ; | ||
owl:annotatedTarget ?subset ; | ||
oboInOwl:source ?xref . | ||
|
||
FILTER NOT EXISTS { | ||
?entity oboInOwl:hasDbXref ?xref . | ||
VALUES ?mondo_source { | ||
"MONDO:obsoleteEquivalent" | ||
"MONDO:equivalentTo" | ||
} | ||
?xref_anno a owl:Axiom ; | ||
owl:annotatedSource ?entity ; | ||
owl:annotatedProperty oboInOwl:hasDbXref ; | ||
owl:annotatedTarget ?xref ; | ||
oboInOwl:source ?mondo_source . | ||
} | ||
FILTER (STRSTARTS(str(?xref), "Orphanet:")) | ||
FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_")) | ||
BIND(?xref as ?value) | ||
BIND(str(?subset) as ?property) | ||
} | ||
ORDER BY ?entity |