diff --git a/loterre-resolvers/v1/MDL/identify.ini b/loterre-resolvers/v1/MDL/identify.ini new file mode 100644 index 0000000..93e00ba --- /dev/null +++ b/loterre-resolvers/v1/MDL/identify.ini @@ -0,0 +1,67 @@ +# OpenAPI Documentation - JSON format (dot notation) +mimeType = application/json + +post.operationId = post-v1-MDL-identify +post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/MDL/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 = Adrastea +post.requestBody.content.application/json.example.1.value = stellar aberration +post.requestBody.content.application/json.example.2.value = space probe +post.responses.default.content.application/json.example.0.value.id = Adrastea +post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/MDL-Z3SVLVDF-H +post.responses.default.content.application/json.example.0.value.prefLabel@fr = Adrastée +post.responses.default.content.application/json.example.0.value.prefLabel@en = Adrastea +post.responses.default.content.application/json.example.0.value.localization@en.0 = Jupiter satellite +post.responses.default.content.application/json.example.0.value.localization@fr.0 = satellite de Jupiter +post.responses.default.content.application/json.example.1.value.id = stellar aberration +post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/MDL-RRS7LWZ0-S +post.responses.default.content.application/json.example.1.value.prefLabel@fr = aberration stellaire +post.responses.default.content.application/json.example.1.value.prefLabel@en = stellar aberration +post.responses.default.content.application/json.example.1.value.localization@en.0 = astrometry +post.responses.default.content.application/json.example.1.value.localization@fr.0 = astrométrie +post.responses.default.content.application/json.example.2.value.id = space probe +post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/MDL-MX276TJ6-Z +post.responses.default.content.application/json.example.2.value.prefLabel@fr = sonde spatiale +post.responses.default.content.application/json.example.2.value.prefLabel@en = space probe +post.responses.default.content.application/json.example.2.value.localization@en.0 = astronomical instrument +post.responses.default.content.application/json.example.2.value.localization@fr.0 = instrument astronomique +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/MDL.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