class documentation

SRU endpoint for the Basis Wetten Bestand repository

See a description in https://www.overheid.nl/sites/default/files/wetten/Gebruikersdocumentatie%20BWB%20-%20Zoeken%20binnen%20het%20basiswettenbestand%20v1.3.1.pdf

Method __init__ No summary

Inherited from SRUBase:

Method explain Does an explain operation, Returns the XML
Method explain_parsed Does an explain operation, Returns a dict with some of the more interesting details.
Method num_records After you do a search_retrieve, this should be set to a number.
Method search_retrieve Fetches a range of results for a particular query. Returns each result record as a separate ElementTree object.
Method search_retrieve_many This function builds on search_retrieve() to "fetch _many_ results results in chunks", by calling search_retrieve() repeatedly.
Instance Variable base_url The base URL that other things add to; added from instantiation.
Instance Variable extra_query extra piece of query to add to the quiery you do late. This lets us representing subsets of larger repositories.
Instance Variable number_of_records the number of results reported in the last query we did. None before you do a query. CONSIDER: changing that.
Instance Variable sru_version hardcoded to "1.2"
Instance Variable verbose whether to print out things while we do them.
Instance Variable x_connection The x_connection attribute that some of these need; added from instantiation.
Method _url Combines the basic URL parts given to the constructor, and ensures there's a ? (so you know you can add &k=v) This can probably go into the constructor, when I know how much is constant across SRU URLs...
def __init__(self, verbose=False):
Parameters
verbosewhether to print out things while we do them.
base_urlThe base URL that other things add to. Basically everything up to the '?'
x_connectionan attribute that some of these need in the URL. Seems to be non-standard and required for these repos.
extra_queryis used to let us AND something into the query, and is intended to restrict to a subset of documents. This lets us representing subsets of larger repositories (somewhat related to x_connection).