edpop_explorer.readers package

Module contents

This package contains concrete subclasses of Reader.

class edpop_explorer.readers.BnFReader

Bases: SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/bnf')
DESCRIPTION: str | None = 'General catalogue of the French National Library'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/bnf/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

SHORT_NAME: str | None = 'Bibliothèque nationale de France (BnF)'

Short name of the corresponding catalogue, to be used in user interfaces.

marcxchange_prefix: str = 'info:lc/xmlns/marcxchange-v2:'
sru_url: str = 'http://catalogue.bnf.fr/api/SRU'

URL of the SRU API.

sru_version: str = '1.2'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.CERLThesaurusReader

Bases: SRUReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/cerlthesaurus')
CTAS_PREFIX = 'http://sru.cerl.org/ctas/dtd/1.1:'
DESCRIPTION: str | None = 'The CERL Thesaurus file contains forms of imprint places, imprint names, personal names and corporate names as found in material printed before the middle of the nineteenth century - including variant spellings, forms in Latin and other languages, and fictitious names.'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/cerlthesaurus/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'biographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'CERL Thesaurus'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_url: str = 'https://data.cerl.org/thesaurus/_sru'

URL of the SRU API.

sru_version: str = '1.2'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.DutchAlmanacsReader

Bases: DatabaseFileMixin, Reader

Dutch Almanacs database reader. Access with command ‘dutalm’.

ALLOW_EMPTY_QUERY = True

If True, it is possible to enter an empty query to fetch all records.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/dutch_almanacs')
DATABASE_FILENAME: str = 'biblio_dutchalmanacs.csv'

The filename (not the full path) under which the database is expected to be stored.

DATABASE_URL: str | None = 'https://dhstatic.hum.uu.nl/edpop/biblio_dutchalmanacs.csv'

The URL to download the database file from. If this attribute is None, automatically downloading the database file is not supported.

DESCRIPTION: str | None = 'Bibliography of Dutch Almanacs 1570-1710'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

FETCH_ALL_AT_ONCE = True

True if the reader is configured to fetch all records at once, even if the user only needs a subset.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/dutch_almanacs/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Dutch Almanacs'

Short name of the corresponding catalogue, to be used in user interfaces.

fetch_range(range_to_fetch: range) range

Fetch a specific range of records. After fetching, the records are available in the records attribute and the number_of_results attribute will be available. If not all records of the specified range exist, only the records that exist will be fetched.

Parameters:

range_to_fetch – The range of records to fetch. step values of ranges other than 1 are not supported and may be ignored.

Returns:

The range of record indexes that has actually been fetched.

classmethod get_by_id(identifier: str) BibliographicalRecord

Get a single record by its identifier.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.ESTCReader

Bases: CERLReader, Marc21BibliographicalReaderMixin

API_URL: str = 'https://datb.cerl.org/estc/_search'

The base URL of the search API, of the form https://data.cerl.org/<CATALOGUE>/_search.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/estc')
IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/estc/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

The base URL for userfriendly representations of single records.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'English Short Title Catalogue'

Short name of the corresponding catalogue, to be used in user interfaces.

class edpop_explorer.readers.FBTEEReader

Bases: DatabaseFileMixin, GetByIdBasedOnQueryMixin, Reader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/fbtee')
DATABASE_FILENAME: str = 'cl.sqlite3'

The filename (not the full path) under which the database is expected to be stored.

DATABASE_LICENSE: str | None = 'https://dhstatic.hum.uu.nl/edpop/LICENSE.txt'

A URL that contains the license of the downloaded database file.

DATABASE_URL: str | None = 'https://dhstatic.hum.uu.nl/edpop/cl.sqlite3'

The URL to download the database file from. If this attribute is None, automatically downloading the database file is not supported.

DESCRIPTION: str | None = 'Mapping the Trade of the Société Typographique de Neuchâtel, 1769-1794'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

FETCH_ALL_AT_ONCE = True

True if the reader is configured to fetch all records at once, even if the user only needs a subset.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/fbtee/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'French Book Trade in Enlightenment Europe (FBTEE)'

