Difference between revisions of "Wikispooks:Semantic Mediawiki"

From Wikispooks
Jump to navigation Jump to search
m
(counts of #properties)
Line 19: Line 19:
 
==Properties==
 
==Properties==
  
[[:Category:Properties|All properties used on Wikispooks]] have their own page, marked up with [[Template:Property]]. Properties are assigned to one of 4 categories:
+
Wikispooks currently uses [[:Category:Properties|{{#expr: {{PAGESINCAT:Special Properties}}+{{PAGESINCAT:Stable Properties}}+{{PAGESINCAT:Experimental Properties}}+{{PAGESINCAT:Mooted Properties}}}} properties]], all marked up with [[Template:Property]]. Properties are assigned to one of 4 categories:
 
{|
 
{|
|{{cat|Special Properties}}
+
|{{PAGESINCAT:Special Properties}} {{cat|Special Properties}}
|For properties which are built-in to Semantic Media Wiki
+
|built-in to Semantic Media Wiki
 
|-
 
|-
|{{cat|Stable Properties}}
+
|{{PAGESINCAT:Stable Properties}} {{cat|Stable Properties}}
|For properties which are working as planned and will be permanent features of this wiki
+
|working as planned and will be permanent features of this wiki
 
|-
 
|-
|{{cat|Experimental Properties}} 
+
|{{PAGESINCAT:Experimental Properties}} {{cat|Experimental Properties}}
|For properties which are operational but not necessarily working properly or at all
+
|in use but not necessarily working properly or at all
 
|-
 
|-
|{{cat|Mooted Properties}}  
+
|{{PAGESINCAT:Mooted Properties}} {{cat|Mooted Properties}}  
|For properties which are not yet used, on which you are seeking feedback before implementation
+
|not yet used, but awaiting feedback before implementation
 
|}
 
|}
  

Revision as of 12:09, 1 January 2014

SMW.png

Semantic Mediawiki (SMW) is an extension for the basic Mediawiki software that powers the Wikispooks site. Its purpose is to provide semantic definition and querying capabilities which are lacking in the basic software. This offers two main benefits to the site - (i) a richer set of ways to organise and use the information, (ii) the possibility to define site feeds to export the data in a predictable format, which others can build.

SMW on Wikispooks

SMW is installed on Wikispooks together with a bunch of associated extensions (Semantic Bundle). Towards the end of 2013, Wikispooks has been expanding its use of SMW - most notably through Semantic Forms extension. Policy and practices in this area are currently fluid a Wikispooks editors are gradually learning how to get the best out of the software, and simultaneously developing a framework for its use on the site. Some best practices are emerging:

No loose markup

Wikispooks is following the SMW recommendation of strongly discouraging loose pieces of inline markup. For reasons of future-proofing and maintenance, SMW properties should be assigned through templates. See Semantic Templates for suitable templates. The main semantic template to use for replacing inline semantic data is Template:SMWData.

Presenting SMW Data

SMW querying is the recommended way to present large data tables inline in pages, since this is easier in terms of reuse. The main semantic template for displaying semantic data is Template:SMWDocs, which is a kind of 'catch all' for relevant data. When inserted in a page manually, it should usually be used just before the "References" section.

Timelines

Full article: WikiSpooks:Timelines

Experiments with timelines, notably the JFK Assassination Timeline have made further use of SMW. Timelines are a semantic results format which must have at least one date property defined in order to correctly displayed events. The JFK timeline currently uses 3 semantic property definitions (Start, End and Description), 'Start' and 'End' are of property type 'Date' and 'Description is of property type 'Text'.

The properties currently used by the timelines experiments may need to be changed to accord with standard but evolving semantic properties syntax and grammar.

Properties

Wikispooks currently uses 260 properties, all marked up with Template:Property. Properties are assigned to one of 4 categories:

13 Category:Special Properties built-in to Semantic Media Wiki
112 Category:Stable Properties working as planned and will be permanent features of this wiki
134 Category:Experimental Properties in use but not necessarily working properly or at all
1 Category:Mooted Properties not yet used, but awaiting feedback before implementation

New Properties

Be careful when creating new properties. Properties are easy to make, annoying to remove, so before defining a new property you should first mooting the idea by making a using template:property to make a property page explaining the idea. Then await feedback from others. See Special:Properties for an illustration of what can happen.

Development

Existing use of SMW suggests that it has considerable potential to enhance the functionality of the site, making its contents more accessible to well thought out querying. Among other things, this will require:

  • Some capable programming by editors up to speed on SMW
  • Identifying and defining a core set of semantic properties (and possibly also concepts) which are useful for structuring the data
  • Applying these new structures to the existing content
  • Allowing for seemlessly creation of these structures on new pages by non-SMW aware users (i.e. through semantic forms)

Integrating with Mediawiki

Mediawiki's main organisational tools for arranging pages are the namespace and the category. Adding SMW's properties and concepts to the mix allows for considerable flexibility in how to organise data. The basic approach is a replacement of the generic grouped together with (category) relationship by SMW's more precisely defined relationships (properties). How best to do this remains an open question, but some basic principles are:

  1. Properties and Concepts are generally to be preferred to categories
  2. For reasons of reliability and maintenance, data should be dynamically produced (e.g. from templates) rather than input by hand whenever possible
  3. Hard thinking is preferable to hard work where possible :)

See Wikispooks talk:Semantic Mediawiki for more detailed discussion.


Wikispooks logo.png Policy.png Wikispooks to do.png Tools2.png
Wikispooks
Technical
SMW.png Help.png