Module: Jekyll::JekyllRdf::Helper::RdfPrefixHelper

Included in:
RdfPageHelper
Defined in:
lib/jekyll/helper/rdf_prefix_helper.rb

Overview

Internal module to hold support for functionalities like submitting sparql queries

Instance Method Summary collapse

Instance Method Details

#load_prefixes(path, prefHolder) ⇒ Object

loads the prefix data passed in the layout yaml-frontmatter or in _config.yml into page.data and page.data



34
35
36
37
38
39
# File 'lib/jekyll/helper/rdf_prefix_helper.rb', line 34

def load_prefixes(path, prefHolder)
  Jekyll::JekyllRdf::Helper::RdfHelper.load_prefixes(path, prefHolder)
rescue Errno::ENOENT
  Jekyll.logger.error("--> context resource: #{@resource}  template: #{@template}") unless self.data["rdf"].nil?
  raise if Jekyll.env.eql? "development"
end