Argonodes Helpers

argonodes.default_context module

Default context to be used when exporting Models in a JSON-LD format.

argonodes.helpers module

Multiple helpers and utils.

argonodes.helpers.flatten(traversal, keys_only=True) set | dict
Parameters
  • traversal – A given traversal, whether Node or Model.

  • keys_only – Whether only the keys are important or not.

Returns

Either a set of keys or a flatten dict.

argonodes.helpers.parse_path(path) list

Parse a JSON path into a list.

Parameters

path (str) – A JSON path.

Returns

Parsed JSON path.

Return type

list