Validate uri resource.