biotite.database.rcsb.CompositeQuery

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

Bases: biotite.database.rcsb.search.Query

A representation of an composite XML query.

A composite query is an accumulation of other queries, combined either with an ‘and’ or ‘or’ operator.

A combination of CompositeQuery instances is not possible.

Parameters:
operator: str, ‘or’ or ‘and’

The combination operator.

queries : iterable object of SimpleQuery

The queries to be combined.

get_query()

Get the root XML Element representing the query.

Returns:
query : Element

The root element of the query.