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.
Files changed (45) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile.ocra +6 -0
  3. data/VERSION +1 -1
  4. data/bin/spread2rdf +1 -1
  5. data/lib/spread2rdf/attributes.rb +1 -0
  6. data/lib/spread2rdf/cli.rb +128 -34
  7. data/lib/spread2rdf/coord.rb +49 -0
  8. data/lib/spread2rdf/mapping/cell.rb +105 -0
  9. data/lib/spread2rdf/mapping/column.rb +63 -0
  10. data/lib/spread2rdf/mapping/column_block.rb +23 -0
  11. data/lib/spread2rdf/mapping/default_cell_mappings.rb +26 -0
  12. data/lib/spread2rdf/mapping/element.rb +64 -0
  13. data/lib/spread2rdf/mapping/resource.rb +95 -0
  14. data/lib/spread2rdf/mapping/sheet.rb +80 -0
  15. data/lib/spread2rdf/mapping/spreadsheet.rb +56 -0
  16. data/lib/spread2rdf/mapping/statement.rb +22 -0
  17. data/lib/spread2rdf/mapping/worksheet.rb +12 -0
  18. data/lib/spread2rdf/namespace.rb +6 -2
  19. data/lib/spread2rdf/roo_helper.rb +45 -0
  20. data/lib/spread2rdf/schema/column.rb +37 -0
  21. data/lib/spread2rdf/{spreadsheet/sub_sheet.rb → schema/column_block.rb} +3 -2
  22. data/lib/spread2rdf/{spreadsheet → schema}/element.rb +12 -16
  23. data/lib/spread2rdf/schema/schema.rb +19 -0
  24. data/lib/spread2rdf/schema/sheet.rb +87 -0
  25. data/lib/spread2rdf/schema/sheet_dsl.rb +54 -0
  26. data/lib/spread2rdf/schema/spreadsheet.rb +49 -0
  27. data/lib/spread2rdf/schema/spreadsheet_dsl.rb +42 -0
  28. data/lib/spread2rdf/schema/statement_mapping_schema.rb +26 -0
  29. data/lib/spread2rdf/schema/worksheet.rb +47 -0
  30. data/lib/spread2rdf.rb +34 -2
  31. data/ontologies/unit-v1.1.ttl +8330 -0
  32. data/spread2rdf.gemspec +4 -2
  33. metadata +50 -26
  34. data/lib/spread2rdf/helper.rb +0 -14
  35. data/lib/spread2rdf/spreadsheet/column.rb +0 -48
  36. data/lib/spread2rdf/spreadsheet/column_mapping_context.rb +0 -156
  37. data/lib/spread2rdf/spreadsheet/coord.rb +0 -51
  38. data/lib/spread2rdf/spreadsheet/mapping_context.rb +0 -67
  39. data/lib/spread2rdf/spreadsheet/mapping_dsl.rb +0 -23
  40. data/lib/spread2rdf/spreadsheet/sheet.rb +0 -128
  41. data/lib/spread2rdf/spreadsheet/sheet_dsl.rb +0 -34
  42. data/lib/spread2rdf/spreadsheet/sheet_mapping_context.rb +0 -90
  43. data/lib/spread2rdf/spreadsheet/sub_sheet_mapping_context.rb +0 -55
  44. data/lib/spread2rdf/spreadsheet/worksheet.rb +0 -49
  45. 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/helper'
16
+ require 'spread2rdf/coord'
17
17
  require 'spread2rdf/namespace'
18
- require 'spread2rdf/spreadsheet'
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