Skip to content

Commit

Permalink
Update basyx/aas/adapter/rdf/rdf_serialization.py
Browse files Browse the repository at this point in the history
Co-authored-by: s-heppner <[email protected]>
  • Loading branch information
JaFeKl and s-heppner authored Nov 5, 2024
1 parent e43d78d commit ac24a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basyx/aas/adapter/rdf/rdf_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def _extension_to_rdf(self, obj: model.Extension, parent: Union[URIRef, BNode])
if obj.value_type:
self.graph.add((extension, self.aas["Extension/valueType"], self.aas[f"DataTypeDefXsd/{model.datatypes.XSD_TYPE_NAMES[obj.value_type]}"]))
if obj.value:
self._value_to_rdf(obj.value, obj.value_type, extension, self.aas["Extension/value"])
# Todo: Figure out why mypy complains about this function call and not about others
self._value_to_rdf(obj.value, obj.value_type, extension, self.aas["Extension/value"]) # type: ignore
if len(obj.refers_to) > 0:
for reference in obj.refers_to:
self._reference_to_rdf(reference, extension, self.aas["Extension/refersTo"])
Expand Down

0 comments on commit ac24a9f

Please sign in to comment.