Short name of the corresponding catalogue, to be used in user interfaces.

fetch_range(range_to_fetch: range) range

Fetch a specific range of records. After fetching, the records are available in the records attribute and the number_of_results attribute will be available. If not all records of the specified range exist, only the records that exist will be fetched.

Parameters:

range_to_fetch – The range of records to fetch. step values of ranges other than 1 are not supported and may be ignored.

Returns:

The range of record indexes that has actually been fetched.

prepared_query: SQLPreparedQuery | None = None

A transformed version of the query, available after calling prepare_query() or set_query.

classmethod transform_query(query: str) SQLPreparedQuery

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.GallicaReader

Bases: SRUReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/gallica')
CTAS_PREFIX = 'http://sru.cerl.org/ctas/dtd/1.1:'
DESCRIPTION: str | None = 'Digital library of the Bibliothèque nationale de France and its partners'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

DOCUMENT_API_URL = 'https://gallica.bnf.fr/services/OAIRecord?ark={}'
IDENTIFIER_PREFIX = 'https://gallica.bnf.fr/'
IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/gallica/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Gallica'

Short name of the corresponding catalogue, to be used in user interfaces.

classmethod get_by_id(identifier: str) BibliographicalRecord

Get a single record by its identifier.

sru_url: str = 'https://gallica.bnf.fr/SRU'

URL of the SRU API.

sru_version: str = '1.2'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.HPBReader

Bases: SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/hpb')
DESCRIPTION: str | None = 'The HPB Database (previously called the Hand Press Book Database) is a steadily growing collection of files of catalogue records from major European and North American research libraries covering items of European printing of the hand-press period (c.1455-c.1830) integrated into one file.'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/hpb/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Heritage of the Printed Book (HPB)'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_additional_schema: str | None = 'picaxml'

Additional SRU schemas for which an additional request is made. The results are merged in the SRU results. If None (default), do not make an additional request.

sru_url: str = 'http://sru.k10plus.de/hpb'

URL of the SRU API.

sru_version: str = '1.1'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.KBReader

Bases: SRUReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/kb')
DESCRIPTION: str | None = 'General catalogue of KB, national library of The Netherlands.'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

EXTENT_LOCATION = 'http://purl.org/dc/terms/:extent'
IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/kb/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Koninklijke Bibliotheek (KB)'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_url: str = 'https://jsru.kb.nl/sru/sru'

URL of the SRU API.

sru_version: str = '1.2'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.KVCSReader

Bases: DatabaseFileMixin, Reader

KVCS database reader. Access with command ‘kvcs’.

ALLOW_EMPTY_QUERY = True

If True, it is possible to enter an empty query to fetch all records.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/kvcs')
DATABASE_FILENAME: str = 'biblio_kvcs.csv'

The filename (not the full path) under which the database is expected to be stored.

DATABASE_URL: str | None = 'https://dhstatic.hum.uu.nl/edpop/biblio_kvcs.csv'

The URL to download the database file from. If this attribute is None, automatically downloading the database file is not supported.

DESCRIPTION: str | None = 'Drukkers & Uitgevers in KVCS'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

FETCH_ALL_AT_ONCE = True

True if the reader is configured to fetch all records at once, even if the user only needs a subset.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/kvcs/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'biographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'KVCS'

Short name of the corresponding catalogue, to be used in user interfaces.

fetch_range(range_to_fetch: range) range

Fetch a specific range of records. After fetching, the records are available in the records attribute and the number_of_results attribute will be available. If not all records of the specified range exist, only the records that exist will be fetched.

Parameters:

range_to_fetch – The range of records to fetch. step values of ranges other than 1 are not supported and may be ignored.

Returns:

The range of record indexes that has actually been fetched.

classmethod get_by_id(identifier: str) BiographicalRecord

Get a single record by its identifier.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.PierreBelleReader

Bases: DatabaseFileMixin, Reader

Pierre-Belle database reader. Access with command ‘pb’.

ALLOW_EMPTY_QUERY = True

If True, it is possible to enter an empty query to fetch all records.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/pierre_belle')
DATABASE_FILENAME: str = 'biblio_pierrebelle.csv'

