The “termrelationships” command
- Last Updated: May 29, 2026
- 1 minute read
- Semaphore
- Documentation
The “termrelationships” command will return, for the selected term, a list of the relationship types for that concept and the number of concepts linked by that relationship
| Request | XML output | JSON output |
|---|---|---|
| REST request: | http://localhost:8983/ses/SpaceMissions/termrelationships/01e1fb66-05c6-47c6-8907-ab6c499e27e9 |
http://localhost:8983/ses/SpaceMissions/termrelationships/01e1fb66-05c6-47c6-8907-ab6c499e27e9.json |
Response
XML
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<SEMAPHORE>
<PARAMETERS>
<PARAMETER NAME="relatedconceptlimit">10000</PARAMETER>
<PARAMETER NAME="q">id:01e1fb66\-05c6\-47c6\-8907\-ab6c499e27e9</PARAMETER>
<PARAMETER NAME="pathelementlimit">10000</PARAMETER>
<PARAMETER NAME="fl">any_related_*</PARAMETER>
<PARAMETER NAME="language">en</PARAMETER>
<PARAMETER NAME="language">en</PARAMETER>
<PARAMETER NAME="language">en</PARAMETER>
<PARAMETER NAME="id">01e1fb66-05c6-47c6-8907-ab6c499e27e9</PARAMETER>
<PARAMETER NAME="sort">name_en_pl asc</PARAMETER>
<PARAMETER NAME="rows">100000</PARAMETER>
<PARAMETER NAME="version">1</PARAMETER>
<PARAMETER NAME="wt">sesTermRelationshipsXML</PARAMETER>
<PARAMETER NAME="structure">XML</PARAMETER>
</PARAMETERS>
<TERM>
<RELATIONSHIP_TYPE COUNT="2" NAME="crewed"/>
<RELATIONSHIP_TYPE COUNT="2" NAME="has broader"/>
</TERM>
</SEMAPHORE>
JSON
{
"parameters" : {
"relatedconceptlimit" : "10000",
"q" : "id:01e1fb66\\-05c6\\-47c6\\-8907\\-ab6c499e27e9",
"pathelementlimit" : "10000",
"fl" : "any_related_*",
"language" : "\"en\", \"en\", \"en\"",
"id" : "01e1fb66-05c6-47c6-8907-ab6c499e27e9",
"sort" : "name_en_pl asc",
"rows" : "100000",
"version" : "1",
"wt" : "sesTermRelationshipsJSON",
"structure" : "JSON"
},
"term" : {
"crewed" : 2,
"has broader" : 2
}
}