Redaktion (talk | contribs)
No edit summary
Redaktion (talk | contribs)
No edit summary
Line 1: Line 1:
<bookshelf src="Book:Getting started with Semantic MediaWiki" />
{{DISPLAYTITLE:Example: Customer data}}
{{DISPLAYTITLE:Example: Customer data}}


In this exampla for SMW, we create a query for customer data. The collected information is shown at the beginning of each customer page.
In this example, we create a query for customer data. The collected information is shown at the beginning of each customer page.
<br />
<br />
[[File:Manual:screenshot-Vorlage-EN.png|alt=Example: Customer data|center|thumb|850x850px|Example: Customer data]]
[[File:Manual:screenshot-Vorlage-EN.png|alt=Example: Customer data|center|thumb|850x850px|Example: Customer data]]

Revision as of 10:07, 15 July 2025


In this example, we create a query for customer data. The collected information is shown at the beginning of each customer page.

Example: Customer data
Example: Customer data


This requires 4 steps:

  1. Defining properties
  2. Creating a template
  3. Creating a form
  4. Creating a category

Defining properties

For our customer query, we define 3 properties:

  • Location
  • Contact person
  • Date of first contact
  1. Switch to Special pages in the navigation menu Global Actions.
    Global actions menu with highlighted link to the Special pages.
    Link to the "Special pages"
  2. Search for "property".
    Create a property
    Create a property

  3. Click Create a property. In the form, enter the name and data type for the first property Has location:: - Property name (1): Has location - Data type (2): Text
    Create the first property
    Create the first property


    Click Save page (3). A message box might appear that shows you that the property is now being processed in the wiki. If this is the case, you can ignore this message for now.
    Property gets processed
    Property gets processed

    For each property, a page is created in the namespace Property in the wiki. This page contains the information about the data type.
  4. Switch back to Special:CreateProperty. Create the property Has contact person with data type Text as shown before.
  5. Switch back to Special:CreateProperty. Create the property Has First contact with data type Date.

You can review the properties in your wiki by going to the page Special:Properties.


Special page: Properties
Special page: Properties

The necessary properties for data collection are now available. In the next step, we create the template that will be included in our customer pages to display the customer data.

Create the template


Related info



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end