Difference between revisions of "Help:SMW"
BrettViren (talk | contribs) (Created page with "= Use of Semantic MediaWiki extensions in this wiki = == General == SMW adds the idea of named properties to MediaWiki. These are generally organized into a "class" similar...") |
BrettViren (talk | contribs) |
||
Line 9: | Line 9: | ||
* A category to collect all instances of a particular class | * A category to collect all instances of a particular class | ||
* Some views into of a subset of a classes parameters and possibly across a collection of objects | * Some views into of a subset of a classes parameters and possibly across a collection of objects | ||
+ | |||
+ | == Creating a class == | ||
+ | |||
+ | In this wiki, creating a class is done by an admin. Go to [[Special:SpecialPages]] and find the link for creating a class. The convention is to name properties like "Has something" and parameters like "SOMETHING". Pick the same name for the template, form and category and do not check the box about including multiple times on the page. Pick a default output format as seems best suited. | ||
+ | |||
+ | When populating the fields, keep in mind how instances of this class may relate to others that exist or are expected in the future. Following consistent naming conventions helps. |
Revision as of 19:51, 23 October 2014
Use of Semantic MediaWiki extensions in this wiki
General
SMW adds the idea of named properties to MediaWiki. These are generally organized into a "class" similar in concept to a class in the Object-Oriented programming paradigm. A class consists of:
- A set of associated parameters making up the "object" instance of a class
- A form to create and edit instances
- A category to collect all instances of a particular class
- Some views into of a subset of a classes parameters and possibly across a collection of objects
Creating a class
In this wiki, creating a class is done by an admin. Go to Special:SpecialPages and find the link for creating a class. The convention is to name properties like "Has something" and parameters like "SOMETHING". Pick the same name for the template, form and category and do not check the box about including multiple times on the page. Pick a default output format as seems best suited.
When populating the fields, keep in mind how instances of this class may relate to others that exist or are expected in the future. Following consistent naming conventions helps.