class documentation
class StatenGeneraalDigitaal(wetsuite.datacollect.sru.SRUBase):
SRU endpoint for Staten-Generaal Digitaal repository
Method | __init__ |
No summary |
Inherited from SRUBase
:
Method | explain |
Does an explain operation, Returns the XML |
Method | explain |
Does an explain operation, Returns a dict with some of the more interesting details. |
Method | num |
After you do a search_retrieve, this should be set to a number. |
Method | search |
Fetches a range of results for a particular query. Returns each result record as a separate ElementTree object. |
Method | search |
This function builds on search_retrieve() to "fetch _many_ results results in chunks", by calling search_retrieve() repeatedly. |
Instance Variable | base |
The base URL that other things add to; added from instantiation. |
Instance Variable | extra |
extra piece of query to add to the quiery you do late. This lets us representing subsets of larger repositories. |
Instance Variable | number |
the number of results reported in the last query we did. None before you do a query. CONSIDER: changing that. |
Instance Variable | sru |
hardcoded to "1.2" |
Instance Variable | verbose |
whether to print out things while we do them. |
Instance Variable | x |
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... |
Parameters | |
verbose | whether to print out things while we do them. |
base | The base URL that other things add to. Basically everything up to the '?' |
x | an attribute that some of these need in the URL. Seems to be non-standard and required for these repos. |
extra | is 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). |