Skip to main content

    What is an example of a schema?

    Updated October 20, 2026

    Key takeaway

    The saved answers interpret 'schema' in different fields. ChatGPT gives a JSON data blueprint; Copilot, Google AI Mode and Perplexity give cognitive examples; Gemini covers both technical and psychological meanings. All use schema to mean an organizing framework, but the question does not specify a domain. That ambiguity explains the different examples more than a disagreement about one definition.

    Verdict

    The apparent disagreement is mainly about context. A JSON structure and a learned expectation are different uses of the word schema. Specify computing, psychology or website structured data before comparing the examples directly.

    What the models searched first

    The sub-queries each engine actually searched before answering.

    Full responses

    5 of 5 engines that answered. Full stored text as captured, with dashes shown as hyphens. Nothing is summarised.

    ChatGPT2,013 characters · October 15, 2026

    A schema is a blueprint that defines how information should be organized. It specifies what information is expected, what type it should be, and sometimes what rules it must follow. Think of it like a form with predefined fields that tells you what information to fill in. ## Example: A schema for a person Imagine you're building an app that stores people's information. Here is a simple schema written in JSON Schema: json ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" }, "email": { "type": "string" } }, "required": ["name", "age"] } ``` This schema defines the following rules: - `name` must be text, such as `"Alice"`. - `age` must be a whole number, such as `25`. - `email` must be text, such as `"[email protected]"`. - `name` and `age` are required, but `email` is optional. This is an example of how JSON Schema describes the structure and rules of data. [JSON Schema](https://json-schema.org/understanding-json-schema/basics)[JSON Schema](https://json-schema.org/learn/getting-started-step-by-step) ## What the actual data looks like The following data follows the schema: json ``` { "name": "Alice", "age": 25, "email": "[email protected]" } ``` But this data would not follow the schema: json ``` { "name": "Alice", "age": "twenty-five" } ``` Why? Because `"age"` is supposed to be a whole number, not text. ## Other examples of schemas - Database schema: Defines tables, columns, and relationships in a database. - Website form schema: Defines which fields a form contains and which are required. - API schema: Defines the format of data that applications send and receive. - JSON Schema: Defines the structure and validation rules for JSON data. In simple terms: The schema is the blueprint; the data is what you build using that blueprint. You can explore more examples in the official [JSON Schema documentation](https://json-schema.org/learn/json-schema-examples).

    Copilot1,997 characters · October 15, 2026

    A **schema** is a mental framework that helps us organize and interpret information. It acts like a shortcut in the brain, allowing us to quickly understand new situations by fitting them into patterns we already know. Psychologist Jean Piaget first introduced the concept to explain how children develop ways of thinking about the world. Here are a few clear examples of schemas: * 🍓 **Object Schema**: If you see a raspberry, you recognize it as a berry because it fits into your existing "berry schema" alongside strawberries and mulberries. * 🍽️ **Event Schema (Script)**: When you go to a restaurant, you expect certain steps - being seated, reading a menu, ordering food, eating, and paying the bill. You don’t have to figure it out from scratch each time. * 👩‍🏫 **Role Schema**: You may have expectations about how a teacher behaves - knowledgeable, instructive, authoritative. This schema helps you quickly interpret interactions with someone in that role. * 🧑 **Self-Schema** : Your beliefs about yourself, such as “I’m good at math” or “I’m shy,” form a framework that influences how you interpret experiences and feedback. * 🐄 **Childhood Object Schema**: A child might initially call every four-legged animal a “dog.” Over time, they refine their schema to distinguish between dogs, cats, cows, and horses.[15 Schema Examples (In Learning Psychology) (2026)](https://helpfulprofessor.com/schema-examples/)[What Is a Schema in Psychology: Types and Uses - ScienceInsights](https://scienceinsights.org/what-is-a-schema-in-psychology-types-and-uses/)[What Is Schema | BetterHelp](https://www.betterhelp.com/advice/psychologists/what-is-a-schema-psychology-definition-and-examples/) Schemas are powerful because they help us process information quickly, but they can also lead to stereotypes or rigid thinking if not updated. 👉 Would you like me to show you **examples of negative schemas** (like those used in schema therapy) that can affect relationships and mental health?

    Gemini2,454 characters · October 15, 2026

    A **schema** is a structured framework, blueprint, or mental model that helps organize, interpret, and represent information. Depending on the context - whether it's database management, psychology, or web development - a schema looks a bit different. Here are the most common examples across different fields: ### 1\. Database Schema (Computer Science) In databases, a schema defines how data is organized, including tables, fields, relationships, and data types. Imagine an **E-commerce Website Schema** for a user's profile and orders: * **Users Table:** * `user_id` (Primary Key, Integer) * `username` (Varchar) * `email` (Varchar) * **Orders Table:** * `order_id` (Primary Key, Integer) * `user_id` (Foreign Key, links to Users Table) * `order_date` (Timestamp) * `total_amount` (Decimal) ### 2\. Cognitive Schema (Psychology) In psychology, a schema is a cognitive framework or concept that helps us organize and interpret vast amounts of information in our environment. * **Example (The "Restaurant" Schema):** When you walk into a sit-down restaurant you've never visited before, you immediately know what to do: wait to be seated, look at a menu, order from a waiter, eat, and pay the bill. You don't need instructions because your mental "restaurant schema" already tells you how the scenario works. ### 3\. JSON Schema (Web Development & APIs) In web development, a JSON Schema is used to validate the structure and data types of a JSON data file. * **Example (A schema validating a product listing):** JSON { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Product", "type": "object", "properties": { "productId": { "type": "integer" }, "productName": { "type": "string" }, "price": { "type": "number", "minimum": 0 } }, "required": ["productId", "productName", "price"] } ### 4\. Schema Markup (SEO / Search Engine Optimization) In web search, schema markup (structured data) is code added to a website to help search engines like Google understand the content better and display rich snippets in search results. * **Example (Recipe Rich Snippet):** A food blogger adds schema markup to their recipe page so Google knows the exact cooking time, calorie count, and ingredients. This allows Google to display a special recipe card with a star rating directly on the search results page. Would you like to explore an example from one of these specific areas in more detail?

    Google AI Mode1,786 characters · October 15, 2026

    A **schema** is a mental framework or organizational pattern that helps us organize, interpret, and make sense of information in our brains. Coined heavily in psychology (by Jean Piaget), it acts like a cognitive shortcut so we don't have to reinvent the wheel every time we encounter something new. A Classic Example: The "Dog" Schema Imagine a young toddler who has a family golden retriever. * * **The Schema Formation:** The child observes that this furry creature has four legs, a tail, fur, and barks. They build a mental "dog" schema: _four legs + fur + tail + barking = dog_. * **Assimilation:** One day, they see a neighbor's poodle and instantly point and say, "Dog!" Because the poodle fits the existing schema, the child **assimilates** the new information. * **Accommodation:** Later, they see a cat. It has four legs, fur, and a tail, so they initially call it a "dog." But then the cat meows and arches its back differently. A parent says, "No, that's a cat." The child realizes cats are different from dogs and **accommodates** by updating their mental rules - modifying the old schema or creating a new "cat" schema. * Other Everyday Examples * * **Restaurant Schema:** When you walk into a new restaurant you’ve never been to before, you instantly know what to do: wait to be seated, look at a menu, order food from a server, eat, and pay the bill. You don't need instructions because your "restaurant schema" guides you. * **Script Schema (Going to Class):** Sitting in a desk, opening a notebook, and waiting for a teacher to talk is a sequential schema for how a classroom operates. * * * * Would you like an example of how a **schema** works in a completely different context, like **database management** or **cognitive psychology**?

    Perplexity240 characters · October 20, 2026

    A dorm-room schema is an expectation that a dorm room will have a bed and a desk, but probably not an expensive Persian rug.([dictionary.apa.org][1]) [1]: https://dictionary.apa.org/schema "cognitive schema - APA Dictionary of Psychology"