DatasetDiff

class semanticscholar.DatasetDiff.DatasetDiff(data)

This class represents the complete diff information for a dataset between two releases, including the dataset name, release information, and list of individual diffs.

Initialize DatasetDiff object.

Parameters:

data (dict) – Dataset diffs data from the API.

keys() list

Returns a list of all keys in the API response data.

Return type:

list

property dataset: str

Dataset name.

Type:

str

property diffs: list

List of diffs that need to be applied to bring the dataset at ‘start_release’ up to date with ‘end_release’.

Type:

list of semanticscholar.DatasetDiff.IncrementalUpdate

property end_release: str

Ending release, i.e. the release the client wants to update to.

Type:

str

property raw_data: dict

The API response data in its original JSON structure, represented as a dict.

Type:

dict

property start_release: str

Beginning release, i.e. the release currently held by the client.

Type:

str