diff --git a/loterre-resolvers/v1/BVM/identify.ini b/loterre-resolvers/v1/BVM/identify.ini index ac1d6d8..3f813f7 100644 --- a/loterre-resolvers/v1/BVM/identify.ini +++ b/loterre-resolvers/v1/BVM/identify.ini @@ -1,56 +1,59 @@ # OpenAPI Documentation - JSON format (dot notation) - mimeType = application/json - post.operationId = post-v1-BVM-identify - post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/BVM/fr/ (NetsCity) - 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 = Abbeville - post.requestBody.content.application/json.example.1.value = Montpellier - post.requestBody.content.application/json.example.2.value = SOPHIA-ANTIPOLIS - post.responses.default.content.application/json.example.0.value.id = Abbeville - post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/BVM-VJ0FXNWZ-C - post.responses.default.content.application/json.example.0.value.prefLabel@fr = Abbeville - post.responses.default.content.application/json.example.0.value.prefLabel@en = Abbeville - post.responses.default.content.application/json.example.0.value.localization@en.0 = Somme (department) - post.responses.default.content.application/json.example.0.value.localization@fr.0 = Département de la Somme - post.responses.default.content.application/json.example.1.value.id = Montpellier - post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/BVM-DLVD94D5-7 - post.responses.default.content.application/json.example.1.value.prefLabel@fr = Montpellier - post.responses.default.content.application/json.example.1.value.prefLabel@en = Montpellier - post.responses.default.content.application/json.example.1.value.localization@en.0 = Hérault (department) - post.responses.default.content.application/json.example.1.value.localization@fr.0 = Département de l'Hérault - post.responses.default.content.application/json.example.2.value.id = SOPHIA-ANTIPOLIS - post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/BVM-BX8ZQHLQ-L - post.responses.default.content.application/json.example.2.value.prefLabel@fr = SOPHIA-ANTIPOLIS - post.responses.default.content.application/json.example.2.value.prefLabel@en = SOPHIA-ANTIPOLIS - post.responses.default.content.application/json.example.2.value.localization@en.0 = Alpes-Maritimes (department) - post.responses.default.content.application/json.example.2.value.localization@fr.0 = Département des Alpes-Maritimes - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.responses.default.description = Les concepts 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/BVM.cfg - [delegate] - file = ./v1/process.cfg - [swing] - test = get('value').isObject() - [swing/replace] - path = id - value = get('id') - path = value.id - value = get('value.id') - 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.$t).shift() - path = value.prefLabel@en - value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.$t).shift() - path = value.localization@en - value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'en')).map(x => x.$t).shift()) - path = value.localization@fr - value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.$t).shift()) - [delegate] - file = ./v1/send.cfg +mimeType = application/json +post.operationId = post-v1-BVM-identify +post.description = Associer une communes de France au vocabulaire Loterre correspondant - https://www.loterre.fr/skosmos/BVM/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.id = 1 +post.requestBody.content.application/json.example.0.value = Nancy +post.requestBody.content.application/json.example.1.id = 2 +post.requestBody.content.application/json.example.1.value = Pagny sur Moselle +post.requestBody.content.application/json.example.2.id = 3 +post.requestBody.content.application/json.example.2.value = Trifouilly +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/BVM.cfg +[delegate] +file = ./v1/process.cfg +[swing] +test = get('value').isObject() +[swing/replace] +path = id +value = get('id') +path = value.id +value = get('value.id') +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.$t).shift() +path = value.prefLabel@en +value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.$t).shift() +path = value.wikidataURI +value = get("value.wdt$P36/rdf$resource") +path = value.geonameURI +value = get('value.gn$geonamesID/$t').prepend('https://www.geonames.org/') +path = value.countryCode +value = get('value.gn$countryCode/$t') +path = value.latitude +value = get('value.geo$lat/$t') +path = value.longitude +value = get('value.geo$long/$t') +path = value.localization@en +value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'en')).map(x => x.$t).shift()) +path = value.localization@fr +value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.$t).shift()) +[delegate] +file = ./v1/send.cfg