diff --git a/loterre-resolvers/v1/N9J/identify.ini b/loterre-resolvers/v1/N9J/identify.ini index b45265b..8b319a7 100644 --- a/loterre-resolvers/v1/N9J/identify.ini +++ b/loterre-resolvers/v1/N9J/identify.ini @@ -1,44 +1,43 @@ # OpenAPI Documentation - JSON format (dot notation) - mimeType = application/json - post.operationId = post-v1-N9J-identify - post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/N9J/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 = postsecondary education - post.requestBody.content.application/json.example.1.value = environmental philosophy - post.requestBody.content.application/json.example.2.value = double victimization - post.responses.default.content.application/json.example.0.value.id = postsecondaryeducation - post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/N9J-KW26KF4B-D - post.responses.default.content.application/json.example.0.value.prefLabelen = postsecondary education - post.responses.default.content.application/json.example.0.value.localizationen.0 = higher education - post.responses.default.content.application/json.example.1.value.id = environmentalphilosophy - post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/N9J-JN8WW4B6-H - post.responses.default.content.application/json.example.1.value.prefLabelen = environmental philosophy - post.responses.default.content.application/json.example.1.value.localizationen.0 = research/theoretical frameworks - post.responses.default.content.application/json.example.2.value.id = doublevictimization - post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/N9J-TZ9NJ17N-5 - post.responses.default.content.application/json.example.2.value.prefLabelen = double victimization - post.responses.default.content.application/json.example.2.value.localizationen.0 = criminal justice system - 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/N9J.cfg - [delegate] - file = ./v1/process.cfg - [swing] - test = get('value').isObject() - [swing/replace] - path = value.about - value = get('value.rdf$about') - - path = value.prefLabel@en - value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift() - path = value.localization@en - value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift()) - - [delegate] - file = ./v1/send.cfg +mimeType = application/json +post.operationId = post-v1-N9J-identify +post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/N9J/fr/ (thésaurus SAGE) +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.id = 1 +post.requestBody.content.application/json.example.0.value = postsecondary education +post.requestBody.content.application/json.example.1.id = 2 +post.requestBody.content.application/json.example.1.value = environmental philosophy +post.requestBody.content.application/json.example.2.id = 3 +post.requestBody.content.application/json.example.2.value = double victimization +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.requestBody.required = true +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = {...} +post.responses.default.content.application/json.example.1.id = 2 +post.responses.default.content.application/json.example.1.value = {...} +post.responses.default.content.application/json.example.2.id = 3 +post.responses.default.content.application/json.example.2.value = {...} +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.responses.default.description = Les prefixes DOI en verion textuel +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/N9J.cfg +[delegate] +file = ./v1/process.cfg +[swing] +test = get('value').isObject() +[swing/replace] +path = value.about +value = get('value.rdf$about') + +path = value.prefLabel@en +value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift() +path = value.localization@en +value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift()) + +[delegate] +file = ./v1/send.cfg