We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78b7700 + 5984426 commit 07548d3Copy full SHA for 07548d3
dandi/metadata/util.py
@@ -425,7 +425,11 @@ def parse_purlobourl(
425
:return: dictionary containing found nodes
426
"""
427
428
- req = requests.get(url, allow_redirects=True)
+ if url.startswith(NCBITAXON_URI_TEMPLATE.format("")):
429
+ rdf_content_url = f"https://ontobee.org/ontology/rdf/NCBITaxon?iri={url}"
430
+ req = requests.get(rdf_content_url, allow_redirects=True)
431
+ else:
432
+ req = requests.get(url, allow_redirects=True)
433
req.raise_for_status()
434
doc = parseString(req.text)
435
for elfound in doc.getElementsByTagName("Class"):
0 commit comments