Sha256: 1128e3e33b9f3464e8a2d2f05925515f7877161e09b21c8c3fd24b208087aea6
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
module Iqvoc module SimilarTerms # TODO: make language constraints optional @@weightings = { 'Labeling::SKOS::PrefLabel' => 5, 'Labeling::SKOS::AltLabel' => 2, 'Labeling::SKOS::HiddenLabel' => 0, # SKOS-XL 'Labeling::SKOSXL::PrefLabel' => 5, 'Labeling::SKOSXL::AltLabel' => 2, 'Labeling::SKOSXL::HiddenLabel' => 0 } def self.register_weighting(klass_str, value) Mutex.new.synchronize do @@weightings[klass_str] = value end end def self.weightings @@weightings end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iqvoc_similar_terms-2.11.4 | lib/iqvoc/similar_terms.rb |
iqvoc_similar_terms-2.11.3 | lib/iqvoc/similar_terms.rb |