diff --git a/linkml_runtime/utils/yamlutils.py b/linkml_runtime/utils/yamlutils.py index bf3a5bca..aaad0eff 100644 --- a/linkml_runtime/utils/yamlutils.py +++ b/linkml_runtime/utils/yamlutils.py @@ -8,6 +8,7 @@ import jsonasobj2 from rdflib import Graph, URIRef from yaml.constructor import ConstructorError +import logging from linkml_runtime.utils.context_utils import CONTEXTS_PARAM_TYPE, merge_contexts from linkml_runtime.utils.formatutils import is_empty @@ -113,6 +114,14 @@ def _normalize_inlined(self, slot_name: str, slot_type: Type, key_name: str, key @param keyed: True means each identifier must be unique @param is_list: True means inlined as list """ + log_msg = "Normalizing " + if self.class_name != "schema_definition": + log_msg += " " + log_msg += f"{self.class_name}" + if hasattr(self, "name"): + log_msg += f"[{self.name}]" + log_msg += f".{slot_name}" + logging.debug(log_msg) raw_slot: Union[list, dict, JsonObj] = self[slot_name] if raw_slot is None: raw_slot = []