Version: latest
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->Targettext into[source, target]pairs. - parse_relation – Read
Source-LABEL->Targettext. - read_entities – Read the
entitiesvalue in any accepted form. - read_relations – Read the
relationsvalue 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: