Check URI to match internal ids