Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.29 KB

CONTRIBUTING.md

File metadata and controls

25 lines (15 loc) · 1.29 KB

File Structure

This file contains information about file structures and how the gem works.

analyzer.rb contains the main function analyze which calls functions from large_batches_analyzer.rb, total.rb and revision_analyzer.rb

large_batches_analyzer.rb handles large batches and builds the result containing the current_content, parent_content, model and comment.

revision_analyzer.rb calls all the analyzers based on if the revision is item/property/lexeme to analyze the differences between current and parent contents.

total.rb sums up the count of all the analyzed revisions.

revision_analyzer.rb calls claim_analyzer, alias_analyzer, label_analyzer, description_analyzer, sitelink_analyzer, comment_analyzer, lemma_analyzer, sense_analyzer, form_analyzer for analyzing the differences

claim_analyzer.rb calls reference_analyzer and qualifier_analyzer

form_analyzer.rb calls representation_analyzer and inside_claim_analyzer

sense_analyzer.rb calls gloss_analyzer and inside_claim_analyzer

Publication

To publish the gem:

  1. Change the versioning number in lib/wikidata/diff/analyzer/version.rb file
  2. Run gem build wikidata-diff-analyzer.gemspec
  3. Run gem push wikidata-diff-analyzer-{version number}.gem (RubyGems.org credentials required)