From 368cac6a8da9b77eb5fac41e1bc7d0f4367e021f Mon Sep 17 00:00:00 2001
From: Damien Amara <damien.amara@univ-lille.fr>
Date: Tue, 20 Feb 2024 09:30:10 +0100
Subject: [PATCH] Fix the codemeta.json file

HAL's metadata export function doesn't seem to respect the CodeMeta
v2.0 format.
---
 codemeta.json | 76 +++++++++++++++++++--------------------------------
 1 file changed, 28 insertions(+), 48 deletions(-)

diff --git a/codemeta.json b/codemeta.json
index 5472fd9..632be23 100644
--- a/codemeta.json
+++ b/codemeta.json
@@ -1,7 +1,6 @@
 {
     "@context": [
-        "https:\/\/doi.org\/doi:10.5063\/schema\/codemeta-2.0",
-        "http:\/\/schema.org"
+        "https:\/\/doi.org\/10.5063\/schema\/codemeta-2.0"
     ],
     "@type": "SoftwareSourceCode",
     "name": "digger",
@@ -9,7 +8,7 @@
     "dateCreated": "2016-10-03",
     "datePublished": "2024-01-30",
     "license": [
-        "CeCILL Free Software License Agreement v2.1"
+        "https://spdx.org/licenses/CECILL-2.1"
     ],
     "url": "https:\/\/hal.science\/hal-04427164",
     "identifier": [],
@@ -22,10 +21,6 @@
         "Security",
         "Formal Methods"
     ],
-    "institution": [
-        "Universit\u00e9 de Lille",
-        "CNRS"
-    ],
     "codeRepository": "https:\/\/github.com\/2xs\/digger",
     "relatedLink": [
         "https:\/\/github.com\/2xs\/pipcore",
@@ -52,51 +47,36 @@
     "developmentStatus": "Inactif",
     "author": [
         {
-            "@type": "Role",
-            "roleName": "architecture",
-            "author": {
-                "@type": "Person",
-                "@id": null,
-                "givenName": "Gilles",
-                "familyName": "Grimaud",
-                "affiliation": [
-                    {
-                        "@type": "Organization",
-                        "name": "CRIStAL"
-                    }
-                ]
-            }
+            "@type": "Person",
+            "givenName": "Gilles",
+            "familyName": "Grimaud",
+            "affiliation": [
+                {
+                    "@type": "Organization",
+                    "name": "CRIStAL"
+                }
+            ]
         },
         {
-            "@type": "Role",
-            "roleName": "aut",
-            "author": {
-                "@type": "Person",
-                "@id": null,
-                "givenName": "Samuel",
-                "familyName": "Hym",
-                "affiliation": [
-                    {
-                        "@type": "Organization",
-                        "name": "CRIStAL"
-                    }
-                ]
-            }
+            "@type": "Person",
+            "givenName": "Samuel",
+            "familyName": "Hym",
+            "affiliation": [
+                {
+                    "@type": "Organization",
+                    "name": "CRIStAL"
+                }
+            ]
         },
         {
-            "@type": "Role",
-            "roleName": "aut",
-            "author": {
-                "@type": "Person",
-                "@id": null,
-                "givenName": "Ve\u00efs",
-                "familyName": "Oudjail",
-                "affiliation": [
-                    {
-                        "@type": "Organization"
-                    }
-                ]
-            }
+            "@type": "Person",
+            "givenName": "Ve\u00efs",
+            "familyName": "Oudjail",
+            "affiliation": [
+                {
+                    "@type": "Organization"
+                }
+            ]
         }
     ]
 }
-- 
GitLab