We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71785b8 commit 9d0579eCopy full SHA for 9d0579e
linkml_runtime/utils/schemaview.py
@@ -117,22 +117,6 @@ class SchemaUsage():
117
inferred: bool = None
118
119
120
-def to_dict(obj):
121
- """
122
- Convert a LinkML element (such as ClassDefinition) to a dictionary.
123
-
124
- :param obj: The LinkML class instance to convert.
125
- :return: A dictionary representation of the class.
126
127
- if is_dataclass(obj):
128
- return asdict(obj)
129
- elif isinstance(obj, list):
130
- return [to_dict(item) for item in obj]
131
- elif isinstance(obj, dict):
132
- return {key: to_dict(value) for key, value in obj.items()}
133
- else:
134
- return obj
135
136
@dataclass
137
class SchemaView(object):
138
"""
0 commit comments