Lexicon: Difference between revisions

From ATProto Wiki
mNo edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
A '''lexicon''' is a [[wikipedia:Database_schema|schema]] definition language used in the [[AT Protocol]] to describe [[record|records]], APIs, and event stream messages. It serves as a framework that enables interoperability between different applications and services within the [[ATmosphere]].
A '''lexicon''' is a [[wikipedia:Database_schema|schema]] definition language used throughout the [[AT Protocol]]. It describes the structure of [[records]], HTTP endpoints ([[XPRC]]), and event stream messages, providing a consistent framework to define and validate data across the protocol that enables interoperability between different applications and services within the [[ATmosphere]].  


Each schema is defined by a [[Namespaced Identifier (NSID)]], which follows a reverse domain-name structure (e.g. <code>app.bsky.feed.post</code>).
Lexicons define a comprehensive type system that covers everything from simple primitive values to complex data structures and network operations. Each schema definition is associated with a [[Namespaced Identifier (NSID)]], creating a globally unique reference to that definition. Lexicon schemas are published as records in AT Protocol repositories and can be discovered through DNS-based resolution mechanisms.
 
[[Category:Data structures]]

Latest revision as of 22:18, 14 March 2025

A lexicon is a schema definition language used throughout the AT Protocol. It describes the structure of records, HTTP endpoints (XPRC), and event stream messages, providing a consistent framework to define and validate data across the protocol that enables interoperability between different applications and services within the ATmosphere.

Lexicons define a comprehensive type system that covers everything from simple primitive values to complex data structures and network operations. Each schema definition is associated with a Namespaced Identifier (NSID), creating a globally unique reference to that definition. Lexicon schemas are published as records in AT Protocol repositories and can be discovered through DNS-based resolution mechanisms.