Sha256: 3264f7fa9f097518a25011ed431129ade7c43d1604e909b0c595b91abf5333e8

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

module Spread2RDF
  module Mapping
    class ColumnBlock < Sheet
      include Statement

      def_delegators :parent, :subject, :row_range
      def_delegators :schema, :predicate

      def map
        super
        @resources.each do |resource|
          statements_to_object(resource.subject) unless resource.empty?
        end
        self
      end

      def objects
        @resources.map(&:subject)
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spread2rdf-0.1.7 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.6 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.5 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.4 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.3 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.2 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.1 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.1.0 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.0.2 lib/spread2rdf/mapping/column_block.rb
spread2rdf-0.0.1 lib/spread2rdf/mapping/column_block.rb