WikiSysop (talk | contribs)
No edit summary
Mlink-rodrigue (talk | contribs)
No edit summary
Line 9: Line 9:
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.
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 typical knowledge management subjects, such as:
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
* Meeting minutes
* Request for comments
* Document control


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.
To see which schemas are already available in your wiki, you can go to the page <code>Special:Pages</code> (usually linked in your Main Navigation as '''Pages'''), and select the namespace '''Schema'''. Alternatively, you can load the page <code>Special:Schemas</code>.


== Subjects ==
=== Schemas for Controlled documents ===
If you want to collect information about <code>document type</code>, <code>document owner</code> and other document control properties, you can apply the schema '''Document control''' to a page.
Some document types need to be closely monitored for accuracy. Typical document types in this category already have a corresponding schema:


To add the schema '''Document control''' to a page:
* Policy
* Process description
* Role definition
* Work instruction


# Select the <code>'''+'''</code>  button in the info panel of the wiki page where you want to create a document control subject.
Each of these schemas reference another schema that assignes document ownership and scope:
# Select the schema '''Document control''' from the dropdown list.
# Select a document type from the dropdown list. Enter any other information you would like.
# Create the subject.


Now that you have a structured data on the page, you can create [[Extension/NeoWiki/Data report|data reports]] for pages that contain a '''Document control''' subject.
* Document control


== Custom schemas ==
== Custom schemas ==
Line 33: Line 39:
To create a new schema in your wiki:
To create a new schema in your wiki:


# Go to the page '''Special:Schemas'''.
# Go to the page <code>Special:Schemas</code>.
# Select the '''Create button'''.
# Select the '''Create''' button.
# Enter a name for the schema.
# Enter a name for the schema.
# Add the properties for the schema. For each property, select the correct type:
# 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).
If you want to use the schema in other wikis, you need to transfer them via the page <code>Special:ContentTransfer</code> (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.

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.