-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various updates to mass obsoletion pipeline (#6680)
* Various updates to mass obsoletion - Add mondo version with manipulated labels - Remove comments from mass obsoletion Pipeline - automatically add the correct axiom annotation to obsoletion reason. * Update mondo.Makefile * obsolete children of breast disorder - deficient breast volume or number - excess breast volume or number close #6684 * reclassify terms * add superclass * remove superclasses --------- Co-authored-by: Nicole Vasilevsky <[email protected]>
- Loading branch information
1 parent
62be131
commit bd58ccc
Showing
6 changed files
with
74 additions
and
68 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
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 was deleted.
Oops, something went wrong.
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,35 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
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 MONDO: <http://purl.obolibrary.org/obo/MONDO_> | ||
|
||
DELETE { | ||
?entity rdfs:label ?label . | ||
} | ||
INSERT { | ||
?entity rdfs:label ?new_label . | ||
} | ||
WHERE { | ||
VALUES ?entity { MONDO:0000000 } . | ||
?entity rdfs:label ?label . | ||
?entity oboInOwl:inSubset <http://purl.obolibrary.org/obo/mondo#obsoletion_candidate> . | ||
|
||
?xref_anno a owl:Axiom ; | ||
owl:annotatedSource ?entity ; | ||
owl:annotatedProperty ?property ; | ||
owl:annotatedTarget ?value ; | ||
oboInOwl:source ?source . | ||
|
||
OPTIONAL { | ||
?entity oboInOwl:inSubset ?subset . | ||
FILTER(?subset != <http://purl.obolibrary.org/obo/mondo#obsoletion_candidate> ) | ||
} | ||
|
||
OPTIONAL { | ||
?entity <http://purl.obolibrary.org/obo/IAO_0006012> ?date . | ||
} | ||
|
||
FILTER NOT EXISTS { ?entity owl:deprecated true } | ||
BIND(CONCAT("OBSOL_BRANCH ",str(?label)) as ?new_label) | ||
} |
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