app/services/rdf/deep_indexing_service.rb
def fetch_value(value)
    Rails.logger.info "Fetching #{value.rdf_subject} "\
                      "from the authorative source. (this is slow)"

    value.fetch(headers: { "Accept" => default_accept_header })
  rescue IOError, SocketError => e
    # IOError could result from a 500 error on the remote server
    # SocketError results if there is no server to connect to
    Rails.logger.error "Unable to fetch #{value.rdf_subject} "\
                       "from the authorative source.\n#{e.message}"
  end
# We're overiding the default indexer in order to index the RDF
# labels. In order for this to be called, you must specify at least
# one default indexer on the property.
#
# @param [Hash] solr_doc
# @param [String] solr_field_key
# @param [Hash] field_info
# @param [ActiveTriples::Resource, String] val
We're overiding the default indexer in order to index the RDF
labels. In order for this to be called, you must specify at least
one default indexer on the property.
We ' re overiding the default indexer in order to index the RDF labels . In order for this to be called you must specify at least one default indexer on the property .
def fetch_value(value)
    Rails.logger.info "Fetching #{value.rdf_subject} "\
                      "from the authorative source. (this is slow)"
    value.fetch(headers: { "Accept" => default_accept_header })
  rescue IOError, SocketError => e
    Rails.logger.error "Unable to fetch #{value.rdf_subject} "\
                       "from the authorative source.\n#{e.message}"
  end
def fetch_value ( value ) Rails . logger . info "Fetching #{value.rdf_subject} " "from the authorative source. (this is slow)" value . fetch ( headers : { "Accept" => default_accept_header } ) rescue IOError , SocketError => e Rails . logger . error "Unable to fetch #{value.rdf_subject} " "from the authorative source.\n#{e.message}" end
We're overiding the default indexer in order to index the RDF
labels.
We ' re overiding the default indexer in order to index the RDF labels .
# IOError could result from a 500 error on the remote server # SocketError results if there is no server to connect to
value
None