Checks if a URI matches a template
true if the URI matches the template, false otherwise
The URI to check