lib/browser_web_data_entity_sumarization/entity_sumarization_predicates_similarity.rb
###
# The method helps to automatic identify identical properties
# that means DBpedia property versus ontology predicates.
#
# @param [Array<String>] values
#
# @return [TrueClass, FalseClass] resuls
The method helps to automatic identify identical properties
that means DBpedia property versus ontology predicates.
The method helps to automatic identify identical properties that means DBpedia property versus ontology predicates .
def is_identical_property_ontology?(values)
        group_key = PredicatesSimilarity.get_key(values)
        temp = values.map { |val| val.to_s.split('/').last }.uniq
        if temp.size == 1 && group_key['property/'] && group_key['ontology/']
          add_identical(values)
          true
        else
          false
        end
      end
def is_identical_property_ontology? ( values ) group_key = PredicatesSimilarity . get_key ( values ) temp = values . map { | val | val . to_s . split ( '/' ) . last } . uniq if temp . size == 1 && group_key [ 'property/' ] && group_key [ 'ontology/' ] add_identical ( values ) true else false end end
The method helps to automatic identify identical properties
that means DBpedia property versus ontology predicates.
The method helps to automatic identify identical properties that means DBpedia property versus ontology predicates .
None
TrueClass, FalseClass
values
<not_specific>
<not_specific>
None