The filename (not the full path) under which the database is expected to be stored.

DATABASE_URL: str | None = 'https://dhstatic.hum.uu.nl/edpop/biblio_pierrebelle.csv'

The URL to download the database file from. If this attribute is None, automatically downloading the database file is not supported.

DESCRIPTION: str | None = 'Bibliography of early modern editions of Pierre de Provence et la Belle Maguelonne (ca. 1470-ca. 1800)'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

FETCH_ALL_AT_ONCE = True

True if the reader is configured to fetch all records at once, even if the user only needs a subset.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/pierre_belle/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Pierre and Belle'

Short name of the corresponding catalogue, to be used in user interfaces.

fetch_range(range_to_fetch: range) range

Fetch a specific range of records. After fetching, the records are available in the records attribute and the number_of_results attribute will be available. If not all records of the specified range exist, only the records that exist will be fetched.

Parameters:

range_to_fetch – The range of records to fetch. step values of ranges other than 1 are not supported and may be ignored.

Returns:

The range of record indexes that has actually been fetched.

classmethod get_by_id(identifier: str) BibliographicalRecord

Get a single record by its identifier.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.SBTIReader

Bases: CERLReader

API_BY_ID_BASE_URL: str = 'https://data.cerl.org/sbti/'

The base URL of the API for retrieving single records, of the form https://data.cerl.org/<CATALOGUE>/.

API_URL: str = 'https://data.cerl.org/sbti/_search'

The base URL of the search API, of the form https://data.cerl.org/<CATALOGUE>/_search.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/sbti')
DEFAULT_RECORDS_PER_PAGE: int = 10

The number of records to fetch at a time using the fetch() method if not determined by user.

DESCRIPTION: str | None = 'An index of the names, trades and addresses of people involved in printing in Scotland up to 1850'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/sbti/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

The base URL for userfriendly representations of single records.

READERTYPE: str | None = 'biographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Scottish Book Trade Index (SBTI)'

Short name of the corresponding catalogue, to be used in user interfaces.

additional_params: Dict[str, str] | None = None
class edpop_explorer.readers.STCNPersonsReader

Bases: STCNBaseReader

STCN Persons reader. This reader does not include printers and publishers, because they are in a separate database.

API_BY_ID_BASE_URL: str = 'https://data.cerl.org/stcn_persons/'

The base URL of the API for retrieving single records, of the form https://data.cerl.org/<CATALOGUE>/.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/stcn-persons')
DESCRIPTION: str | None = 'National bibliography of The Netherlands until 1801 persons'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/stcn-persons/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

The base URL for userfriendly representations of single records.

READERTYPE: str | None = 'biographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'STCN Persons'

Short name of the corresponding catalogue, to be used in user interfaces.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.STCNPrintersReader

Bases: STCNBaseReader

API_BY_ID_BASE_URL: str = 'https://data.cerl.org/stcn_printers/'

The base URL of the API for retrieving single records, of the form https://data.cerl.org/<CATALOGUE>/.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/stcn-printers')
DESCRIPTION: str | None = 'National bibliography of The Netherlands until 1801 printers'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/stcn-printers/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

The base URL for userfriendly representations of single records.

READERTYPE: str | None = 'biographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'STCN Printers'

Short name of the corresponding catalogue, to be used in user interfaces.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.STCNReader

Bases: STCNBaseReader

API_BY_ID_BASE_URL: str = 'https://data.cerl.org/stcn/'

The base URL of the API for retrieving single records, of the form https://data.cerl.org/<CATALOGUE>/.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/stcn')
DESCRIPTION: str | None = 'National bibliography of The Netherlands until 1801'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/stcn/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

The base URL for userfriendly representations of single records.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Short-Title Catalogue Netherlands (STCN)'

Short name of the corresponding catalogue, to be used in user interfaces.

classmethod transform_query(query) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.USTCReader

Bases: DatabaseFileMixin, GetByIdBasedOnQueryMixin, Reader

ALLOW_EMPTY_QUERY = True

