CTS2-LE REST API: OWL Update: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Billig (Diskussion | Beiträge) |
Billig (Diskussion | Beiträge) (→Operation Syntax) |
||
| Zeile 1: | Zeile 1: | ||
| + | Updates an OWL ontology. If the ontology does not exist, it is created. The ontology is mapped to a code system version of the CTS2 information model. | ||
| + | |||
== Operation Syntax == | == Operation Syntax == | ||
| − | |||
| − | |||
;Signature | ;Signature | ||
Version vom 12. Oktober 2016, 20:38 Uhr
Updates an OWL ontology. If the ontology does not exist, it is created. The ontology is mapped to a code system version of the CTS2 information model.
Operation Syntax
- Signature
- Response webCts2Le.service.crud.OwlResource.update(
- @QueryParam(value="uri") String uri,
- @QueryParam(value="version") String version,
- @QueryParam(value="isDefaultVersion") @DefaultValue(value="true") boolean isDefaultVersion,
- @QueryParam(value="resourceId") String resourceId,
- @QueryParam(value="groupName") String groupName,
- @QueryParam(value="defaultLanguage") @DefaultValue(value="en") String defaultLanguage,
- @QueryParam(value="mappingSpec") String mappingSpec)
- @POST
- @Path(value="/service/crud/owl/update")
- @Consumes(value={"application/xml"})
- @Produces(value={"application/xml"})
- Parameters
uri- uri of the ontology. Note that the pair (
uri,version) uniquely defines a code system version within CTS2-LE Cardinality: 1..1
- uri of the ontology. Note that the pair (
version- version of the ontology
Cardinality: 1..1
isDefaultVersion- store as default version
Cardinality: 0..1
resourceId- unique CTS2-LE identifier (not an URI) of the code system version (also displayed in the navigator)
Cardinality: 1..1
groupName- group corresponding to the terminology tree in the navigator
Cardinality: 0..1
defaultLanguage- default language of the code system version
Cardinality: 0..1
mappingSpec- json string of form {designations: [{propertyRegex:
p, languageSelector:s, role:r},...]} wherepis an regex,sis an integer (as quoted string) or '@' androlematching regex (PREFERRED)|(ALTERNATIVE).
semantics: Let (R, P, L) be a triple. If local name of P matchespthen a designation for R with value L is added. Ifsis '@' then the designation language is the lang tag of L. Ifsis integer i then the lang tag is the the lower case content of the i-th capturing group ofp.ris the role of the designation. Cardinality: 0..1
- json string of form {designations: [{propertyRegex:
- Consumed POST Body
OWL stream.
- Cardinality: 1..1
- Result
- empty response if no error occurs otherwise an error XML.
- Example
http://{{host_port}}/WebCts2LE/service/crud/owl/update
?uri=http://www.fao.org/countryprofiles/geoinfo/geopolitical/resource
&version=1.1
&resourceId=FAO-Geopolitical-ontology
&groupName=DEMIS2
&mappingSpec={designations: [{propertyRegex: 'nameOfficial(.*)', languageSelector: '1', role: 'PREFERRED'}]}