Don't use return if it's the last line in a method. I'd rewrite like so:
```ruby
def transform_type(value)
  RDF::URI.new(value).tap do |value|
      Resource.type_registry[value] = self
  end
end
```