ttl2html 0.2.2 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7643ba45c99840e200623a855e1e9c562527710f7a44ba97913f926f35fbdf61
4
- data.tar.gz: 594c56eb0b9e3947e0a72d061aeae1480c39b445811ca9eadb3a88ec33bc8b21
3
+ metadata.gz: 6d06692123b0db0ee6e1a41afff18a53f0d59b1544f42bb109d18d7d67f88623
4
+ data.tar.gz: '059e27c24ed7719dbbaa23560f8bc98638a0d23228019bccf1aa5d3ffb5b40d4'
5
5
  SHA512:
6
- metadata.gz: 5399c051d5fc3d8fe5cc09f588fd71d91abbf9ddab91e3ab130f426698c8b7d0052e1f15d3353e51e733186673317dc0faa2c19fbf3ed3fe118341bd2ec1fdd5
7
- data.tar.gz: 2a01ae280013cac58d7ab6e87ee296db1f4701bf21dfff88e6bb3d4d05fe4b7374d562f41af9495bde4d2915f7dcc3c4d0ea4d473739ad2d731e96a81a88fbed
6
+ metadata.gz: d920ac982ac47703c360723885557dcdbf7f614972291fcb51758cb23110fcbb660da3e02c3563003534de41c8a9997edc48ea332109a443bc355f8b9a18536f
7
+ data.tar.gz: 5c36bf1f4d6b83466d8a5769330cae1461b973ce3a91d0b38fce4d52168d7ac575e9775e5ba6bb7a266e85dbd89d9e79b3ca53facac50fdca3a335eaf2a7e23c
@@ -7,5 +7,6 @@ if ARGV.size == 0
7
7
  exit
8
8
  end
9
9
 
10
- turtle = XLSX2Shape.xlsx2shape(ARGV[0])
10
+ include XLSX2Shape
11
+ turtle = xlsx2shape(ARGV[0])
11
12
  puts turtle
@@ -126,6 +126,8 @@ module TTL2HTML
126
126
  param[:title] = template.get_title(v)
127
127
  if @data.keys.find{|e| e.start_with?(uri + "/") }
128
128
  file = uri + "/index.html"
129
+ elsif uri.end_with?("/")
130
+ file = uri + "index.html"
129
131
  else
130
132
  file = uri + ".html"
131
133
  end
@@ -150,7 +152,7 @@ module TTL2HTML
150
152
  template = Template.new("index.html.erb", @config)
151
153
  param = @config.dup
152
154
  param[:data_global] = @data
153
- subjects.each do |subject|
155
+ subjects.sort.each do |subject|
154
156
  param[:index_data] ||= []
155
157
  param[:index_data] << subject.to_s
156
158
  end
@@ -128,7 +128,7 @@ module TTL2HTML
128
128
  return get_language_literal(data[@param[:title_property]])
129
129
  end
130
130
  %w(
131
- https://www.w3.org/TR/rdf-schema#label
131
+ http://www.w3.org/2000/01/rdf-schema#label
132
132
  http://purl.org/dc/terms/title
133
133
  http://purl.org/dc/elements/1.1/title
134
134
  http://schema.org/name
@@ -1 +1 @@
1
- TTL2HTML::VERSION = "0.2.2"
1
+ TTL2HTML::VERSION = "0.2.7"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttl2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masao Takaku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-21 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri