spreadskos 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spreadskos.rb +4 -5
- metadata +1 -1
data/lib/spreadskos.rb
CHANGED
@@ -40,7 +40,8 @@ class Spreadskos
|
|
40
40
|
# Load SKOS itself to be able to render labels etc later.
|
41
41
|
def setup_skos
|
42
42
|
|
43
|
-
skosfile = File.dirname(__FILE__) + ::File::SEPARATOR + "skos.rdf"
|
43
|
+
#skosfile = File.dirname(__FILE__) + ::File::SEPARATOR + "skos.rdf"
|
44
|
+
skosfile = File.expand_path("skos.rdf", File.dirname(__FILE__))
|
44
45
|
@log.info("Load SKOS itself to be able to render labels etc later. File: " + skosfile)
|
45
46
|
|
46
47
|
RDF::Reader.open(skosfile) do |reader|
|
@@ -98,7 +99,7 @@ class Spreadskos
|
|
98
99
|
when "Contributors:"
|
99
100
|
contributors = info_sheet.cell(row_no, 2).strip.split(",")
|
100
101
|
else
|
101
|
-
|
102
|
+
@log.info("Unknown property: " + info_sheet.cell(row_no, 1))
|
102
103
|
end
|
103
104
|
end
|
104
105
|
|
@@ -258,9 +259,7 @@ class Spreadskos
|
|
258
259
|
|
259
260
|
def write_graph(filename="result.rdf", format=:rdfxml)
|
260
261
|
|
261
|
-
|
262
|
-
|
263
|
-
File.open(filename, 'w') { |file|
|
262
|
+
File.open(filename, 'w:UTF-8') { |file|
|
264
263
|
file.write(@graph.dump(format))
|
265
264
|
}
|
266
265
|
|