JTM topic map service module

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
(See also)
 
Line 1: Line 1:
Service module returns a JTM topic map. Topic map contains current topic and all associated topics. Service handle is '''jtm'''. To use the service module '''jtm''', ensure the module is enabled in configuration panel of [[Embedded HTTP server|embedded HTTP server]] and start the embedded HTTP server. An example request is
+
The service module returns a JTM topic map. The topic map contains the current topic and all it's associated topics. THe service handle is '''jtm'''. To use the module ensure it's enabled in the configuration panel of [[Embedded HTTP server|embedded HTTP server]] and start the server. An example HTTP request is
  
 
  http://127.0.0.1:8898/jtm
 
  http://127.0.0.1:8898/jtm
  
Adding request an URL parameter '''topic''' with a subject identifiers or basename value returns addressed topic. URL parameters '''si''' and '''sl''' can be used to fetch a topic with a subject identifier or with a subject locator.
+
Adding request an URL parameter '''topic''' with a subject identifier or basename value returns the addressed topic. The URL parameters '''si''' and '''sl''' can also be used to fetch a topic with a subject identifier or with a subject locator respectively.
  
Requesting an URL '''http://127.0.0.1:8898/jtm?topic=http://www.wandora.org/core/wandoraclass''' returns a page as shown below when using a regular WWW browser.
+
Requesting an URL '''http://127.0.0.1:8898/jtm?topic=http://www.wandora.org/core/wandoraclass''' returns a page as shown below when using a regular browser.
  
 
[[Image:service_jtm_01.gif|center]]
 
[[Image:service_jtm_01.gif|center]]

Latest revision as of 11:28, 8 August 2012

The service module returns a JTM topic map. The topic map contains the current topic and all it's associated topics. THe service handle is jtm. To use the module ensure it's enabled in the configuration panel of embedded HTTP server and start the server. An example HTTP request is

http://127.0.0.1:8898/jtm

Adding request an URL parameter topic with a subject identifier or basename value returns the addressed topic. The URL parameters si and sl can also be used to fetch a topic with a subject identifier or with a subject locator respectively.

Requesting an URL http://127.0.0.1:8898/jtm?topic=http://www.wandora.org/core/wandoraclass returns a page as shown below when using a regular browser.

Service jtm 01.gif


[edit] See also

Personal tools