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.
None
[None]
1 parent 56282a4 commit 92c1257Copy full SHA for 92c1257
pipeline/src/base.py
@@ -71,9 +71,12 @@ def value_to_jsonld(value):
71
value = getattr(self, property.name)
72
if value or include_empty_properties:
73
if property.multiple:
74
- if not isinstance(value, (tuple, list)):
75
- value = [value]
76
- data[property.path] = [value_to_jsonld(item) for item in value]
+ if value is None:
+ data[property.path] = value
+ else:
77
+ if not isinstance(value, (tuple, list)):
78
+ value = [value]
79
+ data[property.path] = [value_to_jsonld(item) for item in value]
80
else:
81
data[property.path] = value_to_jsonld(value)
82
return {key: data[key] for key in sorted(data)}
0 commit comments