lib/browser_web_data_entity_sumarization/entity_sumarization_statistics.rb
###
# The method find resource links in given nif file dataset.
#
# @param [Hash] params
# @option params [Array<String>, String] :entity_types Types from http://mappings.dbpedia.org/server/ontology/classes/
# @option params [Fixnum] :entity_count Best ranked resources by every entity type.
# @option params [FalseClass, TruesClass] :demand_reload
# @option params [FalseClass, TruesClass] :identify_identical_predicates
The method find resource links in given nif file dataset.
The method find resource links in given nif file dataset .
def create_complete_knowledge_base(params)
        params[:entity_types] = [params[:entity_types]] unless params[:entity_types].is_a?(Array)
        generate_statistics_from_nif(params[:entity_types], params[:entity_count], params[:demand_reload])
        params[:entity_types].each { |type|
          generate_literal_statistics(type)
        }
        params[:entity_types].each { |type|
          generate_knowledge_base_for_entity(type, params[:identify_identical_predicates])
        }
      end
def create_complete_knowledge_base ( params ) params [ :entity_types ] = [ params [ :entity_types ] ] unless params [ :entity_types ] . is_a? ( Array ) generate_statistics_from_nif ( params [ :entity_types ] , params [ :entity_count ] , params [ :demand_reload ] ) params [ :entity_types ] . each { | type | generate_literal_statistics ( type ) } params [ :entity_types ] . each { | type | generate_knowledge_base_for_entity ( type , params [ :identify_identical_predicates ] ) } end
The method find resource links in given nif file dataset.
The method find resource links in given nif file dataset .
params
None
<not_specific>
None