Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/amitsaxena098/OpenKnowledgeStream/llms.txt

Use this file to discover all available pages before exploring further.

RecentChanges holds the list of Change objects extracted from the Wikipedia API query response object. It serves as the container between the Query wrapper and individual Change records.

Source

package Wikicommon.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class RecentChanges {
    @JsonProperty("recentchanges")
    List<Change> recentChanges;
}

Fields

recentChanges
List<Change>
The list of recent Wikipedia page changes returned by the API. Each entry is a Change object carrying the page title, page ID, change type, and associated tags.Mapped from the JSON field recentchanges via the Jackson annotation @JsonProperty("recentchanges").The list contains up to 100 entries per API call, controlled by the rclimit=100 query parameter set in the AppConfig WebClient URL.

Deserialization Chain

The full path from the raw Wikipedia API response to a usable list of change events:
Query.query                    ← top-level "query" key in the API JSON
  └── RecentChanges.recentChanges   ← "recentchanges" array inside "query"
        └── List<Change>            ← each element in the array
Each level is handled by Jackson automatically based on field names and @JsonProperty annotations — no custom deserializers are required.

Example

The portion of the Wikipedia API response that maps to a RecentChanges instance:
{
  "recentchanges": [
    {
      "type": "edit",
      "title": "Albert Einstein",
      "pageid": 736,
      "tags": ["mobile edit", "mobile web edit"]
    },
    {
      "type": "new",
      "title": "OpenKnowledgeStream",
      "pageid": 84521,
      "tags": []
    }
  ]
}

Notes

The @Data annotation from Lombok generates getters, setters, equals, hashCode, and toString implementations at compile time.
This class is provided by the wiki-common module (com.as:wiki-common:0.0.1-SNAPSHOT). It is a shared dependency consumed by any pipeline module that processes the Wikipedia API response.

Build docs developers (and LLMs) love