How Data Contributors, Sources and Agents Work

Every Event starts its life in a Data Contributor. This section of the User Guide describes each Data Contributor and the kind of Events you may find for each. The term 'Source' is an internal label for the Data Contributor and in some cases a particular way of looking at their data. It's the way we identify where each Event came from. Most Data Contributors are represented by a single Source, but where a Data Contributor has more than one type of data they may be represented by more than one Source. For example, Twitter is a Data Contributor and we have a corresponding twitter source. Reddit is another Data Contributor, but we have two Sources: reddit for the content of discussions that happen on reddit and reddit-links for the content of pages that are linked to from Reddit.

Every Source usually has one or more Agents dedicated to it. Each Agent connects to its Source and produces Events. The kind of data that the Source makes available, and the way that the Agent processes it, vary.

  • Some Sources send content which is refined by the Agent. This is how the Twitter and Reddit Agents work.
  • Some Sources send pointers to content, which the Agent then visits. This is how the Wikipedia and Newsfeeds Agents work.
  • Some Sources are custom-built to send Events directly. This is how the Crossref and DataCite Agents work.

Common features in Agents

There are some common features and patterns that occur accross Agents.

Reversing Landing Page Domains back into DOIs

When a Registered Content Item is linked to via its Landing Page, the Agent will identify the link and then attempt to convert the Landing Page URL back into a DOI. If it is unable to do this, no Event will be created. This process is the most dyanmic and potentially variable step.

Issuing Queries for Landing Page Domains

Many of the links that we track use the Landing Page URL of the Article. We maintain an Artifact which contains all of the Domains we're interested in. Some external APIs, such as Reddit, allow queries to be issued for links by their domain. In cases like this, the Agent will periodically scan the API, issuing a query for each Landing Page domain.

Some sources send links to things that must be consulted. For example, each RSS newsfeed contains links to Blog posts that must be processed to extract links. The Wikipedia Agent recieves a stream of Wikipedia page URLs, each of which must be visited to extract links.

Events and Evidence Records

Most Agents don't produce Events directly. Instead they produce Evidence Records, which are further processed into Events at a later. This means that the Agent only does the job of converting external data into the standard Evidence Record format.

An internal component, called the Percolator, does the job of processing the Evidence Record into Events and inserting them into the system. You can read about the process in Evidence Records.

Some Agents, such as Crossref Metadata and DataCite Metadata, create Events directly from their internal databases and skip the Evidence Record stage. In the future, Agents operated by external parties may also do this. The reason for this is that Evidence Records exist to document how external data was processed, and to make transparent the internal processes within Event Data. When the data comes directly from the external source, we perform no extra processing, so there is nothing to document. External services which operate Agents may choose to record their own form of Evidence, but these will be different to the standardised Crossref Event Data Evidence Records.