jekyll-rdf 3.1.1.pre.develop.743 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/drops/rdf_resource.rb +1 -1
- data/lib/jekyll/drops/rdf_resource_class.rb +1 -1
- data/lib/jekyll/drops/rdf_term.rb +1 -1
- data/lib/jekyll/helper/rdf_class_extraction.rb +8 -4
- data/lib/jekyll/helper/rdf_general_helper.rb +1 -1
- data/lib/jekyll/helper/rdf_generator_helper.rb +4 -4
- data/lib/jekyll/helper/rdf_prefix_helper.rb +1 -1
- data/lib/jekyll/rdf_main_generator.rb +1 -1
- metadata +56 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ebb04c650ce741adcd71e5ce45fa25e98f1f5ff72a9c525825ee6493ff1f9d
|
4
|
+
data.tar.gz: 0dcc62184c6ec4f2bafe67e02373abe4d605e3eb4d1f7df60e4ca66980d5cebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff5c1ce99fd94ed8d7fca8adb9651800045daa36ca5c6f214a24d7b01ac5db971f8fcf0e3a3baf72d2941d5a6038e4464e1c73a6cc72b935dd83767f278a93e8
|
7
|
+
data.tar.gz: b4087456e61fcaa8d8b6dcee6044804c08a5ea9223ab879ac522a695c08d18f7f0b5dc625d9962ea54aadeef324b6a9b95b6366c80625e1b20c8e2a4be47903b
|
@@ -102,11 +102,15 @@ module Jekyll
|
|
102
102
|
end
|
103
103
|
|
104
104
|
##
|
105
|
+
# Check at the end of the search for direct inheritance on highest level.
|
105
106
|
# Returns the most specific class resource from +class_list+ based on
|
106
107
|
# +current_best+.
|
107
|
-
# +resource+ is the original input of request_class_template.
|
108
108
|
#
|
109
|
-
|
109
|
+
# +class_list+ is the list of clases that the +resource+ is assigned to.
|
110
|
+
# +resource+ is the original input of request_class_template resp. the
|
111
|
+
# resource on which to decide.
|
112
|
+
#
|
113
|
+
def find_highlevel_inheritance current_best, class_list, resource
|
110
114
|
class_list.each{|resource|
|
111
115
|
resource.find_direct_superclasses.each{|uri|
|
112
116
|
@classResources[uri] ||= Jekyll::JekyllRdf::Drops::RdfResourceClass.new(RDF::URI(uri))
|
@@ -142,8 +146,8 @@ module Jekyll
|
|
142
146
|
@consistence[hash_str].push(classRes)
|
143
147
|
@consistence[hash_str].push([])
|
144
148
|
end if @consistence[hash_str].nil?
|
145
|
-
|
146
|
-
|
149
|
+
# using a hash ensures that a warning is printed only once for each combination of templates and for each resource at most once
|
150
|
+
@consistence[hash_str][1].push(resource)
|
147
151
|
@consistence[hash_str][0]
|
148
152
|
end
|
149
153
|
|
@@ -3,7 +3,7 @@ module Jekyll
|
|
3
3
|
module Helper
|
4
4
|
module RdfGeneratorHelper
|
5
5
|
private
|
6
|
-
def prepare_pages
|
6
|
+
def prepare_pages(site, mapper)
|
7
7
|
Jekyll::Page.prepend Jekyll::JekyllRdf::Helper::RdfPageHelper
|
8
8
|
@pageResources.each{|uri, entry|
|
9
9
|
resource = entry.delete('./')
|
@@ -16,7 +16,7 @@ module Jekyll
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
-
def parse_resources
|
19
|
+
def parse_resources(resources)
|
20
20
|
@pageResources={};
|
21
21
|
@blanknodes=[]
|
22
22
|
resources.each do |uri|
|
@@ -45,10 +45,10 @@ module Jekyll
|
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
|
-
def load_config
|
48
|
+
def load_config(site)
|
49
49
|
begin
|
50
50
|
@config = site.config.fetch('jekyll_rdf')
|
51
|
-
rescue KeyError
|
51
|
+
rescue KeyError
|
52
52
|
Jekyll.logger.error("You've included Jekyll-RDF, but it is not configured. Aborting the jekyll-rdf plugin.")
|
53
53
|
return false
|
54
54
|
end
|
@@ -33,7 +33,7 @@ module Jekyll
|
|
33
33
|
# loads the prefix data passed in the layout yaml-frontmatter or in _config.yml into page.data["rdf_prefixes"] and page.data["rdf_prefix_map"]
|
34
34
|
def load_prefixes(path, prefHolder)
|
35
35
|
Jekyll::JekyllRdf::Helper::RdfHelper.load_prefixes(path, prefHolder)
|
36
|
-
rescue Errno::ENOENT
|
36
|
+
rescue Errno::ENOENT
|
37
37
|
Jekyll.logger.error("--> context resource: #{@resource} template: #{@template}") unless self.data["rdf"].nil?
|
38
38
|
raise if Jekyll.env.eql? "development"
|
39
39
|
end
|
@@ -58,7 +58,7 @@ module Jekyll
|
|
58
58
|
if @config['remote']['default_graph'].nil?
|
59
59
|
sparql = SPARQL::Client.new(graph)
|
60
60
|
else
|
61
|
-
sparql = SPARQL::Client.new(graph,
|
61
|
+
sparql = SPARQL::Client.new(graph, graph: @config['remote']['default_graph'])
|
62
62
|
end
|
63
63
|
elsif(!@config['path'].nil?)
|
64
64
|
sparql = SPARQL::Client.new(RDF::Graph.load( File.join( site.config['source'], @config['path'])))
|
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: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elias Saalmann
|
@@ -15,59 +15,51 @@ authors:
|
|
15
15
|
- Natanael Arndt
|
16
16
|
- Simon Bin
|
17
17
|
- Jan Beckert
|
18
|
-
autorequire:
|
18
|
+
autorequire:
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
|
-
date:
|
21
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
22
22
|
dependencies:
|
23
|
-
- !ruby/object:Gem::Dependency
|
24
|
-
name: net-http-persistent
|
25
|
-
requirement: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.9'
|
30
|
-
type: :runtime
|
31
|
-
prerelease: false
|
32
|
-
version_requirements: !ruby/object:Gem::Requirement
|
33
|
-
requirements:
|
34
|
-
- - "~>"
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '2.9'
|
37
23
|
- !ruby/object:Gem::Dependency
|
38
24
|
name: linkeddata
|
39
25
|
requirement: !ruby/object:Gem::Requirement
|
40
26
|
requirements:
|
41
27
|
- - "~>"
|
42
28
|
- !ruby/object:Gem::Version
|
43
|
-
version: '2
|
29
|
+
version: '3.2'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.0
|
44
33
|
type: :runtime
|
45
34
|
prerelease: false
|
46
35
|
version_requirements: !ruby/object:Gem::Requirement
|
47
36
|
requirements:
|
48
37
|
- - "~>"
|
49
38
|
- !ruby/object:Gem::Version
|
50
|
-
version: '2
|
39
|
+
version: '3.2'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.2.0
|
51
43
|
- !ruby/object:Gem::Dependency
|
52
44
|
name: sparql-client
|
53
45
|
requirement: !ruby/object:Gem::Requirement
|
54
46
|
requirements:
|
55
47
|
- - "~>"
|
56
48
|
- !ruby/object:Gem::Version
|
57
|
-
version: '3.
|
49
|
+
version: '3.2'
|
58
50
|
- - ">="
|
59
51
|
- !ruby/object:Gem::Version
|
60
|
-
version: 3.0
|
52
|
+
version: 3.2.0
|
61
53
|
type: :runtime
|
62
54
|
prerelease: false
|
63
55
|
version_requirements: !ruby/object:Gem::Requirement
|
64
56
|
requirements:
|
65
57
|
- - "~>"
|
66
58
|
- !ruby/object:Gem::Version
|
67
|
-
version: '3.
|
59
|
+
version: '3.2'
|
68
60
|
- - ">="
|
69
61
|
- !ruby/object:Gem::Version
|
70
|
-
version: 3.0
|
62
|
+
version: 3.2.0
|
71
63
|
- !ruby/object:Gem::Dependency
|
72
64
|
name: jekyll
|
73
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,14 +80,14 @@ dependencies:
|
|
88
80
|
requirements:
|
89
81
|
- - "~>"
|
90
82
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
83
|
+
version: '13.0'
|
92
84
|
type: :development
|
93
85
|
prerelease: false
|
94
86
|
version_requirements: !ruby/object:Gem::Requirement
|
95
87
|
requirements:
|
96
88
|
- - "~>"
|
97
89
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
90
|
+
version: '13.0'
|
99
91
|
- !ruby/object:Gem::Dependency
|
100
92
|
name: rest-client
|
101
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,6 +178,26 @@ dependencies:
|
|
186
178
|
- - "~>"
|
187
179
|
- !ruby/object:Gem::Version
|
188
180
|
version: '3.4'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rdoc
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '6.2'
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 6.2.1
|
191
|
+
type: :development
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '6.2'
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 6.2.1
|
189
201
|
- !ruby/object:Gem::Dependency
|
190
202
|
name: jekyll-theme-jod
|
191
203
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,6 +212,20 @@ dependencies:
|
|
200
212
|
- - "~>"
|
201
213
|
- !ruby/object:Gem::Version
|
202
214
|
version: 0.1.5
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: kramdown-parser-gfm
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '1.1'
|
222
|
+
type: :development
|
223
|
+
prerelease: false
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - "~>"
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '1.1'
|
203
229
|
description: Generate static sites with Jekyll based on RDF data
|
204
230
|
email: arndt@informatik.uni-leipzig.de
|
205
231
|
executables: []
|
@@ -241,7 +267,7 @@ homepage: https://github.com/AKSW/jekyll-rdf
|
|
241
267
|
licenses:
|
242
268
|
- MIT
|
243
269
|
metadata: {}
|
244
|
-
post_install_message:
|
270
|
+
post_install_message:
|
245
271
|
rdoc_options: []
|
246
272
|
require_paths:
|
247
273
|
- lib
|
@@ -252,13 +278,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
278
|
version: '0'
|
253
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
280
|
requirements:
|
255
|
-
- - "
|
281
|
+
- - ">="
|
256
282
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
283
|
+
version: '0'
|
258
284
|
requirements: []
|
259
|
-
|
260
|
-
|
261
|
-
signing_key:
|
285
|
+
rubygems_version: 3.3.5
|
286
|
+
signing_key:
|
262
287
|
specification_version: 4
|
263
288
|
summary: Hypertext Publication System for Templated Resource Rendering
|
264
289
|
test_files: []
|