|Category vs. property|
|Classification of articles using categories and properties|
|Table of Contents|
This help page explains how to classify articles using categories and properties.
Categories and properties
MediaWiki provides the
[[Category: ...]] annotation a as means to organize (or categorize) individual articles.
Semantic MediaWiki provides an additional classification entity type, the property, and it assumed best practice to use a category (or class) to describe a domain of things (classification of individuals into groups which share common characteristics) while an individual member of a class (a single page, article) is to be described by different attributes (properties) to denote its content (where it belongs, what it possess etc.) and the instance itself.
- Category to divide content into groups that share similar characteristics
- a class or group of things, people, etc., possessing some quality or qualities in common;
- a division in a system of classification (e.g. hierarchies)
- Property is to describe individual characteristics of a class member
- belongs to a group of ...
- has attribute ...,
- is a ... (could also be interpret as category in a semantic context),
- it possess ...,
- is a member of ...,
- is known as ...
- Subcategories can be used to further circumscribed members of a class which are to share common characteristics.
- Special property "Subcategory of"Lets you explicitly indicate that one category is a subcategory of another
How to classify content?
There is no general one size fits all best practice approach on how to classify content since it depends on what the content is expected to represent and to whom it is aimed for but some rule of thumb can be applied:
The broadest of all classification systems is the namespace. Use namespaces to divide content into large groups of similar content.
- Help, Demos, Examples
Categories allow to distinguish content in terms of shared characteristics.
- A car is not the same as a bicycle even though both can be used for transportation; a car is a motor vehicle and belongs to the group of vehicles; it depends on the aspect and the intent of the classification is to represent.
Use properties to describe individual characteristics of an instance.
- The car has the color green, the bicycle has the color blue, the bicycle is owned by John etc.
Whether content should be classified using a category or to be described by a property also depends on the granularity a user wishes to express and the classification size (annotating ten pages with one category requires a different effort compared to two pages with ten properties).
- Help page on properties and datatypes
- Help page on property declaration
- Help page on in-text annotation