Difference between revisions of "Help:SemanticMW Service links"

From Biowikifarm Metawiki
Jump to: navigation, search
(Providing service links)
(Providing service links)
Line 5: Line 5:
 
Attaching an external service to a SMW property consists on three steps:
 
Attaching an external service to a SMW property consists on three steps:
 
==Providing service links==
 
==Providing service links==
*#Create an entry in MediaWiki namespace having the following format:
+
*# Create an entry in MediaWiki namespace having the following format:
  
 
  Mediawiki:Smw_service_'''''service_name'''''  
 
  Mediawiki:Smw_service_'''''service_name'''''  
Line 12: Line 12:
 
''Mediawiki:Smw_service_''
 
''Mediawiki:Smw_service_''
  
*#'''edit''' the new page and insert services provided having the following format:
+
*# '''edit''' the new page and insert services provided having the following format:
  
 
  label text1|http://someurl.com
 
  label text1|http://someurl.com
Line 18: Line 18:
 
  .......
 
  .......
  
*#'''save''' the page.
+
*# '''save''' the page.
 
Following these steps have been created the service to accessing ETI thesaurus:
 
Following these steps have been created the service to accessing ETI thesaurus:
  

Revision as of 12:40, 21 April 2010

Help sections
Contents · Semantic MediaWiki · Semantic Forms
Add Ontology · Semantic links and import/export features · Import external vocabulary
Other SemanticMW extensions · Other extensions



Semantic MediaWiki can provide links to online services when displaying certain data in the Factbox and in property pages. For example, when an article contains a geographic coordinate, like Geocoordinate property from Template:Metadata has, it is useful to provide links to online mapping services so that users can retrieve a map of that location with one click. An other useful example is provided by ETI thesaurus service and further it will pointed out how to use this service in relation with a Semantic MediaWiki (SMW) property. Attaching an external service to a SMW property consists on three steps:

Providing service links

    1. Create an entry in MediaWiki namespace having the following format:
Mediawiki:Smw_service_service_name 

where service_name is a given name for the service. The first part of the new created service name is mandatory prefixed by Mediawiki:Smw_service_

    1. edit the new page and insert services provided having the following format:
label text1|http://someurl.com
label text2|http://anotherurl.org
.......
    1. save the page.

Following these steps have been created the service to accessing ETI thesaurus:

http://biowikifarm.net/test/MediaWiki:Smw_service_ETI_thesaurus
ETI thesaurus|http://www.catalogueoflife.org/annual-checklist/2010/webservice?response=full&name=$1
ETI thesaurus ID|http://www.catalogueoflife.org/annual-checklist/2010/webservice?response=full&format=xml&id=$1

Create property or modify an existing one

Property usage