protected function getIdFromValue(string $value)
{
try {
if ($item = $this->iriConverter->getItemFromIri($value, ['fetch_data' => false])) {
return $this->propertyAccessor->getValue($item, 'id');
}
} catch (InvalidArgumentException $e) {
// Do nothing, return the raw value
}
return $value;
}