app/models/trait_set.rb
# TODO: I forget whether KnownUris can be excluded from the overview. Check. I
# don't think so (I think we rely on sort), so I haven't implemented that.
I forget whether KnownUris can be excluded from the overview. Check. I
don't think so (I think we rely on sort), so I haven't implemented that.
I forget whether KnownUris can be excluded from the overview . Check . I don ' t think so ( I think we rely on sort ) so I haven ' t implemented that .
def traits_overview
    populate
    uris = predicates[0..OverviewTraits.max_rows]
    overview = traits.select { |trait| uris.include?(trait.predicate_uri) &&
      ! trait.excluded? }.group_by(&:predicate_uri)
    overview.keys.each do |uri|
      overview[uri] = OverviewTraits.new(overview[uri])
    end
    overview
  end
def traits_overview populate uris = predicates [ 0 .. OverviewTraits . max_rows ] overview = traits . select { | trait | uris . include? ( trait . predicate_uri ) && ! trait . excluded? } . group_by ( & :predicate_uri ) overview . keys . each do | uri | overview [ uri ] = OverviewTraits . new ( overview [ uri ] ) end overview end
TODO: I forget whether KnownUris can be excluded from the overview.
TODO : I forget whether KnownUris can be excluded from the overview .