Help:Contents

From Referata

Jump to: navigation, search

Welcome to Referata. Referata is a host for semantic wikis; those are wikis that contain data, and not just text - data that can be queried, aggregated, mapped, exported, etc. In other words, you can think of a semantic wiki as a collaborative database.

The majority of this help page is intended for site administrator, as opposed to users. If you're a regular user, adding and editing information on a Referata wiki might even be easier than on a regular wiki, since there tends to be less free text and more structured data; often there will even be forms to help you with the editing.

Contents

[edit] Application-specific help

Referata uses the wiki application called MediaWiki, along with some of its extensions.

For an overview of the MediaWiki application, see here. For help with MediaWiki editing, see the basic editing guide and the advanced editing guide.

For help with the individuals extensions used in Referata, see their respective help pages:

Semantic MediaWiki, Semantic Result Formats, Semantic Forms, Semantic Drilldown, Semantic Google Maps, Widgets, Header Tabs, Replace Text.

Also check out the Semantic MediaWiki quick reference guide, available both as an image and a PDF file.

For a complete list of extensions used in Referata, see Special:Version.

[edit] Administrator pages

If you are the administrator, or one of the administrators, of a Referata site, you will see two additional links at the top of any page on that site: "Site settings" and "Admin links". Each of these will take you to a special page that provides administrative functions.

[edit] The "Site settings" page

This page, located at /Special:SiteSettings, allows you to set various aspects of the site, like its name, language, default skin, logo etc. It also lets you set various privacy levels: whether the site is readable by everyone or just by registered users; whether anyone can register, or registration is by invitation only; and whether any can edit pages, or just users, or just site administrators. It also has Semantic MediaWiki-related settings, like whether the "semantic infobox" should be shown at the bottom of all pages. Finally, it also lets you upgrade a site, using a PayPal subscription.

[edit] The "Admin links" page

This page, located at /Special:AdminLinks, provides links for creating and viewing properties, templates, categories, forms and drilldown filters, in addition to other important miscellaneous links, including:

[edit] Setting up a Referata site

Once your Referata site is up, it's time to create the structures to hold, display and enable adding and editing of your data; thankfully all of this can be done simply by creating various wiki pages. You can take the following steps:

For more help on data structure issues, see the Semantic Forms documentation; they are all explained further there.

Once you have some data on your site, you can also help users find data more easily:

For more help on the drilldown, see the Semantic Drilldown documentation.

[edit] An example

Let's go through a specific example of setting up a wiki from scratch. Let's say that you want to create a wiki that shows all the books you have at home. We'll go through the steps previously specified.

Figure out the data structure. You want two kinds of pages on your wiki: one for books, and one for authors. You decide that each book page should hold a title, an author name, a genre (or genres), a year of publication, and a number of pages; and that each author page should hold the author name, their country of origin, and a list of all the books they have written that are in your library.

Create properties. Properties are the basic building blocks of a semantic wiki - they hold a single value for a page.

[edit] Book Example

For books, we want to represent a book's title, author(s), genre(s), year of publication, and number of pages. That is five fields, also there is no need to create a property for the title, since the title of each page representing a book will be the title of that book. That leaves four fields, each of which require a defined property:

[edit] Author Example

For author pages, you only need to create one more property:

[edit] Templates

You need to create two templates, one for books and one for authors:

[edit] Book Templates

Using the "Create a template" page, you create a template called "Book", and set it to define the category "Books". You add to it four fields, and for each field you specify three values: its field name in the template source code, its display label on each page, and the semantic field it populates. For the first field, you set the field name to be "Author", the label to be "Author" and the semantic field to be "Was written by"; for the second field, you set the three values to be "Genre", "Genre" and "Has genre"; for the third, you set the values to be "Year", "Year of publication" and "Was published in year"; and for the fourth field, you set them to be "Number of pages", "Number of pages" and "Has number of pages". For the "Genre" field, you also check the box saying that the field can hold a list of values, since you want to be able to select more than one genre for a given book.

[edit] Author Templates

Using the "Create a template" page, you create a template called "Author", and set it to define the category "Authors". You add to it a field for which you set the three values to be "Country", "Country of origin" and "Is from country". For this template, you also fill out the "aggregation" fields in the form, since you want each author page to list all the books the author has written. Under "Semantic property", you select "Was written by", and for "Title for list" you put "Books by this author".

[edit] Creating Forms

You need to create two forms, one for books and one for authors:

[edit] Creating Categories

You need to create two categories, one for books and one for authors; you have already specified these categories' names before:

Enable links to forms. You add the text "This property uses the form [[Has default form::Form:Author]]." to the "Was written by" property's page.

Add data. Using the new "Book" form, you create pages for some books; you check to make sure that both the form and the resulting pages look alright. Each book page will now have a red link to its author, that should point to the "Author" form for adding that author (you may need to refresh the page for the right link to show up). You can then add a few authors, either through these links or on the form page directly, to make sure that this setup works correctly too. Each created author's page should show a list of the books you've saved that have that person as the author.

Add links on sidebar and elsewhere. Your structures are now all set up, and you can add links to the sidebar for easy adding and viewing. You can add links to the "Book" and "Author" forms to make it easy to add new ones, and links to the "Books" and "Authors" categories to be able to see the full list of either one at a glance. See Help:Editing the sidebar for how to do this. You can also add these links to the main page and elsewhere.

Customize. You edit the form and template pages to make them more in look nicer, more in line with what you want the overall look of your site to be, and more informative.

Create filters. Using the "Create a filter" page, you create new filters to improve the drilldown in the "View data" page:

You then add these four filters to the "Books" category, using the "Has filter" property.

You then add this filter to the "Authors" category, using the "Has filter" property.

Personal tools
Namespaces
Variants
Actions
Navigation
Data export
Toolbox