Module: Spread2RDF::Schema

Defined in:
lib/spread2rdf/schema/sheet.rb,
lib/spread2rdf/schema/column.rb,
lib/spread2rdf/schema/schema.rb,
lib/spread2rdf/schema/element.rb,
lib/spread2rdf/schema/sheet_dsl.rb,
lib/spread2rdf/schema/worksheet.rb,
lib/spread2rdf/schema/spreadsheet.rb,
lib/spread2rdf/schema/column_block.rb,
lib/spread2rdf/schema/spreadsheet_dsl.rb,
lib/spread2rdf/schema/resource_creation_schema.rb,
lib/spread2rdf/schema/statement_mapping_schema.rb

Defined Under Namespace

Modules: ResourceCreation, StatementMapping Classes: Column, ColumnBlock, Element, Sheet, Spreadsheet, Worksheet

Class Method Summary collapse

Class Method Details

.definition(*args, &block) ⇒ Object



4
5
6
# File 'lib/spread2rdf/schema/schema.rb', line 4

def definition(*args, &block)
  definitions << Spreadsheet.new(*args, &block)
end

.definitionsObject



8
9
10
# File 'lib/spread2rdf/schema/schema.rb', line 8

def definitions
  @@definitions ||= []
end

.execute(options = {}) ⇒ Object



12
13
14
# File 'lib/spread2rdf/schema/schema.rb', line 12

def execute(options = {})
  CLI.run options.merge(schema: definitions.first) unless CLI.running?
end