Editing User:Rcdeboer/Maintenance guide

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
==Structure of the COPTR data==
 
 
The COPTR data is structured in different types of semantic entities (or 'classes'). Each of the classes consists of:
 
The COPTR data is structured in different types of semantic entities (or 'classes'). Each of the classes consists of:
 
* a Category that contains all pages for that class
 
* a Category that contains all pages for that class
 
* a Template that sets the semantic properties and displays the information on screen (e.g. in an infobox)
 
* a Template that sets the semantic properties and displays the information on screen (e.g. in an infobox)
 
* a Form that is used to fill out the semantic properties
 
* a Form that is used to fill out the semantic properties
 
Hence, adding a new property to a class requires that you [[Special:CreateProperty|create the property]] and then adapt the class template (so that the property is set) and the form (so that the property value can be filled out). For more information about the form syntax, see the [https://www.mediawiki.org/wiki/Extension:Page_Forms Page Forms documentation].
 
  
 
{| class="wikitable" style="margin: 0 auto;"
 
{| class="wikitable" style="margin: 0 auto;"
Line 38: Line 35:
 
| [[Form:Format]]
 
| [[Form:Format]]
 
|}
 
|}
 
==Adding Functions and Content Types==
 
 
Before the rollout of [https://www.semantic-mediawiki.org Semantic MediaWiki]] on the COPTR wiki, the relation between a tool and its function(s) and content type(s) was expressed by categorization of the tool in the [[:Category:Function]] and [[:Category:Content Type]] hierarchies (note that these (singular) categories are different from the (plural) class categories). External data consumers could use these category hierarchies to distill information that in the semantic data structure is more directly queryable. For reasons of backwards compatibility, however, this hierarchy is still maintained in parallel to the semantic structure. Hence for the Function and Content properties, the [[Template:Infobox tool]] performs two actions: it sets the semantic property value ''and'' adds the tool to the corresponding category in the Function and Content Type category hierarchies.
 
 
Any new Functions or Content Types should be incoporated in both the semantic structure and the category hierarchy. To register a new Function or Content Type in COPTR therefore the following steps should be followed:
 
# Create a new page via [[Form:Function]] or [[Form:Content]].
 
#* Fill out the requested details.
 
# Create a new category with the same name as the page you just created (so suppose you just created the function page ''Emulation'', you should now create the page ''Category:Emulation'').
 
#* Copy the contents of the Form or Content Type page you created in the first step (i.e., the infobox code on the page ''Emulation''), and copy it to the category page.
 
#* Incorporate the category page in the right category hierarchy, by including the text <nowiki>[[Category:Function]]</nowiki> or <nowiki>[[Category:Content Type]]</nowiki> on the category page.
 

Please note that all contributions to COPTR are considered to be released under the Attribution-ShareAlike 3.0 Unported (see COPTR:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)