class documentation
class OfficielePublicaties(wetsuite.datacollect.sru.SRUBase):
Constructor: OfficielePublicaties(verbose)
SRU endpoint for the OfficielePublicaties repository
| Method | __init__ |
No summary |
Inherited from SRUBase:
| Method | explain |
Does an explain operation, Returns the XML |
| Method | explain |
Does an explain operation, fishes out some interesting details, returns that as a dict. |
| Method | num |
Returns the number of records listed in the last search's results. |
| Method | search |
Fetches a small range of result records for the given query. |
| Method | search |
Fetch _many_ results results, in chunks, by calling search_retrieve() repeatedly, in part because there is typically a server-side limit on how many you can fetch at once. |
| 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). |