Skip to content

Commit fa42498

Browse files
committed
Switch to use /rdf/ renderer for purl obo urls
It is not a complete solution since test fails...
1 parent f5b8bc3 commit fa42498

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dandi/metadata/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ def parse_purlobourl(
425425
:return: dictionary containing found nodes
426426
"""
427427

428+
if url.startswith(NCBITAXON_URI_TEMPLATE.format("")):
429+
orig_url = url
430+
url = f"https://ontobee.org/ontology/rdf/NCBITaxon?iri={orig_url}"
428431
req = requests.get(url, allow_redirects=True)
429432
req.raise_for_status()
430433
doc = parseString(req.text)

0 commit comments

Comments
 (0)