From d918bf25b4db02db540cd3f2cc7b8023c62e1987 Mon Sep 17 00:00:00 2001 From: raphaelgazzotti Date: Wed, 29 Jul 2026 12:15:37 +0200 Subject: [PATCH 1/4] Fix #67 - Add R ContentType (we may want to add .Rda/.RData/.data.R and .Rds). - Add Stan ContentTypes. --- .../application_vnd.stan.R.jsonld | 24 +++++++++++++++++++ .../application_vnd.stanfunctions.R.jsonld | 24 +++++++++++++++++++ instances/latest/contentTypes/text_x-r.jsonld | 21 ++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 instances/latest/contentTypes/application_vnd.stan.R.jsonld create mode 100644 instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld create mode 100644 instances/latest/contentTypes/text_x-r.jsonld diff --git a/instances/latest/contentTypes/application_vnd.stan.R.jsonld b/instances/latest/contentTypes/application_vnd.stan.R.jsonld new file mode 100644 index 000000000..040e284b1 --- /dev/null +++ b/instances/latest/contentTypes/application_vnd.stan.R.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@vocab": "https://openminds.om-i.org/props/" + }, + "@id": "https://openminds.om-i.org/instances/contentTypes/application_vnd.stan.R", + "@type": "https://openminds.om-i.org/types/ContentType", + "dataType": null, + "definingSource": null, + "description": "A text file containing a program written in the Stan modeling language.", + "displayLabel": null, + "fileExtension": [ + ".stan" + ], + "isBasedOn": [ + { + "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-r" + } + ], + "name": "application/vnd.stan.R", + "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", + "synonym": [ + "Stan model file" + ] +} diff --git a/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld b/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld new file mode 100644 index 000000000..63b92a97a --- /dev/null +++ b/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@vocab": "https://openminds.om-i.org/props/" + }, + "@id": "https://openminds.om-i.org/instances/contentTypes/application_vnd.stanfunctions.R", + "@type": "https://openminds.om-i.org/types/ContentType", + "dataType": null, + "definingSource": null, + "description": "A text file containing function definitions written in the Stan modeling language.", + "displayLabel": null, + "fileExtension": [ + ".stanfunctions" + ], + "isBasedOn": [ + { + "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-r" + } + ], + "name": "application/vnd.stanfunctions.R", + "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", + "synonym": [ + "Stan function definitions" + ] +} diff --git a/instances/latest/contentTypes/text_x-r.jsonld b/instances/latest/contentTypes/text_x-r.jsonld new file mode 100644 index 000000000..dfd7385ae --- /dev/null +++ b/instances/latest/contentTypes/text_x-r.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "@vocab": "https://openminds.om-i.org/props/" + }, + "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-r", + "@type": "https://openminds.om-i.org/types/ContentType", + "dataType": null, + "definingSource": null, + "description": "An R script is a text file that stores the R commands you would normally type at the R command prompt.", + "displayLabel": null, + "fileExtension": [ + ".R", + ".r" + ], + "isBasedOn": null, + "name": "text/x-r", + "specification": "https://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_scrpt.html", + "synonym": [ + "R script" + ] +} From 9f46de66637919d49e1171b62623265f12f59131 Mon Sep 17 00:00:00 2001 From: raphaelgazzotti Date: Wed, 29 Jul 2026 18:31:51 +0200 Subject: [PATCH 2/4] Replace synonym by displayLabel. --- instances/latest/contentTypes/application_vnd.stan.R.jsonld | 6 ++---- .../contentTypes/application_vnd.stanfunctions.R.jsonld | 6 ++---- instances/latest/contentTypes/text_x-r.jsonld | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/instances/latest/contentTypes/application_vnd.stan.R.jsonld b/instances/latest/contentTypes/application_vnd.stan.R.jsonld index 040e284b1..6e6a03448 100644 --- a/instances/latest/contentTypes/application_vnd.stan.R.jsonld +++ b/instances/latest/contentTypes/application_vnd.stan.R.jsonld @@ -7,7 +7,7 @@ "dataType": null, "definingSource": null, "description": "A text file containing a program written in the Stan modeling language.", - "displayLabel": null, + "displayLabel": "Stan model file", "fileExtension": [ ".stan" ], @@ -18,7 +18,5 @@ ], "name": "application/vnd.stan.R", "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", - "synonym": [ - "Stan model file" - ] + "synonym": null } diff --git a/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld b/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld index 63b92a97a..e23d3075c 100644 --- a/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld +++ b/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld @@ -7,7 +7,7 @@ "dataType": null, "definingSource": null, "description": "A text file containing function definitions written in the Stan modeling language.", - "displayLabel": null, + "displayLabel": "Stan function definitions", "fileExtension": [ ".stanfunctions" ], @@ -18,7 +18,5 @@ ], "name": "application/vnd.stanfunctions.R", "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", - "synonym": [ - "Stan function definitions" - ] + "synonym": null } diff --git a/instances/latest/contentTypes/text_x-r.jsonld b/instances/latest/contentTypes/text_x-r.jsonld index dfd7385ae..013bff20a 100644 --- a/instances/latest/contentTypes/text_x-r.jsonld +++ b/instances/latest/contentTypes/text_x-r.jsonld @@ -7,7 +7,7 @@ "dataType": null, "definingSource": null, "description": "An R script is a text file that stores the R commands you would normally type at the R command prompt.", - "displayLabel": null, + "displayLabel": "R script", "fileExtension": [ ".R", ".r" @@ -15,7 +15,5 @@ "isBasedOn": null, "name": "text/x-r", "specification": "https://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_scrpt.html", - "synonym": [ - "R script" - ] + "synonym": null, } From f7fbbc7b3c1b522111e1b83788be716d1da2871f Mon Sep 17 00:00:00 2001 From: Raphael-Gazzotti <125291580+Raphael-Gazzotti@users.noreply.github.com> Date: Wed, 29 Jul 2026 18:37:11 +0200 Subject: [PATCH 3/4] Fix formatting for synonym field in JSON-LD --- instances/latest/contentTypes/text_x-r.jsonld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/latest/contentTypes/text_x-r.jsonld b/instances/latest/contentTypes/text_x-r.jsonld index 013bff20a..895ae1dd1 100644 --- a/instances/latest/contentTypes/text_x-r.jsonld +++ b/instances/latest/contentTypes/text_x-r.jsonld @@ -15,5 +15,5 @@ "isBasedOn": null, "name": "text/x-r", "specification": "https://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_scrpt.html", - "synonym": null, + "synonym": null } From ec19741a361208151a75163d3b6650ffc59d0545 Mon Sep 17 00:00:00 2001 From: raphaelgazzotti Date: Thu, 30 Jul 2026 10:39:12 +0200 Subject: [PATCH 4/4] Change to text_x instead of application. --- .../{application_vnd.stan.R.jsonld => text_x-stan.jsonld} | 4 ++-- ...vnd.stanfunctions.R.jsonld => text_x-stanfunctions.jsonld} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename instances/latest/contentTypes/{application_vnd.stan.R.jsonld => text_x-stan.jsonld} (82%) rename instances/latest/contentTypes/{application_vnd.stanfunctions.R.jsonld => text_x-stanfunctions.jsonld} (81%) diff --git a/instances/latest/contentTypes/application_vnd.stan.R.jsonld b/instances/latest/contentTypes/text_x-stan.jsonld similarity index 82% rename from instances/latest/contentTypes/application_vnd.stan.R.jsonld rename to instances/latest/contentTypes/text_x-stan.jsonld index 6e6a03448..662fe4a32 100644 --- a/instances/latest/contentTypes/application_vnd.stan.R.jsonld +++ b/instances/latest/contentTypes/text_x-stan.jsonld @@ -2,7 +2,7 @@ "@context": { "@vocab": "https://openminds.om-i.org/props/" }, - "@id": "https://openminds.om-i.org/instances/contentTypes/application_vnd.stan.R", + "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-stan", "@type": "https://openminds.om-i.org/types/ContentType", "dataType": null, "definingSource": null, @@ -16,7 +16,7 @@ "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-r" } ], - "name": "application/vnd.stan.R", + "name": "text/x-stan", "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", "synonym": null } diff --git a/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld b/instances/latest/contentTypes/text_x-stanfunctions.jsonld similarity index 81% rename from instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld rename to instances/latest/contentTypes/text_x-stanfunctions.jsonld index e23d3075c..829127222 100644 --- a/instances/latest/contentTypes/application_vnd.stanfunctions.R.jsonld +++ b/instances/latest/contentTypes/text_x-stanfunctions.jsonld @@ -2,7 +2,7 @@ "@context": { "@vocab": "https://openminds.om-i.org/props/" }, - "@id": "https://openminds.om-i.org/instances/contentTypes/application_vnd.stanfunctions.R", + "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-stanfunctions", "@type": "https://openminds.om-i.org/types/ContentType", "dataType": null, "definingSource": null, @@ -16,7 +16,7 @@ "@id": "https://openminds.om-i.org/instances/contentTypes/text_x-r" } ], - "name": "application/vnd.stanfunctions.R", + "name": "text/x-stanfunctions", "specification": "https://mc-stan.org/docs/stan-users-guide/style-guide.html#file-extensions", "synonym": null }