Solution to the URI comparison problem.