You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at the moment the Infomodel does not overload the toString method and I would like to propose the toString method to return the same output as the toRdf method.
The output of toString at the moment look quite similiar to the output of toRdf, which leads to rather hard to spot errors.
Also it would make it possible to drop the toRdf in some cases (e.g. when creating a HttpResponse in a SpringBoot controller where a Infomodel Object is returned as body), where the toString is automatically called.
This would make the usage easier and safer.
The text was updated successfully, but these errors were encountered:
brianjahnke
changed the title
Feature Request: overload toString
Feature Request: Overload toString
May 20, 2021
Hi,
at the moment the Infomodel does not overload the toString method and I would like to propose the
toString
method to return the same output as thetoRdf
method.The output of
toString
at the moment look quite similiar to the output oftoRdf
, which leads to rather hard to spot errors.Also it would make it possible to drop the
toRdf
in some cases (e.g. when creating a HttpResponse in a SpringBoot controller where a Infomodel Object is returned as body), where thetoString
is automatically called.This would make the usage easier and safer.
The text was updated successfully, but these errors were encountered: