diff --git a/loterre-resolvers/v1/P66/expand.ini b/loterre-resolvers/v1/P66/expand.ini index ecd2827..e9ae7ba 100644 --- a/loterre-resolvers/v1/P66/expand.ini +++ b/loterre-resolvers/v1/P66/expand.ini @@ -1,18 +1,30 @@ # OpenAPI Documentation - JSON format (dot notation) post.operationId = post-v1-P66-expand +post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/P66/fr/ +post.summary = verbalisation à partir d'un tableau d'objets avec à minima un champ value contenant des termes post.responses.default.description = Return all objects with enrich fields post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Enrich on field of each Object with a SKOS concept -post.requestBody.required = true +post.tags.0 = loterre-resolvers +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = Amygdala +post.requestBody.content.application/json.example.1.id = 2 +post.requestBody.content.application/json.example.1.value = Frontal lobe +post.requestBody.content.application/json.example.2.id = 3 +post.requestBody.content.application/json.example.2.value = metamemory 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 concept SKOS en JSON post.parameters.0.in = query -post.parameters.0.name = path -post.parameters.0.schema.type = string -post.parameters.0.description = The path in each object to enrcih with a SKOS Cocnept -post.parameters.1.in = query -post.parameters.1.name = indent -post.parameters.1.schema.type = boolean -post.parameters.1.description = Indent or not the JSON Result +post.parameters.0.name = indent +post.parameters.0.schema.type = boolean +post.parameters.0.description = Indent or not the JSON Result [env] path = primer diff --git a/loterre-resolvers/v1/P66/identify.ini b/loterre-resolvers/v1/P66/identify.ini index b541e2d..5256e3e 100644 --- a/loterre-resolvers/v1/P66/identify.ini +++ b/loterre-resolvers/v1/P66/identify.ini @@ -65,9 +65,6 @@ path = value.id value = get('value.id') -path = value.cartographyCode -value = get('value.value.inist$lodexPlacenameCode/$t') - path = value.about value = get('value.value.rdf$about') @@ -77,27 +74,11 @@ path = value.prefLabel@en value = get('value.value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.$t).shift() -path = value.wikidataURI -value = get("value.value.wdt$P36/rdf$resource") - -path = value.geonameURI -value = get('value.value.gn$geonamesID/$t').prepend('https://www.geonames.org/') - -path = value.countryCode -value = get('value.value.gn$countryCode/$t') - -path = value.latitude -value = get('value.value.geo$lat/$t') - -path = value.longitude -value = get('value.value.geo$long/$t') - path = value.localization@en value = get('value.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.value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.$t).shift()) - [dump] indent = env('indent', false)