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.
wiki-common is a shared Maven library that provides the data model classes used by both wiki-change-stream and opensearch-wiki-indexer. It contains no application logic or entry point — its sole purpose is to define the Java types that flow from the Wikipedia API through Kafka to OpenSearch.
Classes
Change
Represents a single Wikipedia page edit event. Fields:
type, title, pageId, tags. Used as the Kafka message value and the OpenSearch document body.Query
Top-level deserialization target for the Wikipedia API JSON response. Holds a single
RecentChanges field named query.RecentChanges
Holds the list of
Change objects extracted from the recentchanges array in the Wikipedia API response.Classes Reference
Change
Package: Wikicommon.modelsAnnotations:
@Data (Lombok)
Represents a single Wikipedia page edit event returned by the Recent Changes API and carried through the entire pipeline.
Change.java
The type of change (e.g.
edit, new).The title of the Wikipedia page that was changed. Used as the OpenSearch document ID.
The unique Wikipedia page ID. Deserialized from the
pageid JSON field.A list of tags applied to this change (e.g.
mobile edit, visualeditor).Query
Package: Wikicommon.modelsAnnotations:
@Data (Lombok)
Top-level wrapper that mirrors the outer JSON object returned by the Wikipedia API. WikipediaClient deserializes the full API response into this class.
Query.java
Nested object containing the
recentchanges array from the API response.Wikipedia API response (abbreviated)
RecentChanges
Package: Wikicommon.modelsAnnotations:
@Data (Lombok)
Intermediate wrapper that holds the list of Change objects deserialized from the recentchanges JSON array.
RecentChanges.java
The list of recent Wikipedia page change events. Deserialized from the
recentchanges JSON array.Maven Artifact
Group ID:com.asArtifact ID:
wiki-commonVersion:
0.0.1-SNAPSHOT
Adding as a dependency
Add the following to your module’spom.xml:
pom.xml
wiki-common is configured with <skip>true</skip> in the Spring Boot Maven plugin. This prevents it from being repackaged as an executable JAR — it is a plain library JAR intended to be consumed as a dependency by other modules.wiki-common/pom.xml
Related modules
wiki-change-stream
Polls the Wikipedia API and publishes
Change objects to Kafkaopensearch-wiki-indexer
Consumes
Change objects from Kafka and indexes them into OpenSearch