ttl2html 0.2.1 → 0.2.6

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: 11d3e9f65c26b03aa9b49cee0175b091b61c976849627afe46c5c61a672a14c0
4
- data.tar.gz: b3e34b67a54c93a2c86fe5ddd0678c59ac4289d924b8dd17baa8b74f05bc86e9
3
+ metadata.gz: cb0589adeaf36033815a542a3bd97fc30d654957322d526783a5da6926e53e17
4
+ data.tar.gz: d11cb4f235afe13a7a0588c507eb619d421cd4eae9093fe62711e1523b4a1036
5
5
  SHA512:
6
- metadata.gz: 50bb8772289268c78c3d9015beea1840dd8937301917cff752b401b361e86a3ee9514d06a86d7d6aabb4a14bfa61bf7a1e583ab05f5a19e010ac3913edf25284
7
- data.tar.gz: 0f179ddaf87be9f28a8d94201027b73a1ce08bc43a62d5afa7cfc79c2933ea6a2383634e46d788b1c578bc97d2810fdd6940052907031a95fafc1524571a2dc3
6
+ metadata.gz: a1a16d48e2ac1a8eca8e3c16680c167f59cc2be30e97f6b7c14134e69d0d300267d3b81615b593f4e9ebff646f97478cc3184b8ad371305fa6a1a107670ee38e
7
+ data.tar.gz: 33bf46e85a244c921278400d1918064ec1b220429cbf57f4d113177f224a146b469e920079fa81dc508715cbf8957b03df1714753ac29dd26dba6234c032c48d
@@ -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.1"
1
+ TTL2HTML::VERSION = "0.2.6"
@@ -5,7 +5,7 @@ require "roo"
5
5
  module XLSX2Shape
6
6
  def xlsx2shape(filename)
7
7
  shapes = {}
8
- prefix = {}
8
+ prefix = { "sh:": "http://www.w3.org/ns/shacl#" }
9
9
  xlsx = Roo::Excelx.new(filename)
10
10
  xlsx.each_with_pagename do |name, sheet|
11
11
  if name =~ /\Aprefix\z/i
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.1
4
+ version: 0.2.6
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-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri