jekyll-rdf 2.1.2.pre.develop.237 → 2.1.2.pre.develop.239

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
  SHA1:
3
- metadata.gz: c663e39783cea1ee1ca143591fef3b37e5e3c3f0
4
- data.tar.gz: 6a6c1bfc3c616a74a788351c8570c9884e569126
3
+ metadata.gz: 2fa45d478c4e911c89147a3433537bbf5cfa2aa1
4
+ data.tar.gz: 7f711974f1dceda1aa4bc0c16374a660342a58ed
5
5
  SHA512:
6
- metadata.gz: c8262dcba807a41f0a9666258bb3a36e775c50ec7b95bc57614d2528a9f4051954fe8eff338ca2e46976c7b9a47bd6544f61619d05c405aedaf163e618f17c67
7
- data.tar.gz: 50258de60eb3ed496b5e3cfcdb441ed83ad42d871d83f72b4398be9ab51719f9e55ca25b51336a7d99431188e9e1c7222e1cff251c4ce60550d8801ef9dba79a
6
+ metadata.gz: 3d34b2ea37331d4b12c3433a4ec9a49ac99609d16742454bdc56a1a2fd21599c563a991bc9d04111cf66c1bb18637f9379c3193849388c0c564f8626b7a2bb18
7
+ data.tar.gz: a76edd9428343db357252b1df53c45ff1f152f2573703e67b7622d490ef531cfb3e6564f7f9bf5b013346feddc6b00a6e8cdbdf1442dfea1cb6213e6f81ec93d
@@ -41,11 +41,6 @@ module Jekyll #:nodoc:
41
41
  #
42
42
  attr_accessor :page
43
43
 
44
- ##
45
- # The relative path to the location on the disk where this resource is rendered to
46
- #
47
- attr_reader :render_path
48
-
49
44
  ##
50
45
  #
51
46
  #
@@ -133,7 +128,14 @@ module Jekyll #:nodoc:
133
128
  # Return the URL of the page representing this RdfResource
134
129
  #
135
130
  def page_url
136
- page ? page.url.chomp('index.html') : term.to_s
131
+ @page_url ||= generate_file_name(@site.config["url"], @site.config["baseurl"]).chomp('index.html').chomp('.html')
132
+ end
133
+
134
+ ##
135
+ # Return the path to the page representing this RdfResource
136
+ #
137
+ def render_path
138
+ @render_path ||= generate_file_name(@site.config["url"], @site.config["baseurl"])
137
139
  end
138
140
 
139
141
  ##
@@ -216,7 +218,7 @@ module Jekyll #:nodoc:
216
218
  begin
217
219
  uri = Addressable::URI.parse(term.to_s).to_hash
218
220
  file_name = "rdfsites/" # in this directory all external RDF sites are stored
219
- if (uri[:host] == domain_name)
221
+ if((uri[:host].eql? domain_name) || ("#{uri[:scheme]}://#{uri[:host]}".eql? domain_name))
220
222
  file_name = ""
221
223
  uri[:scheme] = nil
222
224
  uri[:host] = nil
@@ -259,6 +261,7 @@ module Jekyll #:nodoc:
259
261
  end
260
262
  file_name += 'index.html'
261
263
  @render_path = file_name
264
+ @page_url = file_name.chomp('index.html').chomp('.html')
262
265
  file_name
263
266
  end
264
267
  end
@@ -86,7 +86,7 @@ module Jekyll
86
86
  def self.build_term_drop(term, sparql, site)
87
87
  case term
88
88
  when RDF::URI, RDF::Node
89
- return RdfResource.new(term, sparql)
89
+ return RdfResource.new(term, sparql, site)
90
90
  when RDF::Literal
91
91
  return RdfLiteral.new(term, sparql)
92
92
  else
@@ -113,6 +113,10 @@ module Jekyll
113
113
  page = RdfPageData.new(site, site.source, resource, mapper, global_config)
114
114
  if(page.complete)
115
115
  site.pages << page
116
+ resource.add_necessities(site, page)
117
+ resource.subResources.each {|key, value|
118
+ value.add_necessities(site, page)
119
+ } unless resource.subResources.nil?
116
120
  end
117
121
  end
118
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2.pre.develop.237
4
+ version: 2.1.2.pre.develop.239
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elias Saalmann
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2017-08-04 00:00:00.000000000 Z
19
+ date: 2017-08-18 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: linkeddata