# OpenAPI Documentation - JSON format (dot notation)
mimeType = application/json
post.operationId = post-v1-3JP-identify
post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/3JP/fr/
post.summary = verbalisation à partir d'un tableau d'objets avec à minima un champ value contenant des termes
post.tags.0 = loterre-resolvers
post.requestBody.content.application/json.example.0.value = academism
post.requestBody.content.application/json.example.1.value = illiteracy
post.requestBody.content.application/json.example.2.value = altruism
post.responses.default.content.application/json.example.0.value.id = abstraction
post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/3JP-TP30DRV5-J
post.responses.default.content.application/json.example.0.value.prefLabel@fr = académisme
post.responses.default.content.application/json.example.0.value.prefLabel@en = academism
post.responses.default.content.application/json.example.1.value.id = illiteracy
post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/3JP-W52HC098-H
post.responses.default.content.application/json.example.1.value.prefLabel@fr = analphabétisme
post.responses.default.content.application/json.example.1.value.prefLabel@en = illiteracy
post.responses.default.content.application/json.example.2.value.id = altruism
post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/3JP-WWXKVTCF-4
post.responses.default.content.application/json.example.2.value.prefLabel@fr = altruisme
post.responses.default.content.application/json.example.2.value.prefLabel@en = altruism
post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream
post.responses.default.description = Les concept SKOS en JSON
post.parameters.0.description = Indenter le JSON résultant
post.parameters.0.in = query
post.parameters.0.name = indent
post.parameters.0.schema.type = boolean
[delegate]
file = ./v1/3JP.cfg
[delegate]
file = ./v1/process.cfg
[swing]
test = get('value').isObject()
[swing/replace]
path = value.about
value = get('value.rdf$about')
path = value.prefLabel@fr
value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()
path = value.prefLabel@en
value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift()
[delegate]
file = ./v1/send.cfg