If True, it is possible to enter an empty query to fetch all records.

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/ustc')
DATABASE_FILENAME: str = 'ustc.sqlite3'

The filename (not the full path) under which the database is expected to be stored.

DESCRIPTION: str | None = 'An open access bibliography of early modern print culture'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/ustc/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

READERTYPE: str | None = 'bibliographical'

The type of the reader, out of BIOGRAPHICAL and BIBLIOGRAPHICAL (defined in the edpop_explorer package).

SHORT_NAME: str | None = 'Universal Short Title Catalogue (USTC)'

Short name of the corresponding catalogue, to be used in user interfaces.

fetch_range(range_to_fetch: range) range

Fetch a specific range of records. After fetching, the records are available in the records attribute and the number_of_results attribute will be available. If not all records of the specified range exist, only the records that exist will be fetched.

Parameters:

range_to_fetch – The range of records to fetch. step values of ranges other than 1 are not supported and may be ignored.

Returns:

The range of record indexes that has actually been fetched.

get_number_of_records(cur) int
prepared_query: SQLPreparedQuery | None = None

A transformed version of the query, available after calling prepare_query() or set_query.

classmethod transform_query(query: str) SQLPreparedQuery

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.VD16Reader

Bases: VDCommonMixin, SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/vd16')
DESCRIPTION: str | None = 'Verzeichnis der im deutschen Sprachbereich erschienenen Drucke des 16. Jahrhunderts'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/vd16/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

SHORT_NAME: str | None = 'VD16'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_url: str = 'http://bvbr.bib-bvb.de:5661/bvb01sru'

URL of the SRU API.

sru_version: str = '1.1'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.VD17Reader

Bases: VDCommonMixin, SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/vd17')
DESCRIPTION: str | None = 'Verzeichnis der im deutschen Sprachbereich erschienenen Drucke des 17. Jahrhunderts'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/vd17/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

SHORT_NAME: str | None = 'VD17'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_additional_schema: str | None = 'picaxml'

Additional SRU schemas for which an additional request is made. The results are merged in the SRU results. If None (default), do not make an additional request.

sru_url: str = 'http://sru.k10plus.de/vd17'

URL of the SRU API.

sru_version: str = '1.1'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.VD18Reader

Bases: VDCommonMixin, SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/vd18')
DESCRIPTION: str | None = 'Verzeichnis der im deutschen Sprachbereich erschienenen Drucke des 18. Jahrhunderts'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/vd18/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

SHORT_NAME: str | None = 'VD18'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_additional_schema: str | None = 'picaxml'

Additional SRU schemas for which an additional request is made. The results are merged in the SRU results. If None (default), do not make an additional request.

sru_url: str = 'http://sru.k10plus.de/vd18'

URL of the SRU API.

sru_version: str = '1.1'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

class edpop_explorer.readers.VDLiedReader

Bases: VDCommonMixin, SRUMarc21BibliographicalReader

CATALOG_URIREF: URIRef | None = rdflib.term.URIRef('https://edpop.hum.uu.nl/readers/vdlied')
DESCRIPTION: str | None = 'Das Verzeichnis der deutschsprachigen Liedflugschriften'

Information about the contents of the corresponding catalogue, to be used in user interfaces.

IRI_PREFIX: str | None = 'https://edpop.hum.uu.nl/readers/vdlied/'

The prefix to use to create an IRI out of a record identifier. If an IRI cannot be created with a simple prefix, the identifier_to_iri and iri_to_identifier methods have to be overridden.

SHORT_NAME: str | None = 'VDLied'

Short name of the corresponding catalogue, to be used in user interfaces.

sru_url: str = 'http://sru.k10plus.de/vdlied'

URL of the SRU API.

sru_version: str = '1.1'

Version of the SRU protocol. Can be ‘1.1’ or ‘1.2’.

classmethod transform_query(query: str) str

Return a version of the query that is prepared for use in the API.

This method does not have to be called directly; instead prepare_query() can be used.

edpop_explorer.readers.get_record_by_uri(record_uri: str, readers: list[type[Reader]]) Record | None

Get a record by its URI using all given readers.