CTS2-LE REST API: OWL TBOX Update: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Billig (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<b>PUT</b> /service/crud/owl : Updates an OWL ontology. If the ontology does not exist, it is created. The TBOX of the ontology is mapped to a code system ver…“) |
Billig (Diskussion | Beiträge) |
||
| Zeile 25: | Zeile 25: | ||
;Responses | ;Responses | ||
| − | |||
:<code>application/json</code> | :<code>application/json</code> | ||
| − | :: | + | <syntaxhighlight lang="JavaScript"> |
| + | { | ||
| + | "message": "...", | ||
| + | "log": [ ... ] (optional) | ||
| + | } | ||
| + | </syntaxhighlight> | ||
| − | :<code>400, 500</code>: | + | :<code>200</code>: <code>"message": "ok"</code> |
| + | :<code>400, 500</code>: <code>"message": "<error message>"</code> | ||
Version vom 17. September 2019, 16:29 Uhr
PUT /service/crud/owl
- Updates an OWL ontology. If the ontology does not exist, it is created. The TBOX of the ontology is mapped to a code system version of the CTS2 information model.
- Request Body
text/plain- owl text stream
- Query Parameters
- uri (type:
string, occurrence:required)- uri of the ontology. Note that the pair (
uri,version) uniquely defines a code system version within CTS2-LE
- uri of the ontology. Note that the pair (
- version (type:
string, occurrence:required)- version of the ontology
- resourceId (type:
string, occurrence:required)- unique CTS2-LE identifier (not an URI) of the code system version (also displayed in the navigator)
- groupName (type:
string, occurrence:required)- group corresponding to the terminology tree in the navigator
- defaultLanguage (type:
string, occurrence:optional, default:en)- default language of the ontology
- Responses
application/json
{
"message": "...",
"log": [ ... ] (optional)
}
200:"message": "ok"400, 500:"message": "<error message>"