Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param><value>fra</value></param>
  </params>
</methodResponse>

Searching terms

 With the method getIndexTerms you can retrieve a list of IndexTerm objects, corresponding to the items in the termlist in the GUI. From the index terms you can then retrieve the full concept or term objects. To getIndexTerms you can specify a search expression which filters the result.

Example: Search for the term "fish"

Code Block
languagexml
<?xml version="1.0"?>
<methodCall>
   <methodName>termwebapi2.getIndexTerms</methodName>
   <params>
     <param><value><string>123456789abc</string></value></param>
	 <param><value><string>fish</string></value></param>
   </params>
</methodCall>

Response:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param><value><array><data><value>
		<struct>
		<member><name>__objtype</name><value>IndexTerm</value></member>
		<member><name>term</name><value>fish</value></member>
		<member><name>conceptEntryID</name><value>436</value></member>
		<member><name>termEntryID</name><value>437</value></member>
		</struct>
	</value></data></array></value></param>
  </params>
</methodResponse>