Skip to content

Initial Release with default UUID minter

Compare
Choose a tag to compare
@elrayle elrayle released this 25 Nov 14:58
· 18 commits to master since this release

Provide local name minter functionality that generates unique local names.

  • method generate_local_name:
    • Generate a random localname that combined with a class' base_uri does not already exist in registered triplestore.
    • Calls passed in block minter function, or default_minter if not passed in
  • default minter:
    • The default minter generates localname as UUID with optionally passed in prefix.
    • NOTE: UUID without a prefix can begin with an alpha or numeric character. Best practice recommends prefix is an alpha character to force local name to begin with an alpha character.
    • To provide a different default minter implementation, override ActiveTriples::LocalName::Minter.default_minter

See README for more information and examples.