colrev.settings.SearchSource¶
- class SearchSource(**data)[source]¶
Bases:
BaseModel
Search source settings
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
Get a feed to add and update records
Get the corresponding origin prefix
Get the query filepath
Check whether the source is a curated source (for preparation)
Check whether the source is a metadata source (for preparation)
Set the SearchSource up for the load process (initialize statistics)
Validate the filename
Attributes
endpoint
filename
search_type
search_parameters
comment
to_import
imported_origins
len_before
source_records_list
- get_api_feed(review_manager, source_identifier, update_only, prep_mode=False)[source]¶
Get a feed to add and update records
- Return type:
- is_curated_source()[source]¶
Check whether the source is a curated source (for preparation)
- Return type:
bool
- is_md_source()[source]¶
Check whether the source is a metadata source (for preparation)
- Return type:
bool