semantique.processor.core.QueryProcessor.call_handler

semantique.processor.core.QueryProcessor.call_handler#

QueryProcessor.call_handler(block, key='type')[source]#

Call the handler for a specific building block.

Parameters:
  • block (dict) – Textual representation of a building block.

  • key (str) – The key that identifies the handler to be called.

Returns:

xarray.DataArray or Collection – The processed building block.

Raises:

exceptions.InvalidBuildingBlockError – If a handler for the provided building block cannot be found.