Resource URI to dataset matching query fix