Skip to content

Commit

Permalink
Add a TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielis committed Sep 26, 2024
1 parent 8c57b1e commit 2bfd793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hpotk/ontology/load/obographs/_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@

logger = logging.getLogger(__name__)

# TODO - verify PURL works for other ontologies than HPO
# TODO: verify PURL works for other ontologies than HPO
# TODO: thoroughly test the PURL pattern
# A pattern to match an obolibrary PURL. The PURL should is expected to have 3 parts: `prefix`, `id`, and `curie`
# The `curie` is `prefix` + '_' + `id`.
PURL_PATTERN = re.compile(r'http://purl\.obolibrary\.org/obo/(?P<curie>(?P<prefix>\w+)_(?P<id>\d{7}))')
PURL_PATTERN = re.compile(r'http://purl\.obolibrary\.org/obo/(?P<curie>(?P<prefix>\w+)_(?P<id>\w+))')
DATE_PATTERN = re.compile(r'.*/(?P<date>\d{4}-\d{2}-\d{2})/.*')


Expand Down

0 comments on commit 2bfd793

Please sign in to comment.