XTM topic map service module
From WandoraWiki
		(Difference between revisions)
		
		
| Line 3: | Line 3: | ||
  http://127.0.0.1:8898/xtm  |   http://127.0.0.1:8898/xtm  | ||
| − | 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 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. For example, next URL returns always an XTM serialization of a topic with subject identifier '''http://www.wandora.org/core/wandoraclass'''.  | 
| + | |||
| + |  http://127.0.0.1:8898/xtm?topic=http://www.wandora.org/core/wandoraclass  | ||
| + | |||
== See also ==  | == See also ==  | ||
* [[Embedded HTTP server]]  | * [[Embedded HTTP server]]  | ||
Revision as of 11:53, 3 January 2012
Service module returns an XTM 2.0 topic map. Topic map contains current topic and all associated topics. Service handle is xtm. An example request is
http://127.0.0.1:8898/xtm
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. For example, next URL returns always an XTM serialization of a topic with subject identifier http://www.wandora.org/core/wandoraclass.
http://127.0.0.1:8898/xtm?topic=http://www.wandora.org/core/wandoraclass