|
54 | 54 | SSSOMSchemaView, |
55 | 55 | ) |
56 | 56 |
|
57 | | -from .context import HINT, ensure_converter |
| 57 | +from .context import HINT, _get_built_in_prefix_map, ensure_converter |
58 | 58 | from .sssom_document import MappingSetDocument |
59 | 59 | from .typehints import Metadata, MetadataType, generate_mapping_set_id, get_default_metadata |
60 | 60 | from .util import ( |
@@ -198,12 +198,14 @@ def parse_sssom_table( |
198 | 198 | meta = {} |
199 | 199 |
|
200 | 200 | # The priority order for combining prefix maps are: |
201 | | - # 1. Internal prefix map inside the document |
202 | | - # 2. Prefix map passed through this function inside the ``meta`` |
203 | | - # 3. Prefix map passed through this function to ``prefix_map`` (handled with ensure_converter) |
204 | | - # 4. Default prefix map (handled with ensure_converter) |
| 201 | + # 1. Built-in prefix map |
| 202 | + # 2. Internal prefix map inside the document |
| 203 | + # 3. Prefix map passed through this function inside the ``meta`` |
| 204 | + # 4. Prefix map passed through this function to ``prefix_map`` (handled with ensure_converter) |
| 205 | + # 5. Default prefix map (handled with ensure_converter) |
205 | 206 | converter = curies.chain( |
206 | 207 | [ |
| 208 | + _get_built_in_prefix_map(), |
207 | 209 | Converter.from_prefix_map(sssom_metadata.pop(CURIE_MAP, {})), |
208 | 210 | Converter.from_prefix_map(meta.pop(CURIE_MAP, {})), |
209 | 211 | ensure_converter(prefix_map), |
|
0 commit comments