Mlink-rodrigue (talk | contribs)
No edit summary
Mlink-rodrigue (talk | contribs)
No edit summary
 
Line 4: Line 4:


== Do I need schemas? ==
== Do I need schemas? ==
Schemas define property names, types, and constraints. This allows you to apply a set of related properties to a page. Each such set based on a particular schema is called a Subject on the page. Pages that share the same properties can then be found and displayed anywhere in the wiki — via a data report, for example. And since the subjects typed relationships to each other (for example: "this person ''works at'' this organization ''located in'' this city") , they start forming a knowledge graph. This knowledge graph in turn can be useful not only to create data reports, but also to supply reliable and structured content to an [[Manual:Extension/ChatBot|AI chatbot]] in your wiki.
Schemas define property names, types, and constraints. This allows you to apply a set of related properties to a page. Each such set based on a particular schema is called a Subject on the page. Pages that share the same properties can then be found and displayed anywhere in the wiki — via a data report, for example. And since the subjects typed relationships to each other (for example: "this person ''works at'' this organization ''located in'' this city") , they start forming a knowledge graph. This knowledge graph in turn can be useful not only to create data reports, but also to supply reliable and structured content to an [[wiki-de:Erweiterung/ChatBot|AI chatbot]] in your wiki.


== Built-in schemas ==
== Built-in schemas ==

Latest revision as of 10:03, 13 November 2026

SkySapphire

You can create a perfectly useful knowledge base without maintaining structured data. Often, organizing pages with categories, subpages and wiki links alone makes all your information easy to store and find. In that case, documents have their own context and don't need additional structured data to identify or query them.

However, as soon as you create an information management system that requires a clearly defined document lifecycle elements such document ownership, a chain of approval, expiration dates and other document properties, you will want to work with schemas to add structured data to a wiki page.

Do I need schemas?

Schemas define property names, types, and constraints. This allows you to apply a set of related properties to a page. Each such set based on a particular schema is called a Subject on the page. Pages that share the same properties can then be found and displayed anywhere in the wiki — via a data report, for example. And since the subjects typed relationships to each other (for example: "this person works at this organization located in this city") , they start forming a knowledge graph. This knowledge graph in turn can be useful not only to create data reports, but also to supply reliable and structured content to an AI chatbot in your wiki.

Built-in schemas

A wiki page that has structured data includes a structured data box outside the page content. The information in this data box is called a Subject.

Your wiki already includes the following schemas:

Standard schemas (basic)

The basic standard schemas are useful for quickly creating frequent document types that are frequently (but not exclusively) created in the main namespace. They are automatically attached to a page when creating the following page types from page templates:

  • Decision matrix
  • Event planning
  • Guideline
  • How-to
  • To-do
  • Status report
  • Meeting minutes

To see which schemas are already available in your wiki, you can go to the page Special:Pages (usually linked in your Main Navigation as Pages), and select the namespace Schema. Alternatively, you can load the page Special:Schemas.

Schemas for Controlled documents

Some document types need to be closely monitored for accuracy. Typical document types in this category already have a corresponding schema:

  • Policy
  • Process description
  • Role definition
  • Work instruction

Each of these schemas reference another schema that assignes document ownership and scope:

  • Document control

Custom schemas

Schemas have permanent names!Make sure that the name you choose here will be the permanent schema name. At this point, there is no way to rename the schema later without losing the association with existing subjects on wiki pages that were created with the original name.

To create a new schema in your wiki:

  1. Go to the page Special:Schemas.
  2. Select the Create button.
  3. Enter a name for the schema.
  4. Add the properties for the schema. For each property, select the correct type:

If you want to use the schema in other wikis, you need to transfer them via the page Special:ContentTransfer (admin rights required).

Internationalization of schemas

Schemas will have multilingual labels. The canonical language for default schemas is English. It is advisable to create your schemas and property names in English at this point.

Single-language wiki

If you do not plan on maintaining a multi-language environment, you can create your custom schemas directly in your own language. If you want to prepare your wiki for a future multilingual use case, you should create all schemas and labels in English now so that they are compatible with the multilingual labels later.