Skip to main content
Version: 0.0.6 (stable)

agrag.schema.shorthand

Readers that turn every accepted notation into canonical dicts.

Classes:

  • Draft – A type read from a source, with the path it was read from.

Functions:

  • check_keys – Record an issue for every key outside allowed.
  • describe – Name the type of a value for an error message.
  • join_path – Append a key to a path.
  • parse_pattern – Read Source->Target text into [source, target] pairs.
  • parse_relation – Read Source-LABEL->Target text.
  • read_entities – Read the entities value in any accepted form.
  • read_relations – Read the relations value in any accepted form.
  • read_text – Return a stripped non-empty string, or record an issue and return None.
  • split_list – Split a native list into entity labels and relations.

Attributes: