If a SPARQL endpoint uses custom datatypes for literals we should be able to inject custom classes and their transformations.
This means we need to allow someone to register the string form of a lambda that is used to convert the string from the SPARQL result into the desired java object.
e.g. assume a datatype money:USD
sparql ?myWallet ex:has "100000000"^^money:USD .
If a SPARQL endpoint uses custom datatypes for literals we should be able to inject custom classes and their transformations.
This means we need to allow someone to register the string form of a lambda that is used to convert the string from the SPARQL result into the desired java object.
e.g. assume a datatype money:USD
sparql ?myWallet ex:has "100000000"^^money:USD .
then we register a lambda form and return type.
and
Where $T is used by javapoet to import the right java class.
So that we can generate code like