spread2rdf 0.0.1pre.1 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.ocra +6 -0
- data/VERSION +1 -1
- data/bin/spread2rdf +1 -1
- data/lib/spread2rdf/attributes.rb +1 -0
- data/lib/spread2rdf/cli.rb +128 -34
- data/lib/spread2rdf/coord.rb +49 -0
- data/lib/spread2rdf/mapping/cell.rb +105 -0
- data/lib/spread2rdf/mapping/column.rb +63 -0
- data/lib/spread2rdf/mapping/column_block.rb +23 -0
- data/lib/spread2rdf/mapping/default_cell_mappings.rb +26 -0
- data/lib/spread2rdf/mapping/element.rb +64 -0
- data/lib/spread2rdf/mapping/resource.rb +95 -0
- data/lib/spread2rdf/mapping/sheet.rb +80 -0
- data/lib/spread2rdf/mapping/spreadsheet.rb +56 -0
- data/lib/spread2rdf/mapping/statement.rb +22 -0
- data/lib/spread2rdf/mapping/worksheet.rb +12 -0
- data/lib/spread2rdf/namespace.rb +6 -2
- data/lib/spread2rdf/roo_helper.rb +45 -0
- data/lib/spread2rdf/schema/column.rb +37 -0
- data/lib/spread2rdf/{spreadsheet/sub_sheet.rb → schema/column_block.rb} +3 -2
- data/lib/spread2rdf/{spreadsheet → schema}/element.rb +12 -16
- data/lib/spread2rdf/schema/schema.rb +19 -0
- data/lib/spread2rdf/schema/sheet.rb +87 -0
- data/lib/spread2rdf/schema/sheet_dsl.rb +54 -0
- data/lib/spread2rdf/schema/spreadsheet.rb +49 -0
- data/lib/spread2rdf/schema/spreadsheet_dsl.rb +42 -0
- data/lib/spread2rdf/schema/statement_mapping_schema.rb +26 -0
- data/lib/spread2rdf/schema/worksheet.rb +47 -0
- data/lib/spread2rdf.rb +34 -2
- data/ontologies/unit-v1.1.ttl +8330 -0
- data/spread2rdf.gemspec +4 -2
- metadata +50 -26
- data/lib/spread2rdf/helper.rb +0 -14
- data/lib/spread2rdf/spreadsheet/column.rb +0 -48
- data/lib/spread2rdf/spreadsheet/column_mapping_context.rb +0 -156
- data/lib/spread2rdf/spreadsheet/coord.rb +0 -51
- data/lib/spread2rdf/spreadsheet/mapping_context.rb +0 -67
- data/lib/spread2rdf/spreadsheet/mapping_dsl.rb +0 -23
- data/lib/spread2rdf/spreadsheet/sheet.rb +0 -128
- data/lib/spread2rdf/spreadsheet/sheet_dsl.rb +0 -34
- data/lib/spread2rdf/spreadsheet/sheet_mapping_context.rb +0 -90
- data/lib/spread2rdf/spreadsheet/sub_sheet_mapping_context.rb +0 -55
- data/lib/spread2rdf/spreadsheet/worksheet.rb +0 -49
- data/lib/spread2rdf/spreadsheet.rb +0 -92
data/lib/spread2rdf.rb
CHANGED
@@ -13,11 +13,43 @@ require 'linkeddata'
|
|
13
13
|
|
14
14
|
require 'spread2rdf/attributes'
|
15
15
|
require 'spread2rdf/version'
|
16
|
-
require 'spread2rdf/
|
16
|
+
require 'spread2rdf/coord'
|
17
17
|
require 'spread2rdf/namespace'
|
18
|
-
require 'spread2rdf/
|
18
|
+
require 'spread2rdf/roo_helper'
|
19
|
+
|
20
|
+
require 'spread2rdf/schema/schema'
|
21
|
+
require 'spread2rdf/schema/statement_mapping_schema'
|
22
|
+
require 'spread2rdf/schema/element'
|
23
|
+
require 'spread2rdf/schema/spreadsheet'
|
24
|
+
require 'spread2rdf/schema/sheet'
|
25
|
+
require 'spread2rdf/schema/column_block'
|
26
|
+
require 'spread2rdf/schema/worksheet'
|
27
|
+
require 'spread2rdf/schema/column'
|
28
|
+
require 'spread2rdf/schema/sheet_dsl'
|
29
|
+
require 'spread2rdf/schema/spreadsheet_dsl'
|
30
|
+
|
31
|
+
require 'spread2rdf/mapping/element'
|
32
|
+
require 'spread2rdf/mapping/statement'
|
33
|
+
require 'spread2rdf/mapping/sheet'
|
34
|
+
require 'spread2rdf/mapping/spreadsheet'
|
35
|
+
require 'spread2rdf/mapping/worksheet'
|
36
|
+
require 'spread2rdf/mapping/column_block'
|
37
|
+
require 'spread2rdf/mapping/resource'
|
38
|
+
require 'spread2rdf/mapping/column'
|
39
|
+
require 'spread2rdf/mapping/cell'
|
40
|
+
|
41
|
+
require 'spread2rdf/mapping/default_cell_mappings'
|
42
|
+
|
43
|
+
|
19
44
|
require 'spread2rdf/cli'
|
20
45
|
|
21
46
|
module Spread2RDF
|
47
|
+
class << self
|
48
|
+
attr_accessor :debug_mode
|
49
|
+
end
|
50
|
+
|
51
|
+
ROOT = File.expand_path('../../', __FILE__)
|
52
|
+
ONTOLOGY_DIR = File.join(ROOT, 'ontologies')
|
53
|
+
|
22
54
|
end
|
23
55
|
|