Skip to content

Commit

Permalink
feat: transforme du format legacy vers le nouveau format (et inversem…
Browse files Browse the repository at this point in the history
…ent)
  • Loading branch information
ggrossetie committed Nov 18, 2024
1 parent 32ae55d commit 2005b06
Show file tree
Hide file tree
Showing 5 changed files with 598 additions and 22 deletions.
46 changes: 32 additions & 14 deletions front/src/schemas/article-metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,33 @@
"license": {
"type": "string"
},
"acknowledgements": {
"type": "string"
},
"localizedContent": {
"type": "array",
"items": {
"$ref": "#/definitions/localizedContent"
}
},
"controlledKeywords": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"idRameau": {
"type": "string"
},
"uriRameau": {
"type": "string"
}
}
},
"uniqueItems": true
},
"authors": {
"type": "array",
"items": {
Expand All @@ -139,20 +160,17 @@
"$ref": "#/definitions/person"
}
},
"translations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"lang": {
"$ref": "#/definitions/lang"
}
"translationOf": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"lang": {
"$ref": "#/definitions/lang"
}
}
},
Expand Down
109 changes: 109 additions & 0 deletions graphql/helpers/__fixtures__/article-uploaded-to-the-cloud-v0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"abstract": [
{
"lang": "fr",
"text_f": "Cet article se penche sur l’appropriation par trois séries télévisées contemporaines des visions utopiques post-humanistes de la vie après la mort dans un univers virtuel grâce au « téléchargement de conscience », une technologie actuellement inexistante, mais faisant l’objet de nombreuses discussions et projections."
},
{
"lang": "en",
"text_f": "This article examines how three contemporary television series appropriate the utopian post-humanist visions of life after death in a virtual universe made possible by “mind uploading”, a technology that does not currently exist but is the subject of much discussion and projection."
}
],
"acknowledgements": "Merci à tous !",
"authors": [
{
"affiliations": "aff",
"biography": "bio",
"email": "courriel",
"foaf": "foaf",
"forname": "Sylvaine",
"isni": "isni",
"orcid": "0000-0001-6424-3229",
"surname": "Bataille",
"viaf": "viaf",
"wikidata": "wikidata"
}
],
"controlledKeywords": [
{
"idRameau": "",
"label": "F# (langage de programmation)",
"uriRameau": "http://data.bnf.fr/ark:/12148/cb16191752f"
}
],
"date": "2024-05-28",
"diffnum": "Sens Public Web Publishing",
"director": [
{
"forname": "Marcello",
"surname": "Vitali-Rosati"
}
],
"dossier": [
{
"id": "1710",
"title_f": "L’œuvre numérique à son miroir : regards sur les créations digitales contemporaines"
}
],
"funder": {
"funder_id": "",
"funder_name": "Université de Montréal"
},
"id": "SP1711",
"issnnum": "2104-3272",
"issueDirectors": [
{
"forname": "Tony",
"surname": "Gheeraert"
},
{
"forname": "Mélanie",
"surname": "Lucciano"
},
{
"forname": "Sandra",
"surname": "Provini"
}
],
"journal": "Sens Public",
"journal_email": "[email protected]",
"journal_issue": "2024.8",
"keywords": [
{
"lang": "fr",
"list_f": [
"Arts et lettres",
"Cinéma",
"Fiction"
]
},
{
"lang": "en",
"list_f": [
"Cinema",
"Fiction",
"Narrative"
]
}
],
"lang": "fr",
"prod": "Sens Public Prod",
"prodnum": "Sens Public Web Prod",
"publisher": "Sens Public Publishing",
"reviewers": [
{
"forname": "McCage",
"surname": "Griffiths"
}
],
"rights": "CC BY-SA 4.0",
"subtitle_f": "Téléchargement de conscience, réflexivité et ré-enchantement de la technologie dans trois fictions sérielles anglophones",
"title_f": "Uploaded to the cloud… Sounds like heaven!",
"translator": [
{
"forname": "Shaun",
"surname": "Nicks"
}
],
"url_article": "https://sens-public.org/articles/1711/"
}
103 changes: 103 additions & 0 deletions graphql/helpers/__fixtures__/article-uploaded-to-the-cloud-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"type": "article",
"@version": "1.0",
"id": "SP1711",
"publicationDate": "2024-05-28",
"url": "https://sens-public.org/articles/1711/",
"license": "CC BY-SA 4.0",
"acknowledgements": "Merci à tous !",
"lang": "fr",
"title": "Uploaded to the cloud… Sounds like heaven!",
"subtitle": "Téléchargement de conscience, réflexivité et ré-enchantement de la technologie dans trois fictions sérielles anglophones",
"abstract": "Cet article se penche sur l’appropriation par trois séries télévisées contemporaines des visions utopiques post-humanistes de la vie après la mort dans un univers virtuel grâce au « téléchargement de conscience », une technologie actuellement inexistante, mais faisant l’objet de nombreuses discussions et projections.",
"keywords": [
"Arts et lettres",
"Cinéma",
"Fiction"
],
"localizedContent": [
{
"lang": "en",
"abstract": "This article examines how three contemporary television series appropriate the utopian post-humanist visions of life after death in a virtual universe made possible by “mind uploading”, a technology that does not currently exist but is the subject of much discussion and projection.",
"keywords": [
"Cinema",
"Fiction",
"Narrative"
]
}
],
"controlledKeywords": [
{
"idRameau": "",
"label": "F# (langage de programmation)",
"uriRameau": "http://data.bnf.fr/ark:/12148/cb16191752f"
}
],
"authors": [
{
"affiliations": "aff",
"biography": "bio",
"email": "courriel",
"foaf": "foaf",
"forname": "Sylvaine",
"isni": "isni",
"orcid": "0000-0001-6424-3229",
"surname": "Bataille",
"viaf": "viaf",
"wikidata": "wikidata"
}
],
"issueDirectors": [
{
"forname": "Tony",
"surname": "Gheeraert"
},
{
"forname": "Mélanie",
"surname": "Lucciano"
},
{
"forname": "Sandra",
"surname": "Provini"
}
],
"reviewers": [
{
"forname": "McCage",
"surname": "Griffiths"
}
],
"translators": [
{
"forname": "Shaun",
"surname": "Nicks"
}
],
"journalDirectors": [
{
"forname": "Marcello",
"surname": "Vitali-Rosati"
}
],
"issue": {
"title": "L’œuvre numérique à son miroir : regards sur les créations digitales contemporaines",
"identifier": "1710",
"number": "2024.8"
},
"production": {
"issn": "2104-3272",
"producer": "Sens Public Prod",
"prodNum": "Sens Public Web Prod",
"diffNum": "Sens Public Web Publishing"
},
"funder": {
"organization": "Université de Montréal",
"id": ""
},
"journal": {
"name": "Sens Public",
"publisher": "Sens Public Publishing",
"email": "[email protected]",
"url": "https://www.sens-public.org/"
}
}
Loading

0 comments on commit 2005b06

Please sign in to comment.