search_query.wos.v_0.translator

Web of Science translator for version 0.

Functions

register(registry, *, platform, version)

Register this translator with the registry.

Classes

WOSTranslator_v0()

Translator for WOS queries.

class search_query.wos.v_0.translator.WOSTranslator_v0

Bases: WOSTranslator

Translator for WOS queries.

DEPRECATED_FIELD_MAP = {'AF=': 'author', 'BA=': 'author', 'BE=': 'editor', 'BF=': 'group-author', 'BN=': 'issn-isbn', 'C1=': 'address', 'DE=': 'keywords-author', 'DI=': 'doi', 'EI=': 'issn-isbn', 'ID=': 'keywords-plus', 'OI=': 'author-identifiers', 'RI=': 'author-identifiers', 'RP=': 'address', 'SN=': 'issn-isbn'}

Mapping of deprecated field tags used by WOS 0 to generic search fields. Only a subset of tags are supported; tags without a mapping will trigger a warning and the corresponding term will be dropped during translation.

VERSION = '0'
classmethod translate_fields_to_generic(query: Query) None

Translate deprecated 0 field tags to generic field names.

search_query.wos.v_0.translator.register(registry: Registry, *, platform: str, version: str) None

Register this translator with the registry.