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 84e59d0 commit 16d03b6Copy full SHA for 16d03b6
renku/core/models/jsonld.py
@@ -246,7 +246,13 @@ def _propagate_reference_contexts(
246
247
if '@context' not in current_context:
248
current_context['@context'] = []
249
- for subtype in cls._jsonld_type:
+
250
+ subtypes = cls._jsonld_type
251
252
+ if not isinstance(subtypes, (tuple, list)):
253
+ subtypes = [subtypes]
254
255
+ for subtype in subtypes:
256
# Use nested, type scoped contexts for each semantic type
257
# of a reference, to uniquely bind a context to a type
258
current_context['@context'].append({
0 commit comments