Skip to content

Commit 86c1893

Browse files
authored
Merge pull request #261 from Simaris/fix/resource_on_empty_dump
Fix: Render all resources if restrictions are empty
2 parents c2550b9 + f76145d commit 86c1893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll/rdf_main_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def generate(site)
7575
resources = []
7676
resources = resources + extract_resources(@config['restriction'], @config['include_blank'], sparql) unless @config['restriction'].nil?
7777
resources = resources + extract_list_resources(File.join(site.config['source'], @config['restriction_file'])) unless @config['restriction_file'].nil?
78-
resources = resources + extract_resources(nil, @config['include_blank'], sparql) if resources.length == 0 # subject + predicate + object should only be extracted if there is neither a restriction or restriction_file
78+
resources = resources + extract_resources(nil, @config['include_blank'], sparql) if @config['restriction'].nil? && @config['restriction_file'].nil? # subject + predicate + object should only be extracted if there is neither a restriction or restriction_file
7979
resources.uniq! unless @config['restriction'].nil? || @config['restriction_file'].nil?
8080
site.data['sparql'] = sparql
8181
site.data['resources'] = []

0 commit comments

Comments
 (0)