biotite.database.rcsb.CompositeQuery

class biotite.database.rcsb.CompositeQuery(queries, operator)[source]

Bases: Query

A group query node for the RCSB search API.

A composite query is an combination of other queries, combined either with the ‘and’ or ‘or’ operator. Usually, a CompositeQuery will not be created by calling its constructor, but by combining queries using the | or & operator.

Parameters:
queriesiterable object of Query

The queries to be combined.

operator{‘or’, ‘and’}

The type of combination.

get_content()

A dictionary representation of the query. This dictionary is the content of the 'query' key in the JSON query.

Returns:
contentdict

The dictionary representation of the query.