HTML service module

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
  http://127.0.0.1:8898/topic  
 
  http://127.0.0.1:8898/topic  
  
This will open a HTML table visualization of the topic currently open in the Wandora application. Generated HTML pages contains links to all other related topics using this link format allowing very easy browsing of the topic map. To generate a visualization of any topic use URL parameter ''topic'' with a subject identifier of the topic. For example, you can generate a HTML view of topic '''Schema type''' with a request  
+
This will open a HTML table visualization of the topic currently open in the Wandora application. Generated HTML pages contains links to all other related topics using this link format allowing very easy browsing of the topic map. To generate a visualization of any topic use URL parameter ''topic'' with a value of subject identifier of the topic. For example, you can generate a HTML view of topic '''Schema type''' with a request  
  
 
  http://127.0.0.1:8898/topic?topic=http%3A%2F%2Fwww.wandora.org%2Fcore%2Fschema-type
 
  http://127.0.0.1:8898/topic?topic=http%3A%2F%2Fwww.wandora.org%2Fcore%2Fschema-type
  
Next screen captures view examples of HTML service output.
+
Service accepts also URL paramenters ''si'' and ''sl''. First is used to address a topic with subject identifier and latter a topic with it's subject locator. Next screen captures view examples of HTML service output.
  
 
[[Image:service_topic_01.gif|center]]
 
[[Image:service_topic_01.gif|center]]

Revision as of 17:21, 4 January 2012

This service provides a human friendly HTML access to the current topic map. HTML service name is topic. Service URL is

http://127.0.0.1:8898/topic 

This will open a HTML table visualization of the topic currently open in the Wandora application. Generated HTML pages contains links to all other related topics using this link format allowing very easy browsing of the topic map. To generate a visualization of any topic use URL parameter topic with a value of subject identifier of the topic. For example, you can generate a HTML view of topic Schema type with a request

http://127.0.0.1:8898/topic?topic=http%3A%2F%2Fwww.wandora.org%2Fcore%2Fschema-type

Service accepts also URL paramenters si and sl. First is used to address a topic with subject identifier and latter a topic with it's subject locator. Next screen captures view examples of HTML service output.

Service topic 01.gif


Service topic 02.gif

This service uses Apache velocity template engine to generate pages. Used template files locate in templates directory. Other web resources such as images locate in static folder. If you are familiar with Wandora's API and Velocity, it should be rather easy to modify default template file.

This is also the default handler if no specific service handle is not available.

See also

Personal tools