Module: RelatonW3c

Defined in:
lib/relaton_w3c.rb,
lib/relaton_w3c/hit.rb,
lib/relaton_w3c/util.rb,
lib/relaton_w3c/pubid.rb,
lib/relaton_w3c/version.rb,
lib/relaton_w3c/processor.rb,
lib/relaton_w3c/data_index.rb,
lib/relaton_w3c/xml_parser.rb,
lib/relaton_w3c/data_parser.rb,
lib/relaton_w3c/rdf_archive.rb,
lib/relaton_w3c/data_fetcher.rb,
lib/relaton_w3c/bibxml_parser.rb,
lib/relaton_w3c/document_type.rb,
lib/relaton_w3c/hash_converter.rb,
lib/relaton_w3c/hit_collection.rb,
lib/relaton_w3c/w3c_bibliography.rb,
lib/relaton_w3c/w3c_bibliographic_item.rb

Defined Under Namespace

Modules: BibXMLParser, HashConverter, Util Classes: DataFetcher, DataIndex, DataParser, DocumentType, Error, Hit, HitCollection, Processor, PubId, RDFArchive, W3cBibliographicItem, W3cBibliography, XMLParser

Constant Summary collapse

VERSION =
"1.20.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


20
21
22
23
24
25
# File 'lib/relaton_w3c.rb', line 20

def self.grammar_hash
  # gem_path = File.expand_path "..", __dir__
  # grammars_path = File.join gem_path, "grammars", "*"
  # grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
  Digest::MD5.hexdigest RelatonW3c::VERSION + RelatonBib::VERSION # grammars
end