Query Handler (indra_network_search.query_handler)

The QueryHandler’s job is to act as a middle layer between the network search functionalities and the REST API that receives queries.

class indra_network_search.query_handler.QueryHandler(rest_query, curation_cache=<indra_network_search.util.curation_cache.CurationCache object>)[source]

Maps queries from the REST API to a method of the IndraNetworkSearchAPI

The QueryHandler’s job is to act as a middle layer between the methods of the IndraNetworkSearchAPI and the REST API. It figures out which queries are eligible from the input query.

get_queries()[source]

Returns a dict of all eligible queries

Return type:

Dict[str, UIQuery]

Returns:

A dict containing the instances of the eligible Query classes as {query name: Query instance}