lib/browser_web_data_entity_sumarization/entity_sumarization_statistics.rb
###
# The method helps to recollect relations by already generated result files.
#
# @param [Array<String>, String] entity_types Types from http://mappings.dbpedia.org/server/ontology/classes/
# @param [Fixnum] count Count of best ranked resources
The method helps to recollect relations by already generated result files.
The method helps to recollect relations by already generated result files .
def refresh_statistics_in_files(entity_types, count = 10)
        resources = get_best_ranked_resources(entity_types, count)
        resources = keep_loaded(resources)
        resources.each { |resource_uri, resource_info|
          puts "_____ #{resource_uri} _____" if @console_output
          update_nif_file_properties(resource_uri, resource_info[:type]) { |link|
            get_predicates_by_link(resource_uri, link, resource_info[:type])
          }
        }
      end
def refresh_statistics_in_files ( entity_types , count = 10 ) resources = get_best_ranked_resources ( entity_types , count ) resources = keep_loaded ( resources ) resources . each { | resource_uri , resource_info | puts "_____ #{resource_uri} _____" if @console_output update_nif_file_properties ( resource_uri , resource_info [ :type ] ) { | link | get_predicates_by_link ( resource_uri , link , resource_info [ :type ] ) } } end
The method helps to recollect relations by already generated result files.
The method helps to recollect relations by already generated result files .
entity_types
<not_specific>
count
<not_specific>
<not_specific>
count Count of best ranked resources
count Count of best ranked resources