fix Virtuoso blank node treatment & refactoring
fixed distance measurement bugfix