Calculating distances on test dataset.
Using shortened URIs.