Difference between revisions of "Tips for editors"

From AIRWiki
Jump to: navigation, search
(HOWTO add a field to the semantic description of a project)
m (HOWTO add a field to the semantic description of a project)
Line 48: Line 48:
 
Let's add the field "Coordinator" to the Project category, to describe the person that is managing the project (while the "Tutor" is in charge of the students participating to it). These are the steps:
 
Let's add the field "Coordinator" to the Project category, to describe the person that is managing the project (while the "Tutor" is in charge of the students participating to it). These are the steps:
  
# Creation a new category called "Coordinator". By using the [[Special:CreateCategory]] page, this is easy, but we have to choose which category (if any) Coordinator should be a subcategory of. The general rule is: '''define a new category B as a subcategory of a category A which includes all the possible elements of B, but the minimum number of elements outside B. If A doesn't exist, do not define B as a subcategory." By applying this rule, we define "Coordinator" as a subcategory of "Person": in fact the coordinator is most certainly a person, but can be even external to Politecnico di Milano.
+
# Creation of a new category called "Coordinator". By using the [[Special:CreateCategory]] page, this is easy, but we have to choose which category (if any) Coordinator should be a subcategory of. The general rule is: ''define a new category B as a subcategory of a category A which includes all the possible elements of B, but the minimum number of elements outside B. If A doesn't exist, do not define B as a subcategory.'' By applying this rule, we define "Coordinator" as a subcategory of "Person": in fact the coordinator is most certainly a person, but can be even external to Politecnico di Milano.
 +
 
 +
# Choice of the forms which are influenced by the change. The forms are used for simplified input of data, and are the preferred method to create new pages (at least when a form is available for the kind of page to create). The forms are listed in the [[Special:Forms]] page: in our case, the only form to be changed is .
 +
 
 +
# Modification of form [[Form:Project]]. By editing the wiki page, we can now insert a field associated to the Coordinator category into the form. ''Beware: this is a dangerous operation, if you are not an expert of SMW syntax.'' The best option is to use copy-and-paste judiciously. By adding
 +
 
 +
! [[Property:PrjCoordinator|Coordinator(s)]]:
 +
(NameSurname1; NameSurname2; ...)
 +
| {{{field|coordinator|mandatory|autocomplete on category=Coordinator|delimiter=; }}}
 +
|-
  
 
== AIRWiki special pages dedicated to semantic content ==
 
== AIRWiki special pages dedicated to semantic content ==

Revision as of 10:37, 9 February 2010

This page is a repository of suggestions, tips and tricks for editors (i.e., all users!) of AIRWiki.

Resources

These resources (internal to AIRWiki or not) can be handy when you are trying to figure out how to do something:

  • MediaWiki help: general help for users of wikis.
  • SMW help: help on the semantic tools provided by the Semantic MediaWiki (SMW) extension used by AIRWiki.
  • SMW_Project_Workflow: description of the complete lifecycle of a project in AIRWiki, from proposal to closure. Useful if you are setting up or coordinating a project.
  • Dynamic Page Generation: guidelines for the creation of semantic queries within AIRWiki. A collection of useful examples.
  • AIRWiki_Ontology: this is the structure of the ontology behind the semantic elements of AIRWiki. Useful to keep in mind when writing queries.
  • SMW extension: official page of the SMW extension for MediaWiki. It provides a list of the features of SMW.
  • Semantic Forms extension for SMW: official page of the extension providing SMW with semantic forms functionality, listing its features.

Also, don't forget that the list of special pages includes many useful tools.

Tips for inexperienced Semantic MediaWiki users

AIRWiki includes semantic elements based on the Semantic MediaWiki (SMW) extension to the established MediaWiki system. The use of SMW enables the user with the possibility of using queries to extract specific content from the wiki; here you can find some examples of queries.

AIRWiki also uses the Semantic Forms extension to make semantic-level editing of pages easier through the use of customized forms.

Below you find some tips that should help MediaWiki users to get to grips with SMW. If you don't even know how MediaWiki works, it's better if you take a look to its help page before reading on.

For newbies

This webpage gives a short introduction to what SMW is and why it is useful.

About the names of semantic properties

When writing queries, beware! The name of a property can be DIFFERENT from the name used in the semantic part of the wiki pages describing the objects of your query. For instance, any project page includes something like

{{Project
| [...]
| restopic=SomeTopic
| [...]
}}

But if you are writing a query to select the projects with topic SomeTopic you should NOT use

[[restopic::SomeTopic]]

Instead, you have to use the name of the property corresponding to the "restopic" field in the project page. This name is "prjResTopic": therefore your query should use

[[prjResTopic::SomeTopic]]

How can you find out the right name for the properties associated to (the content of) a page? When a page includes semantic information, clicking the "Browse properties" link in the toolbox on the left gives you a list of all the properties defined for that page.

Note 1: the correspondencies between properties and field names in the semantic code of a page are set by the relevant semantic form. For instance, for a project they can be seen (and altered, if you know what you're doing...) by editing the Form:Project page.

Note 2: in some cases the name of a property is preceded by "Foaf:": this means that such property complies with the ontology defined by the Friend-Of-A-Friend project (but such property is used exactly in the same way of the others).

HOWTO add a field to the semantic description of a project

We will describe the operations that had to be performed to add a new field to the description of, in order to integrate the new field with the SMW framework of AIRWiki and to make it fully usable for semantic queries. Of course, the procedure can be easily generalized.

IMPORTANT: this kind of operations introduce structural changes in the AIRWiki. They should be performed only after consultation with professor Bonarini.

Let's add the field "Coordinator" to the Project category, to describe the person that is managing the project (while the "Tutor" is in charge of the students participating to it). These are the steps:

  1. Creation of a new category called "Coordinator". By using the Special:CreateCategory page, this is easy, but we have to choose which category (if any) Coordinator should be a subcategory of. The general rule is: define a new category B as a subcategory of a category A which includes all the possible elements of B, but the minimum number of elements outside B. If A doesn't exist, do not define B as a subcategory. By applying this rule, we define "Coordinator" as a subcategory of "Person": in fact the coordinator is most certainly a person, but can be even external to Politecnico di Milano.
  1. Choice of the forms which are influenced by the change. The forms are used for simplified input of data, and are the preferred method to create new pages (at least when a form is available for the kind of page to create). The forms are listed in the Special:Forms page: in our case, the only form to be changed is .
  1. Modification of form Form:Project. By editing the wiki page, we can now insert a field associated to the Coordinator category into the form. Beware: this is a dangerous operation, if you are not an expert of SMW syntax. The best option is to use copy-and-paste judiciously. By adding
! Coordinator(s):
(NameSurname1; NameSurname2; ...)
| coordinator
|-

AIRWiki special pages dedicated to semantic content

The Special:SpecialPages page includes many interesting tools for the management of the semantic elements of AIRWiki. Below are those which are most useful to non-expert users.

Browsing existing elements

Creating new elements

Basic ideas behind AIRWiki

The following guidelines represent decisions about the structure of AIRWiki that have been taken. You should always comply with them when editing the AIRWiki.

  • All reasonably static information about the AIRLab should be published in the AIRLab website. All information which need to be modified more frequently (say: at least twice a year) should instead be put into the AIRWiki. The AIRWiki also offers the possibility of building pages which are automatically updated.
  • The AIRLab website should mention all the research areas active in AIRLab; but some of these could be absent from the AIRWiki.
  • AIRWiki DOES NOT include a "Projects" page (where the projects of AIRLab are listed). Projects are listed in the pages of the relevant research area.