diff --git a/loterre-resolvers/config.json b/loterre-resolvers/config.json deleted file mode 100644 index 832e0cd..0000000 --- a/loterre-resolvers/config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "environnement": { - "EZS_TITLE": "Loterre resolvers", - "EZS_DESCRIPTION": "Résolveurs pour des terminologies Loterre", - "EZS_METRICS": true, - "EZS_CONCURRENCY": 4, - "EZS_NSHARDS": 32, - "EZS_CACHE": true, - "EZS_VERBOSE": false, - "CRON_VERBOSE": false, - "NODE_OPTIONS": "--max_old_space_size=1024", - "NODE_ENV": "production" - }, - "packages": [ - "@ezs/core@3.0.0", - "@ezs/basics@2.1.0", - "@ezs/analytics@2.0.22", - "@ezs/xslt@1.3.2", - "@ezs/storage@3.1.0" - ], - "files" : { - "zip": "https://gitbucket.inist.fr/tdm/web-services/archive/loterre-resolvers/loterre-resolvers@4.4.2.zip" - } -} diff --git a/loterre-resolvers/v1/216.cfg b/loterre-resolvers/v1/216.cfg deleted file mode 100644 index 5f97b49..0000000 --- a/loterre-resolvers/v1/216.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("216.skos").join("") -path = loterreID -value = fix('216') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/216/annotate.ini b/loterre-resolvers/v1/216/annotate.ini deleted file mode 100644 index 155cb71..0000000 --- a/loterre-resolvers/v1/216/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-216-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/216.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/216/expand.ini b/loterre-resolvers/v1/216/expand.ini deleted file mode 100644 index a2e1954..0000000 --- a/loterre-resolvers/v1/216/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-216-expand - 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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/216.cfg - [delegate] - file = ./v1/process.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/216/identify.ini b/loterre-resolvers/v1/216/identify.ini deleted file mode 100644 index 7b4b844..0000000 --- a/loterre-resolvers/v1/216/identify.ini +++ /dev/null @@ -1,63 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json - -post.operationId = post-v1-216-identify -post.description = Associer des termes au vocabulaire Loterre correspondant - -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 = abstraction -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = acculturation -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = learning -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.id = abstraction -post.responses.default.content.application/json.example.0.value.about = http://data.loterre.fr/ark:/67375/216-W8HM2TM2-R -; post.responses.default.content.application/json.example.0.value.prefLabel@fr = abstraction -post.responses.default.content.application/json.example.0.value.prefLabelfr = abstraction -; post.responses.default.content.application/json.example.0.value.prefLabel@en = abstraction -post.responses.default.content.application/json.example.0.value.prefLabelen = abstraction -post.responses.default.content.application/json.example.1.id = 2 -post.responses.default.content.application/json.example.1.value.id = acculturation -post.responses.default.content.application/json.example.1.value.about = http://data.loterre.fr/ark:/67375/216-V4MVZSND-0 -; post.responses.default.content.application/json.example.1.value.prefLabel@fr = acculturation -post.responses.default.content.application/json.example.1.value.prefLabelfr = acculturation -; post.responses.default.content.application/json.example.1.value.prefLabel@en = acculturation -post.responses.default.content.application/json.example.1.value.prefLabelen = acculturation -post.responses.default.content.application/json.example.2.id = 3 -post.responses.default.content.application/json.example.2.value.id = learning -post.responses.default.content.application/json.example.2.value.about = http://data.loterre.fr/ark:/67375/216-VJM7VMG1-F -; post.responses.default.content.application/json.example.2.value.prefLabel@fr = apprentissage -post.responses.default.content.application/json.example.2.value.prefLabelfr = apprentissage -; post.responses.default.content.application/json.example.2.value.prefLabel@en = learning -post.responses.default.content.application/json.example.2.value.prefLabelen = learning -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/216.cfg -[delegate] -file = ./v1/process.cfg -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.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 diff --git a/loterre-resolvers/v1/2XK.cfg b/loterre-resolvers/v1/2XK.cfg deleted file mode 100644 index bb1d1e6..0000000 --- a/loterre-resolvers/v1/2XK.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-structures-recherche.xml").join("") - -path = loterreID -value = fix('2XK') - -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/2XK/annotate.ini b/loterre-resolvers/v1/2XK/annotate.ini deleted file mode 100644 index 9f58dac..0000000 --- a/loterre-resolvers/v1/2XK/annotate.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-2XK-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/2XK.cfg - -[delegate] -file = ./v1/annotate.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/2XK/expand.ini b/loterre-resolvers/v1/2XK/expand.ini deleted file mode 100644 index df33899..0000000 --- a/loterre-resolvers/v1/2XK/expand.ini +++ /dev/null @@ -1,31 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-2XK-expand -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 (Organismes et structures de recherche) -post.tags.0 = loterre-resolvers -post.requestBody.content.application/json.example.0.id = 1 -post.requestBody.content.application/json.example.0.value = GDR3753 -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = Inist -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = Centre Marc Bloch -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 - -[delegate] -file = ./v1/2XK.cfg - -[delegate] -file = ./v1/process.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/2XK/identify.ini b/loterre-resolvers/v1/2XK/identify.ini deleted file mode 100644 index a0197d3..0000000 --- a/loterre-resolvers/v1/2XK/identify.ini +++ /dev/null @@ -1,151 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json - -post.operationId = post-v1-2XK-identify -post.description = Associer une structure de recherche vocabulaire Loterre correspondant - https://www.loterre.fr/skosmos/2XK/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 = GDR3753 -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = Inist -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = Centre Marc Bloch -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/2XK.cfg - -[delegate] -file = ./v1/process.cfg - -[swing] -test = get('value').isObject() - -# Sélection de champs -[swing/replace] - -# id field is required in order to work with lodex -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').castArray().concat({xml$t:_.get(self, 'value.skos$prefLabel', 'n/a'), xml$lang:_.get(self, 'value.skos$prefLabel.xml$lang', 'n/a')}).filter(Boolean).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() - -path = value.codeRNSR -value = get('value.wdt$P3016', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.latitude -value = get('value.geo$lat') - -path = value.longitude -value = get('value.geo$long') - -path = value.codeUniteCNRS -value = get('value.wdt$P4550', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.libelleOrigine -value = get('value.wdt$P1705') - -path = value.sigle -value = get('value.wdt$P1813') - -path = value.type -value = get('value.wdt$P31') - -path = value.GRID -value = get('value.wdt$P2427') - -path = value.ISNI -value = get('value.wdt$P213') - -path = value.VIAF -value = get('value.wdt$P214') - -path = value.HAL -value = get('value.wdt$P6773') - -path = value.IdRef -value = get('value.wdt$P269') - -path = value.SIREN -value = get('value.wdt$P1616') - -path = value.SIRET -value = get('value.wdt$P3215') - -path = value.dateCreation -value = get('value.wdt$P580') - -path = value.dateFermeture -value = get('value.wdt$P582') - -path = value.libelleOrigine -value = get('value.wdt$P1705') - -path = value.tutellePrincipale -value = get('value.inist$tutellePrincipale', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.tutelleSecondaire -value = get('value.inist$tutelleSecondaire', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.institutPrincipal -value = get('value.inist$institutPrincipal', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.institutSecondaire -value = get('value.inist$institutSecondaire', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.delegationRegionale_dep -value = get('value.inist$dr_cnrs_dep', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.delegationRegionale_impl -value = get('value.inist$dr_cnrs_impl') - -path = value.sectionComiteNational -value = get('value.inist$sectionCN', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.portefeuilleDAS -value = get('value.inist$portefeuilleDAS', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.site -value = get('value.inist$site', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.childStructure -value = get('value.inist$structureComposite', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.replacedBy -value = get('value.cdt$isReplacedBy', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.replaces -value = get('value.cdt$replaces', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.address -value = get('value.org$siteAddress', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.homepage -value = get('value.foaf$homepage', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/3JP.cfg b/loterre-resolvers/v1/3JP.cfg deleted file mode 100644 index 920f01b..0000000 --- a/loterre-resolvers/v1/3JP.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("3JP.skos").join("") -path = loterreID -value = fix('3JP') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/3JP/annotate.ini b/loterre-resolvers/v1/3JP/annotate.ini deleted file mode 100644 index ba730a0..0000000 --- a/loterre-resolvers/v1/3JP/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-3JP-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/3JP.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/3JP/expand.ini b/loterre-resolvers/v1/3JP/expand.ini deleted file mode 100644 index 46ba2fc..0000000 --- a/loterre-resolvers/v1/3JP/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-3JP-expand - 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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/3JP.cfg - [delegate] - file = ./v1/process.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/3JP/identify.ini b/loterre-resolvers/v1/3JP/identify.ini deleted file mode 100644 index b592434..0000000 --- a/loterre-resolvers/v1/3JP/identify.ini +++ /dev/null @@ -1,46 +0,0 @@ -# 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.id = 1 -post.requestBody.content.application/json.example.0.value = academism -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = illiteracy -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = altruism -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/3JP.cfg -[delegate] -file = ./v1/process.cfg -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.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 diff --git a/loterre-resolvers/v1/73G.cfg b/loterre-resolvers/v1/73G.cfg deleted file mode 100644 index 2642bfc..0000000 --- a/loterre-resolvers/v1/73G.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("73G.skos").join("") -path = loterreID -value = fix('73G') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/73G/annotate.ini b/loterre-resolvers/v1/73G/annotate.ini deleted file mode 100644 index 293e935..0000000 --- a/loterre-resolvers/v1/73G/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-73G-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/73G.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/73G/expand.ini b/loterre-resolvers/v1/73G/expand.ini deleted file mode 100644 index d500e2c..0000000 --- a/loterre-resolvers/v1/73G/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-73G-expand - 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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/73G.cfg - [delegate] - file = ./v1/process.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/73G/identify.ini b/loterre-resolvers/v1/73G/identify.ini deleted file mode 100644 index 951b243..0000000 --- a/loterre-resolvers/v1/73G/identify.ini +++ /dev/null @@ -1,46 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json -post.operationId = post-v1-73G-identify -post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/73G/fr/ (Philosophie) -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 = absolutism -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = anachronism -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = casuistry -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/73G.cfg -[delegate] -file = ./v1/process.cfg -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.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 diff --git a/loterre-resolvers/v1/9SD.cfg b/loterre-resolvers/v1/9SD.cfg deleted file mode 100644 index cf19aa5..0000000 --- a/loterre-resolvers/v1/9SD.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-pays.xml").join("") - -path = loterreID -value = fix('9SD') - -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/9SD/annotate.ini b/loterre-resolvers/v1/9SD/annotate.ini deleted file mode 100644 index 39cd64b..0000000 --- a/loterre-resolvers/v1/9SD/annotate.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-9SD-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/9SD.cfg - -[delegate] -file = ./v1/annotate.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/9SD/expand.ini b/loterre-resolvers/v1/9SD/expand.ini deleted file mode 100644 index 1e5e468..0000000 --- a/loterre-resolvers/v1/9SD/expand.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-9SD-expand -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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/9SD.cfg - -[delegate] -file = ./v1/process.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/9SD/identify.ini b/loterre-resolvers/v1/9SD/identify.ini deleted file mode 100644 index e639b15..0000000 --- a/loterre-resolvers/v1/9SD/identify.ini +++ /dev/null @@ -1,80 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json - -post.operationId = post-v1-9SD-identify -post.description = Associer un pays ou subdivision au vocabulaire Loterre correspondant - https://www.loterre.fr/skosmos/9SD/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 = Pays de la Loire -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = Grand-Duché de Luxembourg -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = CAN -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/9SD.cfg - -[delegate] -file = ./v1/process.cfg - -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('id') - -path = value.id -value = get('value.id') - -path = value.cartographyCode -value = get('value.inist$lodexPlacenameCode.xml$t') - -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() - -path = value.wikidataURI -value = get("value.wdt$P36.rdf$resource") - -path = value.geonameURI -value = get('value.gn$geonamesID.xml$t').prepend('https://www.geonames.org/') - -path = value.countryCode -value = get('value.gn$countryCode.xml$t') - -path = value.latitude -value = get('value.geo$lat.xml$t') - -path = value.longitude -value = get('value.geo$long.xml$t') - -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()) - -path = value.localization@fr -value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()) - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/BVM.cfg b/loterre-resolvers/v1/BVM.cfg deleted file mode 100644 index 5d58aea..0000000 --- a/loterre-resolvers/v1/BVM.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("BVM.skos").join("") -path = loterreID -value = fix('BVM') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/BVM/annotate.ini b/loterre-resolvers/v1/BVM/annotate.ini deleted file mode 100644 index 0e32ba7..0000000 --- a/loterre-resolvers/v1/BVM/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-BVM-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept (NetsCity) -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 -[delegate] -file = ./v1/BVM.cfg -[delegate] -file = ./v1/annotate.cfg -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/BVM/expand.ini b/loterre-resolvers/v1/BVM/expand.ini deleted file mode 100644 index 041c6fc..0000000 --- a/loterre-resolvers/v1/BVM/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-BVM-expand -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 (NetsCity) -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 -[delegate] -file = ./v1/BVM.cfg -[delegate] -file = ./v1/process.cfg -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/BVM/identify.ini b/loterre-resolvers/v1/BVM/identify.ini deleted file mode 100644 index cc1b634..0000000 --- a/loterre-resolvers/v1/BVM/identify.ini +++ /dev/null @@ -1,67 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -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 = Vandœuvre-lès-Nancy -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = SOPHIA-ANTIPOLIS -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = Saclay -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] - -# id field is required in order to work with lodex -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.xml$t).shift() -path = value.prefLabel@en -value = get('value.skos$prefLabel').filter(y => (y.xml$lang === 'en')).map(x => x.xml$t).shift() -path = value.wikidataURI -value = get("value.wdt$P36.rdf$resource") -path = value.geonameURI -value = get('value.gn$geonamesID.xml$t', []).castArray().map(item => (item.xml$t ? item.xml$t : item)).prepend('https://www.geonames.org/') -#value = get('value.gn$geonamesID.xml$t').prepend('https://www.geonames.org/') -path = value.countryCode -value = get('value.gn$countryCode.xml$t') -path = value.latitude -value = get('value.geo$lat.xml$t') -path = value.longitude -value = get('value.geo$long.xml$t') -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()) -path = value.localization@fr -value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()) -path = value.postalCode -value = get('value.vcard$postal-code', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) -path = value.cedexPostalCode -value = get('value.inist$cedex-postal-code', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/D63.cfg b/loterre-resolvers/v1/D63.cfg deleted file mode 100644 index ed4edf9..0000000 --- a/loterre-resolvers/v1/D63.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-communes.xml").join("") - -path = loterreID -value = fix('D63') - -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/D63/annotate.ini b/loterre-resolvers/v1/D63/annotate.ini deleted file mode 100644 index 038d2ed..0000000 --- a/loterre-resolvers/v1/D63/annotate.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-D63-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/D63.cfg - -[delegate] -file = ./v1/annotate.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/D63/expand.ini b/loterre-resolvers/v1/D63/expand.ini deleted file mode 100644 index 2a78f00..0000000 --- a/loterre-resolvers/v1/D63/expand.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-D63-expand -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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/D63.cfg - -[delegate] -file = ./v1/process.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/D63/identify.ini b/loterre-resolvers/v1/D63/identify.ini deleted file mode 100644 index 7888d05..0000000 --- a/loterre-resolvers/v1/D63/identify.ini +++ /dev/null @@ -1,90 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json - -post.operationId = post-v1-D63-identify -post.description = Associer une communes de France au vocabulaire Loterre correspondant - https://www.loterre.fr/skosmos/D63/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/D63.cfg - -[delegate] -file = ./v1/process.cfg - -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('id') - -path = value.id -value = get('value.id') - -path = value.cartographyCode -value = get('value.inist$lodexPlacenameCode.xml$t') - -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() - -path = value.wikidataURI -value = get("value.wdt$P36.rdf$resource") - -path = value.geonameURI -value = get('value.gn$geonamesID.xml$t', []).castArray().map(item => (item.xml$t ? item.xml$t : item)).prepend('https://www.geonames.org/') -#value = get('value.gn$geonamesID.xml$t').prepend('https://www.geonames.org/') - -path = value.geonamesID -value = get('value.gn$geonamesID', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.countryCode -value = get('value.gn$countryCode.xml$t') - -path = value.latitude -value = get('value.geo$lat.xml$t') - -path = value.longitude -value = get('value.geo$long.xml$t') - -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()) - -path = value.localization@fr -value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()) - -path = value.postalCode -value = get('value.vcard$postal-code', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -path = value.cedexPostalCode -value = get('value.inist$cedex-postal-code', []).castArray().map(item => (item.xml$t ? item.xml$t : item)) - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/JVR.cfg b/loterre-resolvers/v1/JVR.cfg deleted file mode 100644 index 8f99e17..0000000 --- a/loterre-resolvers/v1/JVR.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] - path = primer - value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-mesh.xml").join("") - path = loterreID - value = fix('JVR') - path = weekNumber - value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - # - # A noter : - # L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI - # diff --git a/loterre-resolvers/v1/JVR/annotate.ini b/loterre-resolvers/v1/JVR/annotate.ini deleted file mode 100644 index f9fe7f2..0000000 --- a/loterre-resolvers/v1/JVR/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-JVR-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/JVR.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/JVR/expand.ini b/loterre-resolvers/v1/JVR/expand.ini deleted file mode 100644 index 388a034..0000000 --- a/loterre-resolvers/v1/JVR/expand.ini +++ /dev/null @@ -1,28 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-JVR-expand -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 (MeSH) -post.tags.0 = loterre-resolvers -post.requestBody.content.application/json.example.0.id = 1 -post.requestBody.content.application/json.example.0.value = Olfactory Bulb -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 = Neuroglia -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 -[delegate] -file = ./v1/JVR.cfg -[delegate] -file = ./v1/process.cfg -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/JVR/identify.ini b/loterre-resolvers/v1/JVR/identify.ini deleted file mode 100644 index 81a46a9..0000000 --- a/loterre-resolvers/v1/JVR/identify.ini +++ /dev/null @@ -1,50 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json -post.operationId = post-v1-JVR-identify -post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/JVR/fr/ (MeSH) -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 = Olfactory Bulb -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 = Neuroglia -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/JVR.cfg -[delegate] -file = ./v1/process.cfg -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.xml$t).shift() -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()) -path = value.localization@fr -value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()) -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/MDL.cfg b/loterre-resolvers/v1/MDL.cfg deleted file mode 100644 index d47cad1..0000000 --- a/loterre-resolvers/v1/MDL.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("MDL.skos").join("") -path = loterreID -value = fix('MDL') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/MDL/annotate.ini b/loterre-resolvers/v1/MDL/annotate.ini deleted file mode 100644 index 3188f20..0000000 --- a/loterre-resolvers/v1/MDL/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-MDL-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept (Astronomie) -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 -[delegate] -file = ./v1/MDL.cfg -[delegate] -file = ./v1/annotate.cfg -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/MDL/expand.ini b/loterre-resolvers/v1/MDL/expand.ini deleted file mode 100644 index 3d7bfe9..0000000 --- a/loterre-resolvers/v1/MDL/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-MDL-expand -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 (Astronomy thesaurus) -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 enrich with a SKOS concept -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 -[delegate] -file = ./v1/MDL.cfg -[delegate] -file = ./v1/process.cfg -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/MDL/identify.ini b/loterre-resolvers/v1/MDL/identify.ini deleted file mode 100644 index bdbaac3..0000000 --- a/loterre-resolvers/v1/MDL/identify.ini +++ /dev/null @@ -1,62 +0,0 @@ -# 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/ (Astronomie) -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 = Adrastea -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = stellar aberration -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = space probe -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/MDL.cfg - -[delegate] -file = ./v1/process.cfg - -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -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 diff --git a/loterre-resolvers/v1/N9J.cfg b/loterre-resolvers/v1/N9J.cfg deleted file mode 100644 index 3149391..0000000 --- a/loterre-resolvers/v1/N9J.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("N9J.skos").join("") -path = loterreID -value = fix('N9J') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/N9J/annotate.ini b/loterre-resolvers/v1/N9J/annotate.ini deleted file mode 100644 index 13e8907..0000000 --- a/loterre-resolvers/v1/N9J/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-N9J-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/N9J.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/N9J/expand.ini b/loterre-resolvers/v1/N9J/expand.ini deleted file mode 100644 index b69ff6d..0000000 --- a/loterre-resolvers/v1/N9J/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-N9J-expand - 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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/N9J.cfg - [delegate] - file = ./v1/process.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/N9J/identify.ini b/loterre-resolvers/v1/N9J/identify.ini deleted file mode 100644 index befb9b2..0000000 --- a/loterre-resolvers/v1/N9J/identify.ini +++ /dev/null @@ -1,47 +0,0 @@ -# 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/ (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] - -# id field is required in order to work with lodex -path = id -value = get('id') - -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 diff --git a/loterre-resolvers/v1/P21.cfg b/loterre-resolvers/v1/P21.cfg deleted file mode 100644 index b48f42f..0000000 --- a/loterre-resolvers/v1/P21.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("P21.skos").join("") -path = loterreID -value = fix('P21') -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/P21/annotate.ini b/loterre-resolvers/v1/P21/annotate.ini deleted file mode 100644 index de7733d..0000000 --- a/loterre-resolvers/v1/P21/annotate.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-P21-annotate - post.responses.default.description = Return all objects with annotate fields - post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream - post.summary = Annotate field of each Object with a SKOS concept - post.requestBody.required = true - post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/P21.cfg - [delegate] - file = ./v1/annotate.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/P21/expand.ini b/loterre-resolvers/v1/P21/expand.ini deleted file mode 100644 index 0578a6b..0000000 --- a/loterre-resolvers/v1/P21/expand.ini +++ /dev/null @@ -1,21 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) - post.operationId = post-v1-P21-expand - 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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - 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 - [delegate] - file = ./v1/P21.cfg - [delegate] - file = ./v1/process.cfg - [delegate] - file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/P21/identify.ini b/loterre-resolvers/v1/P21/identify.ini deleted file mode 100644 index 7293c19..0000000 --- a/loterre-resolvers/v1/P21/identify.ini +++ /dev/null @@ -1,46 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json -post.operationId = post-v1-P21-identify -post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/P21/fr/ (Littérature) -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 = absolutism -post.requestBody.content.application/json.example.1.id = 2 -post.requestBody.content.application/json.example.1.value = anachronism -post.requestBody.content.application/json.example.2.id = 3 -post.requestBody.content.application/json.example.2.value = casuistry -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/P21.cfg -[delegate] -file = ./v1/process.cfg -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.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 diff --git a/loterre-resolvers/v1/P66.cfg b/loterre-resolvers/v1/P66.cfg deleted file mode 100644 index 37d6bfd..0000000 --- a/loterre-resolvers/v1/P66.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("P66.skos").join("") - -path = loterreID -value = fix('P66') - -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/P66/annotate.ini b/loterre-resolvers/v1/P66/annotate.ini deleted file mode 100644 index c114041..0000000 --- a/loterre-resolvers/v1/P66/annotate.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-P66-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/P66.cfg - -[delegate] -file = ./v1/annotate.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/P66/expand.ini b/loterre-resolvers/v1/P66/expand.ini deleted file mode 100644 index b71b171..0000000 --- a/loterre-resolvers/v1/P66/expand.ini +++ /dev/null @@ -1,182 +0,0 @@ -# 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.tags.0 = loterre-resolvers -post.requestBody.content.application/json.example.0.value = Amygdala -post.requestBody.content.application/json.example.1.value = Frontal lobe -post.requestBody.content.application/json.example.2.value = metamemory -post.responses.default.content.application/json.example.0.value.id = amygdala -post.responses.default.content.application/json.example.0.value.value.rdf$about = http://data.loterre.fr/ark:/67375/P66-W52CFWZ4-9 -post.responses.default.content.application/json.example.0.value.value.dc$creator/$t = Frank Arnould -post.responses.default.content.application/json.example.0.value.value.dcterms$bibliographicCitation.0.$t = AbuHasan, Q., Reddy, V., & Siddiqui, W. (2022). Neuroanatomy, Amygdala. In StatPearls. StatPearls Publishing. http://www.ncbi.nlm.nih.gov/books/NBK537102/ -post.responses.default.content.application/json.example.0.value.value.dcterms$bibliographicCitation.1.$t = McGaugh, J. L., Cahill, L., & Roozendaal, B. (1996). Involvement of the amygdala in memory storage: Interaction with other brain systems. Proceedings of the National Academy of Sciences, 93(24), 13508–13514. doi:10.1073/pnas.93.24.13508 -post.responses.default.content.application/json.example.0.value.value.dcterms$bibliographicCitation.2.$t = Phelps, E. A. (2004). Human emotion and memory: Interactions of the amygdala and hippocampal complex. Current Opinion in Neurobiology, 14(2), 198–202. doi:10.1016/j.conb.2004.03.015 -post.responses.default.content.application/json.example.0.value.value.dcterms$bibliographicCitation.3.$t = Ressler, R. L., & Maren, S. (2019). Synaptic encoding of fear memories in the amygdala. Current Opinion in Neurobiology, 54, 54–59. doi:10.1016/j.conb.2018.08.012 -post.responses.default.content.application/json.example.0.value.value.dcterms$bibliographicCitation.4.$t = Roozendaal, B., McEwen, B. S., & Chattarji, S. (2009). Stress, memory and the amygdala. Nature Reviews Neuroscience, 10(6), 423–433. doi:10.1038/nrn2651 -post.responses.default.content.application/json.example.0.value.value.dcterms$created/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.0.value.value.dcterms$created/$t = 2017-12-04 -post.responses.default.content.application/json.example.0.value.value.dcterms$modified/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.0.value.value.dcterms$modified/$t = 2022-03-28 -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.0.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.0.$t = amygdaloid body -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.1.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.1.$t = amygdaloid complex -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.2.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.2.$t = amygdaloid nuclear complex -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.3.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.3.$t = amygdaloid nuclear groups -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.4.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.4.$t = amygdaloid nucleus -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.5.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.5.$t = archistriatum -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.6.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.6.$t = complexe amygdalien -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.7.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.7.$t = corps amygdaloïde -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.8.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$altLabel.8.$t = noyau amygdalien -post.responses.default.content.application/json.example.0.value.value.skos$definition.0.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$definition.0.$t = An almond-shaped structure in the medial temporal lobe, formed by many nuclei, involved in emotional memory. -post.responses.default.content.application/json.example.0.value.value.skos$definition.1.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$definition.1.$t = Structure du lobe temporal médian, en forme d'amande et composée de plusieurs noyaux. Elle est impliquée dans la mémoire émotionnelle. -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.0.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.0.$t = amygdalae -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.1.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.1.$t = amygdalas -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.2.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.2.$t = amygdales -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.3.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.3.$t = amygdaloid nuclei -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.4.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$hiddenLabel.4.$t = noyaux amygdaliens -post.responses.default.content.application/json.example.0.value.value.skos$prefLabel.0.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.skos$prefLabel.0.$t = amygdala -post.responses.default.content.application/json.example.0.value.value.skos$prefLabel.1.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.skos$prefLabel.1.$t = amygdale -post.responses.default.content.application/json.example.0.value.value.skos$inScheme/rdf$resource = http://data.loterre.fr/ark:/67375/P66 -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.0.rdf$resource = http://data.loterre.fr/ark:/67375/JVR/M0001044 -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.1.rdf$resource = http://purl.obolibrary.org/obo/UBERON_0001876 -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.2.rdf$resource = http://purl.org/sig/ont/fma/fma61841 -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.3.rdf$resource = http://scholarpedia.org/article/Amygdala -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.4.rdf$resource = https://en.wikipedia.org/wiki/Amygdala -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.5.rdf$resource = https://fr.wikipedia.org/wiki/Amygdale_(cerveau) -post.responses.default.content.application/json.example.0.value.value.skos$exactMatch.6.rdf$resource = https://www.wikidata.org/wiki/Q338924 -post.responses.default.content.application/json.example.0.value.value.skos$broader/rdf$resource = http://data.loterre.fr/ark:/67375/P66-D445NRM4-5 -post.responses.default.content.application/json.example.0.value.value.skos$related.0.rdf$resource = http://data.loterre.fr/ark:/67375/P66-CVKSXP7H-H -post.responses.default.content.application/json.example.0.value.value.skos$related.1.rdf$resource = http://data.loterre.fr/ark:/67375/P66-G4T4V894-V -post.responses.default.content.application/json.example.0.value.value.skos$related.2.rdf$resource = http://data.loterre.fr/ark:/67375/P66-J6P7BVWC-2 -post.responses.default.content.application/json.example.0.value.value.skos$related.3.rdf$resource = http://data.loterre.fr/ark:/67375/P66-VSZT26MD-V -post.responses.default.content.application/json.example.0.value.value.skos$related.4.rdf$resource = http://data.loterre.fr/ark:/67375/P66-X4ZVD1JP-3 -post.responses.default.content.application/json.example.0.value.value.localization.0.rdf$about = http://data.loterre.fr/ark:/67375/P66-D445NRM4-5 -post.responses.default.content.application/json.example.0.value.value.localization.0.skos$prefLabel.0.xml$lang = fr -post.responses.default.content.application/json.example.0.value.value.localization.0.skos$prefLabel.0.$t = lobe temporal médian -post.responses.default.content.application/json.example.0.value.value.localization.0.skos$prefLabel.1.xml$lang = en -post.responses.default.content.application/json.example.0.value.value.localization.0.skos$prefLabel.1.$t = medial temporal lobe -post.responses.default.content.application/json.example.1.value.id = frontallobe -post.responses.default.content.application/json.example.1.value.value.rdf$about = http://data.loterre.fr/ark:/67375/P66-KHRWNS4W-Q -post.responses.default.content.application/json.example.1.value.value.dc$creator/$t = Frank Arnould -post.responses.default.content.application/json.example.1.value.value.dcterms$created/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.1.value.value.dcterms$created/$t = 2018-08-03 -post.responses.default.content.application/json.example.1.value.value.dcterms$modified/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.1.value.value.dcterms$modified/$t = 2022-03-30 -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.0.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.0.$t = cortex frontal -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.1.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.1.$t = frontal cortex -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.2.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.2.$t = frontal region -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.3.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$altLabel.3.$t = région frontale -post.responses.default.content.application/json.example.1.value.value.skos$definition.0.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$definition.0.$t = Lobe located at the front of the cerebrum. -post.responses.default.content.application/json.example.1.value.value.skos$definition.1.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$definition.1.$t = Lobe situé à l'avant du cerveau. -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.0.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.0.$t = frontal lobes -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.1.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.1.$t = frontal regions -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.2.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.2.$t = lobes frontaux -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.3.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$hiddenLabel.3.$t = régions frontales -post.responses.default.content.application/json.example.1.value.value.skos$prefLabel.0.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.skos$prefLabel.0.$t = frontal lobe -post.responses.default.content.application/json.example.1.value.value.skos$prefLabel.1.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.skos$prefLabel.1.$t = lobe frontal -post.responses.default.content.application/json.example.1.value.value.skos$inScheme/rdf$resource = http://data.loterre.fr/ark:/67375/P66 -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.0.rdf$resource = http://data.loterre.fr/ark:/67375/JVR/M0008848 -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.1.rdf$resource = http://purl.obolibrary.org/obo/UBERON_0005838 -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.2.rdf$resource = http://purl.obolibrary.org/obo/UBERON_0016525 -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.3.rdf$resource = http://purl.org/sig/ont/fma/fma61824 -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.4.rdf$resource = https://en.wikipedia.org/wiki/Frontal_lobe -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.5.rdf$resource = https://fr.wikipedia.org/wiki/Lobe_frontal -post.responses.default.content.application/json.example.1.value.value.skos$exactMatch.6.rdf$resource = https://www.wikidata.org/wiki/Q749520 -post.responses.default.content.application/json.example.1.value.value.skos$broader/rdf$resource = http://data.loterre.fr/ark:/67375/P66-J7P6ZTDT-6 -post.responses.default.content.application/json.example.1.value.value.skos$narrower/rdf$resource = http://data.loterre.fr/ark:/67375/P66-PLLK6NVV-Z -post.responses.default.content.application/json.example.1.value.value.skos$related.0.rdf$resource = http://data.loterre.fr/ark:/67375/P66-DS4GQ28N-J -post.responses.default.content.application/json.example.1.value.value.skos$related.1.rdf$resource = http://data.loterre.fr/ark:/67375/P66-S1P5HN7D-Z -post.responses.default.content.application/json.example.1.value.value.skos$related.2.rdf$resource = http://data.loterre.fr/ark:/67375/P66-XJ333KQF-6 -post.responses.default.content.application/json.example.1.value.value.localization.0.rdf$about = http://data.loterre.fr/ark:/67375/P66-J7P6ZTDT-6 -post.responses.default.content.application/json.example.1.value.value.localization.0.skos$prefLabel.0.xml$lang = en -post.responses.default.content.application/json.example.1.value.value.localization.0.skos$prefLabel.0.$t = brain lobe -post.responses.default.content.application/json.example.1.value.value.localization.0.skos$prefLabel.1.xml$lang = fr -post.responses.default.content.application/json.example.1.value.value.localization.0.skos$prefLabel.1.$t = lobe cérébral -post.responses.default.content.application/json.example.2.value.id = metamemory -post.responses.default.content.application/json.example.2.value.value.rdf$about = http://data.loterre.fr/ark:/67375/P66-RGFWPLNW-K -post.responses.default.content.application/json.example.2.value.value.dc$creator/$t = Frank Arnould -post.responses.default.content.application/json.example.2.value.value.dcterms$bibliographicCitation.0.$t = Dunlosky, J., & Bjork, R. A. (Eds.). (2013). Handbook of Metamemory and Memory. Psychology Press. -post.responses.default.content.application/json.example.2.value.value.dcterms$bibliographicCitation.1.$t = Dunlosky, J., & Tauber, S. (Eds.). (2016). The Oxford handbook of metamemory. Oxford University Press. -post.responses.default.content.application/json.example.2.value.value.dcterms$bibliographicCitation.2.$t = Flavell, J. H. (1971). First discussant’s comments: What is memory development the development of? Human Development, 14(4), 272–278. doi:10.1159/000271221 -post.responses.default.content.application/json.example.2.value.value.dcterms$bibliographicCitation.3.$t = Le Berre, A.-P., Eustache, F., & Beaunieux, H. (2009). La métamémoire : théorie et clinique. Revue de neuropsychologie, 1(4), 312–320. doi:10.3917/rne.014.0312 -post.responses.default.content.application/json.example.2.value.value.dcterms$created/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.2.value.value.dcterms$created/$t = 2017-12-04 -post.responses.default.content.application/json.example.2.value.value.dcterms$modified/rdf$datatype = http://www.w3.org/2001/XMLSchema#date -post.responses.default.content.application/json.example.2.value.value.dcterms$modified/$t = 2022-04-29 -post.responses.default.content.application/json.example.2.value.value.skos$definition.0.xml$lang = fr -post.responses.default.content.application/json.example.2.value.value.skos$definition.0.$t = La métamémoire concerne 1) les connaissances que possède une personne sur la mémoire en général et sur sa mémoire en particulier et 2) les processus de surveillance (monitoring) et de contrôle de sa mémoire pendant la réalisation d'une tâche mnésique. -post.responses.default.content.application/json.example.2.value.value.skos$definition.1.xml$lang = en -post.responses.default.content.application/json.example.2.value.value.skos$definition.1.$t = Metamemory is 1) the knowledge that a person has about memory in general and about his /her memory in particular and 2) the monitoring and control processes during a memory task. -post.responses.default.content.application/json.example.2.value.value.skos$hiddenLabel.0.xml$lang = en -post.responses.default.content.application/json.example.2.value.value.skos$hiddenLabel.0.$t = meta-memory -post.responses.default.content.application/json.example.2.value.value.skos$hiddenLabel.1.xml$lang = en -post.responses.default.content.application/json.example.2.value.value.skos$hiddenLabel.1.$t = metamemorial -post.responses.default.content.application/json.example.2.value.value.skos$prefLabel.0.xml$lang = en -post.responses.default.content.application/json.example.2.value.value.skos$prefLabel.0.$t = metamemory -post.responses.default.content.application/json.example.2.value.value.skos$prefLabel.1.xml$lang = fr -post.responses.default.content.application/json.example.2.value.value.skos$prefLabel.1.$t = métamémoire -post.responses.default.content.application/json.example.2.value.value.skos$inScheme/rdf$resource = http://data.loterre.fr/ark:/67375/P66 -post.responses.default.content.application/json.example.2.value.value.skos$exactMatch.0.rdf$resource = http://data.loterre.fr/ark:/67375/JVR/M000599742 -post.responses.default.content.application/json.example.2.value.value.skos$exactMatch.1.rdf$resource = https://en.wikipedia.org/wiki/Metamemory -post.responses.default.content.application/json.example.2.value.value.skos$exactMatch.2.rdf$resource = https://www.cognitiveatlas.org/concept/id/trm_4a3fd79d0b94f -post.responses.default.content.application/json.example.2.value.value.skos$exactMatch.3.rdf$resource = https://www.wikidata.org/wiki/Q6822984 -post.responses.default.content.application/json.example.2.value.value.inist$isMeasuredBy.0.rdf$resource = http://data.loterre.fr/ark:/67375/P66-BGQF72PC-L -post.responses.default.content.application/json.example.2.value.value.inist$isMeasuredBy.1.rdf$resource = http://data.loterre.fr/ark:/67375/P66-K67VTJLD-W -post.responses.default.content.application/json.example.2.value.value.inist$isMeasuredBy.2.rdf$resource = http://data.loterre.fr/ark:/67375/P66-DFH3S91P-S -post.responses.default.content.application/json.example.2.value.value.inist$isMeasuredBy.3.rdf$resource = http://data.loterre.fr/ark:/67375/P66-BSB0W4RP-6 -post.responses.default.content.application/json.example.2.value.value.skos$broader/rdf$resource = http://data.loterre.fr/ark:/67375/P66-P3PC7CZ3-D -post.responses.default.content.application/json.example.2.value.value.skos$narrower.0.rdf$resource = http://data.loterre.fr/ark:/67375/P66-WM9BNKJ9-8 -post.responses.default.content.application/json.example.2.value.value.skos$narrower.1.rdf$resource = http://data.loterre.fr/ark:/67375/P66-XNPMCKS4-S -post.responses.default.content.application/json.example.2.value.value.skos$related/rdf$resource = http://data.loterre.fr/ark:/67375/P66-QZXRZM22-5 -post.responses.default.content.application/json.example.2.value.value.localization.0.rdf$about = http://data.loterre.fr/ark:/67375/P66-P3PC7CZ3-D -post.responses.default.content.application/json.example.2.value.value.localization.0.skos$prefLabel.0.xml$lang = en -post.responses.default.content.application/json.example.2.value.value.localization.0.skos$prefLabel.0.$t = memory -post.responses.default.content.application/json.example.2.value.value.localization.0.skos$prefLabel.1.xml$lang = fr -post.responses.default.content.application/json.example.2.value.value.localization.0.skos$prefLabel.1.$t = mémoire -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 = indent -post.parameters.0.schema.type = boolean -post.parameters.0.description = Indent or not the JSON Result - -[delegate] -file = ./v1/P66.cfg - -[delegate] -file = ./v1/process.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/P66/identify.ini b/loterre-resolvers/v1/P66/identify.ini deleted file mode 100644 index 11985c8..0000000 --- a/loterre-resolvers/v1/P66/identify.ini +++ /dev/null @@ -1,59 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -mimeType = application/json - -post.operationId = post-v1-P66-identify -post.description = Associer des termes au vocabulaire Loterre correspondant - https://skosmos.loterre.fr/P66/fr/ (Thésaurus Mémoire) -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 = 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 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/P66.cfg - -[delegate] -file = ./v1/process.cfg - -[swing] -test = get('value').isObject() -[swing/replace] - -# id field is required in order to work with lodex -path = id -value = get('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.xml$t).shift() - -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()) - -path = value.localization@fr -value = get('value.localization').map((x) => x.skos$prefLabel.filter(y => (y.xml$lang === 'fr')).map(x => x.xml$t).shift()) - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/QX8.cfg b/loterre-resolvers/v1/QX8.cfg deleted file mode 100644 index da0a2db..0000000 --- a/loterre-resolvers/v1/QX8.cfg +++ /dev/null @@ -1,14 +0,0 @@ -[env] -path = primer -value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("QX8.skos").join("") - -path = loterreID -value = fix('QX8') - -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/QX8/annotate.ini b/loterre-resolvers/v1/QX8/annotate.ini deleted file mode 100644 index 82ef984..0000000 --- a/loterre-resolvers/v1/QX8/annotate.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-QX8-annotate -post.responses.default.description = Return all objects with annotate fields -post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream -post.summary = Annotate field of each Object with a SKOS concept -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/QX8.cfg - -[delegate] -file = ./v1/annotate.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/QX8/expand.ini b/loterre-resolvers/v1/QX8/expand.ini deleted file mode 100644 index 207e172..0000000 --- a/loterre-resolvers/v1/QX8/expand.ini +++ /dev/null @@ -1,24 +0,0 @@ -# OpenAPI Documentation - JSON format (dot notation) -post.operationId = post-v1-QX8-expand -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.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream -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 - -[delegate] -file = ./v1/QX8.cfg - -[delegate] -file = ./v1/process.cfg - -[delegate] -file = ./v1/send.cfg diff --git a/loterre-resolvers/v1/annotate.cfg b/loterre-resolvers/v1/annotate.cfg deleted file mode 100644 index 62acb2c..0000000 --- a/loterre-resolvers/v1/annotate.cfg +++ /dev/null @@ -1,109 +0,0 @@ -[use] -plugin = basics -plugin = xslt - -# on définit quelques variables globales -[env] -path = lang -value = env('lang', 'en') - -path = skosFilename -value = fix(`${env('TMPDIR', '/tmp')}/${env('loterreID', 'noid')}.skos`) - -# On reçoit un tableau (array) en JSON que l'on découpe -[JSONParse] -separator = * - -# Pour le premier élement du tableau -[singleton] - -# on ajoute le nom du fichier skos qu el'on utilisera -[singleton/assign] -path = skos-file -value = env('skosFilename') - -# et on le télécharge (sauf si le fichier est déjà dans le cache) -[singleton/expand] -path = skos-file -file = ./v1/fetch.cfg -cacheName = fix(`${env('loterreID', 'noid')}-${env('weekNumber')}`) - -# on reformat le json pour une structure compatible avec le le json2xml de saxon -[replace] -path = string.0.key -value = id - -path = string.0.$t -value = get('id') - -path = string.1.key -value = value - -path = string.1.$t -value = get('value') - -# On fait des paquets de 10 objets -[group] -length = 10 - -[replace] -path = items -value = self() - -# Pour chaqu paquet de 10 objets -[map] -path = items - -# On transform le JSON en chaine XML -[map/XMLString] -rootElement = array -contentElement = map -rootNamespace = http://www.w3.org/2005/xpath-functions - -# On tranform le XML produit via une feuille xslt -[map/xslt] -stylesheet = ./v1/annotate.xsl -param = env('lang').prepend('lang=') -param = env('skosFilename').prepend('vocabulary=') -; For local test param = vocabulary=/src/temp/QX8.skos - -# on récupére le xml produit pour le transformer en JSON -[map/XMLParse] -separator = /root/record - -# On dégroupe les paquets de 10 -[exchange] -value = get('items') - -# pour en faire un flux unique -[ungroup] - -# on parcours le annotation produit par le feuille xsl -[map] -path = annotation - -# on simplfie la structure json fabriquée automatique par xmlparse -[map/OBJFlatten] - -# on supprimer les clé $t générée par xmlparse -[map/exchange] -value = self().mapKeys((value, key) => key.replace(/\/\$t/g, '')) - -[map/assign] -path = arbreHierarchique -value = get('arbreHierarchique', []).castArray().map(item => (item.$t ? item.$t : item)) - -path = termeReconnu -value = get('termeReconnu', []).castArray().map(item => (item.$t ? item.$t : item)) - -# on renome la clé annoation en value pour être réciproque avec l'input -[replace] -path = id -value = get('id') -path = value -value = get('annotation', []) - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/annotate.xsl b/loterre-resolvers/v1/annotate.xsl deleted file mode 100644 index 4430c40..0000000 --- a/loterre-resolvers/v1/annotate.xsl +++ /dev/null @@ -1,501 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - fr - pref - - - - - - - - - - - - fr - syn - - - - - - - - - - - - - - - en - pref - - - - - - - - - - - - - en - syn - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fre - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - eng - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - 1 - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - - Loterre_Annot - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/loterre-resolvers/v1/combine.cfg b/loterre-resolvers/v1/combine.cfg deleted file mode 100644 index 36c2473..0000000 --- a/loterre-resolvers/v1/combine.cfg +++ /dev/null @@ -1,63 +0,0 @@ -# Configuration du chemin de stockage des bases des données locales -[env] -path = location -value = fix(`${env('TMPDIR', '/tmp')}/databases/${env('weekNumber')}/${env('loterreID', 'noid')}`) - -# STEP 0 : On noramise la valeur à rechercher (de la même manière que l'index a été créé) -[assign] -path = value -value = fix(_.deburr(String(self.value).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase())) - -path = loterreID -value = env('loterreID') - -# primer contient l'URL à Télécharger (voir download.ini) -path = primer -value = env('primer') - -# STEP 1 : On vérifie si le vocabulaire est présent localement -[load] -location = env('location') -domain = fix('loterre-vocabulaires').append('-loaded') -path = loterreID -target = isAlreadyDownload - -# STEP 1.1 : si il n'est pas présent localement -[swing] -test = get('isAlreadyDownload').isEmpty() - -# STEP 1.2 : on mémorise le fait que l'on va en faire une copie local -[swing/save] -location = env('location') -domain = fix('loterre-vocabulaires').append('-loaded') -path = loterreID - -# STEP 1.3 : On télécharge la version distante en XML, on la convertit en JSON et on sauvegarde localement -[swing/singleton] -file = ./v1/download.cfg - -# STEP 1.4 : Avec la version JSON fraichement généré on construit un index inversé -[swing/singleton] -file = ./v1/compile.cfg - -[swing/exchange] -value = self().pick(['id', 'value', 'state']) - -# STEP 2 : On cherche une correspondance dans l'index inversé -[load] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('indexes') -path = value -target = result - -[replace] -path = id -value = get('id') -path = value -value = get('result.value', 'n/a') - -# STEP 2 : si l'index inversé nous donne une URI, avec on va chercher les informations associées -[expand] -path = value -file = ./v1/transcribe.cfg - diff --git a/loterre-resolvers/v1/compile.cfg b/loterre-resolvers/v1/compile.cfg deleted file mode 100644 index 4163b73..0000000 --- a/loterre-resolvers/v1/compile.cfg +++ /dev/null @@ -1,46 +0,0 @@ -[use] -plugin = basics -plugin = analytics -plugin = storage - -# build the reverse index -[cast] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('concepts') - -[replace] -path = id.about -value = get('rdf$about') -# select all keys and remove duplicates to avoid ambiguities -path = value -value = get('indexKeys') - -path = id.score -value = get('score') - -# create a entry for all keys -[exploding] - -# invert id & value because of [exploding] which works only by value (not by id) -[replace] -path = id -value = get('value') -path = value -value = get('id.about') -path = score -value = get('id.score') - -[debug] -text = INDEX - -[save] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('indexes') -path = id -score = get('score') - -[pop] - -[replace] -path = state -value = compile diff --git a/loterre-resolvers/v1/download.cfg b/loterre-resolvers/v1/download.cfg deleted file mode 100644 index e8be0ed..0000000 --- a/loterre-resolvers/v1/download.cfg +++ /dev/null @@ -1,38 +0,0 @@ -[use] -plugin = basics -plugin = analytics -plugin = storage - - -# Download the skos and save it -[exchange] -value = get('primer') - -[URLStream] -path = false - -[XMLParse] -separator = /rdf:RDF/skos:Concept - -# build indexKeys (remove duplicates to avoid ambiguities) -[assign] -path = indexKeys -value = fix(_.get(self, 'skos$prefLabel'), _.get(self, 'skos$altLabel'), _.get(self, 'skos$hiddenLabel')). \ - flatten().\ - filter(o => _.has(o, '$t')).\ - map(o => _.deburr(String(o.$t).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/\s]/g, '').toLowerCase())).\ - uniq() - -path = score -value = get('owl$deprecated.$t', 3).thru(x => Number(String(x).toLowerCase() === 'true' ? 1 : 2)) - -[save] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('concepts') -path = rdf$about - -[pop] - -[replace] -path = state -value = download diff --git a/loterre-resolvers/v1/fetch.cfg b/loterre-resolvers/v1/fetch.cfg deleted file mode 100644 index e0a3e2f..0000000 --- a/loterre-resolvers/v1/fetch.cfg +++ /dev/null @@ -1,28 +0,0 @@ -[use] -plugin = basics - -[combine] -path = value - -[combine/URLStream] -url = env('primer') -path = false - -[combine/FILESave] -identifier = env('loterreID', 'noid').append('.skos') - -[combine/replace] -path = id -value = get('filename') -path = value -value = self() - -[assign] -path = value -value = get('value.id') - - -# -# A noter : -# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI -# diff --git a/loterre-resolvers/v1/process.cfg b/loterre-resolvers/v1/process.cfg deleted file mode 100644 index 8e5383a..0000000 --- a/loterre-resolvers/v1/process.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# Context input/output -append = dump?indent=true - -# Necessary plugins -[use] -plugin = basics -plugin = analytics -plugin = storage - -# Environment variables -[env] -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - -# Flow configuration -[JSONParse] -separator = * - -# On utilise [expand] pour travailler uniqument sur le champ value, sans toucher aux autres champs (si ils existent) -[expand] -path = value -size = 1 -file = ./v1/combine.cfg - -; Pour les documents sans résulat, on donne une valeur par défaut -[swing] -test = get('value.rdf$about').isEmpty() -[swing/assign] -path = value -value = fix('n/a') - diff --git a/loterre-resolvers/v1/send.cfg b/loterre-resolvers/v1/send.cfg deleted file mode 100644 index 7314fe3..0000000 --- a/loterre-resolvers/v1/send.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[dump] -indent = env('indent', false) diff --git a/loterre-resolvers/v1/transcribe.cfg b/loterre-resolvers/v1/transcribe.cfg deleted file mode 100644 index 5c4a57e..0000000 --- a/loterre-resolvers/v1/transcribe.cfg +++ /dev/null @@ -1,65 +0,0 @@ -# Necessary plugins -[use] -plugin = basics -plugin = analytics -plugin = storage - -# Load concept form URI -[load] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('concepts') -path = value -target = value - -# transcribe broaderConcept -[assign] -path = value.skos$broader -value = get('value.skos$broader').castArray().filter(Boolean) - -[map] -path = value.skos$broader - -[map/load] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('concepts') -path = rdf$resource - -[map/exchange] -value = self().pick(['skos$prefLabel', 'rdf$about']) - -# transcribe narrowerConcept -[assign] -path = value.skos$narrower -value = get('value.skos$narrower').castArray().filter(Boolean) - -[map] -path = value.skos$narrower - -[map/load] -location = env('location') -domain = env('loterreID').prepend('loterre-').append('concepts') -path = rdf$resource - -[map/exchange] -value = self().pick(['skos$prefLabel', 'rdf$about']) - - -# Prevent keys from containing dot path notation or start with a dollar character (which is forbidden by nodeJS mongoDB driver) -# use map is trick to apply stamtement only on the value field -[map] -path = value - -[map/OBJFlatten] -separator = fix('.') -safe = false -[map/exchange] -value = self().mapKeys((value, key) => key.replace(/\.\$/g, '.xml$').replace(/\/\$/g, '/xml$')) -[map/OBJFlatten] -separator = fix('.') -reverse = true -safe = false - -[assign] -path = value -value = get('value').pop() -