CTS2-LE REST API: OWL TBOX Update

Aus CTS2-LE
Zur Navigation springen Zur Suche springen

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 identifies a code system version within CTS2-LE
version (type: string, occurrence: required)
version of the ontology
isDefaultVersion (type: boolean, occurrence: optional, default: true)
this version is the default 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
note (type: string, occurrence: optional)
ontology notes
inputFilePath (type: string, occurrence: optional)
supersedes the request body with the remote file path (in docker/kubernetes/openshift context this must be a accessable volume path)
Responses
application/json
{
   "message": "...",
   "log": [ ... ] (optional)
}
200: "message": "ok"
400, 500: "message": "<error message>"