def linked_data(uri, ld)
      uri = linked_data_path(uri)
      return nil unless uri && ld
      # The URI used to retrieve the data may be the canonical URI or a
      # tenancy aliases. We ignore the host part of the URIs and match just
      # the path
      ld.each { |u, data| return data if uri == linked_data_path(u) }
      # No match was found
      nil
    end
def linked_data(uri, ld)
      uri = linked_data_path(uri)
      return nil unless uri && ld
      # The URI used to retrieve the data may be the canonical URI or a
      # tenancy aliases. We ignore the host part of the URIs and match just
      # the path
      ld.each { |u, data| return data if uri == linked_data_path(u) }
      # No match was found
      nil
    end
Returns the data for a URI from a parsed linked data API response
 which may contain multiple objects
 @param uri [String] the URI of the object
 @param ld [Hash] the parsed JSON data from the Aspire linked data API
 @return [Hash] the parsed JSON data for the URI