Skip to content

Commit

Permalink
Remove deprecation notice (#766)
Browse files Browse the repository at this point in the history
This text corresponds to deprecated functionality and we're removing it
because we don't want people using that code anymore
  • Loading branch information
svempati21 authored Mar 13, 2023
1 parent ff266ea commit c7c1afd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,21 +250,6 @@ assert ('neuronames', '268') == parse_iri("http://braininfo.rprc.washington.edu/
assert ('neuronames', '268') == parse_iri("https://braininfo.rprc.washington.edu/centraldirectory.aspx?ID=268")
```

> **Warning**
> The following functionality is deprecated.
> You can add to (or override) the default prefix map from the Bioregistry by
> passing a dictionary with the `prefix_map` keyword:
```python
from bioregistry import curie_from_iri, parse_iri

prefix_map = {
"myprefix": "https://example.org/myprefix/"
}
assert ('myprefix', '1234') == parse_iri("https://example.org/myprefix/1234", prefix_map=prefix_map)
assert 'myprefix:24867' == curie_from_iri("https://example.org/myprefix/1234", prefix_map=prefix_map)
```

### Generating IRIs

You can generate an IRI from either a CURIE or a pre-parsed CURIE
Expand Down

0 comments on commit c7c1afd

Please sign in to comment.