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 2b1948d commit ffe36c6Copy full SHA for ffe36c6
renku/core/models/jsonld.py
@@ -418,6 +418,8 @@ def from_jsonld(
418
if data['@context'] != cls._jsonld_context:
419
# merge new context into old context to prevent properties
420
# getting lost in jsonld expansion
421
+ if isinstance(data['@context'], str):
422
+ data['@context'] = {'@base': data['@context']}
423
data['@context'].update(cls._jsonld_context)
424
try:
425
compacted = ld.compact(data, cls._jsonld_context)
0 commit comments