SingleQuery#

class biotite.database.rcsb.SingleQuery[source]#

Bases: Query

A terminal query node for the RCSB search API.

Multiple SingleQuery objects can be combined to CompositeQuery`objects using the ``|` and & operators.

This is the abstract base class for all queries that are terminal nodes.

abstract get_content()#

Get the query content, i.e. the data belonging to the 'query' attribute in the RCSB search API.

This content is converted into JSON by the search() and count() functions.

Returns:
contentdict

The content dictionary for the 'query' attributes.