Hi Oliver,
See my other reply regarding the sql.functions
virtual graph option.
Also, mapping to the result of functions can lead to performance problems depending on how you query the virtual graph. This is detailed here and here. If this is necessary, you can consider caching or materializing the data.
-Paul