Skip to content

Commit

Permalink
Merge pull request #146 from monarch-initiative/anno-prop-dec-refactor
Browse files Browse the repository at this point in the history
Annotation prop declaration refactor & `oio` refactor
  • Loading branch information
joeflack4 authored Sep 23, 2024
2 parents 5b5eae1 + 093253e commit e812939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion omim2obo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ def omim2obo(use_cache: bool = False):
# Populate graph
# - Non-OMIM triples
graph.add((URIRef('http://purl.obolibrary.org/obo/mondo/omim.owl'), RDF.type, OWL.Ontology))
graph.add((URIRef('http://www.geneontology.org/formats/oboInOwl#hasSynonymType'), RDF.type, OWL.AnnotationProperty))
graph.add((URIRef(oboInOwl.hasSynonymType), RDF.type, OWL.AnnotationProperty))
graph.add((URIRef(MONDONS.omim_included), RDF.type, OWL.AnnotationProperty))
graph.add((URIRef(OMO['0003000']), RDF.type, OWL.AnnotationProperty))
graph.add((BIOLINK['has_evidence'], RDF.type, OWL.AnnotationProperty))
graph.add((TAX_URI, RDF.type, OWL.Class))
graph.add((TAX_URI, RDFS.label, Literal(TAX_LABEL)))
Expand Down
3 changes: 1 addition & 2 deletions omim2obo/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
OBAN = Namespace('http://purl.org/oban/') # Open Biomedical Annotation Model
OBI = Namespace('http://purl.obolibrary.org/obo/OBI_') # Ontology of Biomedical Investigations
OBO = Namespace('http://purl.obolibrary.org/obo/') # Biological Ontology namespace (this is not itself an ontology)
oboInOwl = Namespace('http://www.geneontology.org/formats/oboInOwl#') # obo-specific annotation properties, like synonym types
# 'OMIA' was http://omia.angis.org.au/ IS https://omia.org/ # (see about helping to update original data)
OMIA = Namespace('https://omia.org/OMIA') # Online Mendelian Inheritance in Animals (disease/species)
OMO = Namespace('http://purl.obolibrary.org/obo/OMO_') # OBO Metadata Ontology
Expand Down Expand Up @@ -249,7 +250,6 @@
PMID = Namespace('http://www.ncbi.nlm.nih.gov/pubmed/')
ORPHANET = Namespace('http://www.orpha.net/ORDO/Orphanet_')
UMLS = Namespace('http://linkedlifedata.com/resource/umls/id/')
oboInOwl = Namespace('http://www.geneontology.org/formats/oboInOwl#')

# # Monarch-specific
# '': 'https://monarchinitiative.org/' # local BASE IRI
Expand Down Expand Up @@ -323,7 +323,6 @@
# 'OBAN': 'http://purl.org/oban/' # Open Biomedical Annotation Model
# 'OBI': 'http://purl.obolibrary.org/obo/OBI_' # Ontology of Biomedical Investigations
# 'OBO': 'http://purl.obolibrary.org/obo/' # Biological Ontology namespace (this is not itself an ontology)
# 'oboInOwl': 'http://www.geneontology.org/formats/oboInOwl#' # obo-specific annotation properties, like synonym types
# # 'OMIA' was http://omia.angis.org.au/ IS https://omia.org/ # (see about helping to update original data)
# 'OMIA': 'https://omia.org/OMIA' # Online Mendelian Inheritance in Animals (disease/species)
# # LIDIA seems retired. so these are not resovable # Also: http://www.vetsci.usyd.edu.au/lida/
Expand Down

0 comments on commit e812939

Please sign in to comment.