Skip to content

Commit 41ab435

Browse files
committed
Depriortize some terminologies in duplicate_unscoped_xrefs
After priority 1 sources are scoped, add in priority 2, then re-generalize report to include all duplicate unscoped xrefs.
1 parent 62aefff commit 41ab435

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sparql/report/duplicate_unscoped_xrefs.rq

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Identify "unscoped" xrefs (i.e. those without corresponding skos mappings)
22
# that are annotated to multiple diseases
33

4+
# CURRENTLY LIMITED TO PRIORITY 1 SOURCES!!! Eventually apply to all xrefs!!!
5+
# Priority 2 sources with duplicate xrefs: MESH|UMLS_CUI
6+
# Lowest priority sources with duplicate xrefs (re-generalize report for these):
7+
# ICD10CM|ICD9CM|ICDO|KEGG|SNOMEDCT_US_2023_03_01
8+
9+
410
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
511
PREFIX owl: <http://www.w3.org/2002/07/owl#>
612
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
@@ -34,5 +40,8 @@ WHERE {
3440
?entity ?property ?value .
3541
FILTER(STRSTARTS(STR(?entity), "http://purl.obolibrary.org/obo/DOID_"))
3642
FILTER NOT EXISTS { ?entity owl:deprecated ?any }
43+
44+
# PRIORITIZED XREFS
45+
FILTER(REGEX(str(?value), "^(MIM|NCI|ORDO|GARD):"))
3746
}
3847
ORDER BY ?value ?entity

0 commit comments

Comments
 (0)