Added to getEntityFromURI to only check the uri of non BNodes