Skip to content

Commit a3db3c9

Browse files
feat: enhance Schema.org metadata for resources and datasets and update sitemap lastmod dates
1 parent 845ad1f commit a3db3c9

3 files changed

Lines changed: 48 additions & 30 deletions

File tree

‎public/sitemap.xml‎

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://yourselftoscience.org/</loc>
5-
<lastmod>2026-04-12</lastmod>
5+
<lastmod>2026-04-14</lastmod>
66
<changefreq>weekly</changefreq>
77
<priority>1.0</priority>
88
</url>
99
<url>
1010
<loc>https://yourselftoscience.org/data</loc>
11-
<lastmod>2026-04-13</lastmod>
11+
<lastmod>2026-04-14</lastmod>
1212
<changefreq>weekly</changefreq>
1313
<priority>0.9</priority>
1414
</url>
1515
<url>
1616
<loc>https://yourselftoscience.org/clinical-trials</loc>
17-
<lastmod>2026-04-12</lastmod>
17+
<lastmod>2026-04-14</lastmod>
1818
<changefreq>weekly</changefreq>
1919
<priority>0.9</priority>
2020
</url>
2121
<url>
2222
<loc>https://yourselftoscience.org/organ-body-tissue-donation</loc>
23-
<lastmod>2026-04-12</lastmod>
23+
<lastmod>2026-04-14</lastmod>
2424
<changefreq>weekly</changefreq>
2525
<priority>0.9</priority>
2626
</url>
@@ -32,7 +32,7 @@
3232
</url>
3333
<url>
3434
<loc>https://yourselftoscience.org/stats</loc>
35-
<lastmod>2026-04-12</lastmod>
35+
<lastmod>2026-04-14</lastmod>
3636
<changefreq>weekly</changefreq>
3737
<priority>0.8</priority>
3838
</url>
@@ -68,127 +68,127 @@
6868
</url>
6969
<url>
7070
<loc>https://yourselftoscience.org/index.html.md</loc>
71-
<lastmod>2026-04-12</lastmod>
71+
<lastmod>2026-04-14</lastmod>
7272
<changefreq>weekly</changefreq>
7373
<priority>0.4</priority>
7474
</url>
7575
<url>
7676
<loc>https://yourselftoscience.org/stats.md</loc>
77-
<lastmod>2026-04-12</lastmod>
77+
<lastmod>2026-04-14</lastmod>
7878
<changefreq>weekly</changefreq>
7979
<priority>0.4</priority>
8080
</url>
8181
<url>
8282
<loc>https://yourselftoscience.org/get-involved.md</loc>
83-
<lastmod>2026-04-12</lastmod>
83+
<lastmod>2026-04-14</lastmod>
8484
<changefreq>weekly</changefreq>
8585
<priority>0.4</priority>
8686
</url>
8787
<url>
8888
<loc>https://yourselftoscience.org/clinical-trials.md</loc>
89-
<lastmod>2026-04-12</lastmod>
89+
<lastmod>2026-04-14</lastmod>
9090
<changefreq>weekly</changefreq>
9191
<priority>0.4</priority>
9292
</url>
9393
<url>
9494
<loc>https://yourselftoscience.org/organ-body-tissue-donation.md</loc>
95-
<lastmod>2026-04-12</lastmod>
95+
<lastmod>2026-04-14</lastmod>
9696
<changefreq>weekly</changefreq>
9797
<priority>0.4</priority>
9898
</url>
9999
<url>
100100
<loc>https://yourselftoscience.org/clinical-trials?countries=Belgium</loc>
101-
<lastmod>2026-04-12</lastmod>
101+
<lastmod>2026-04-14</lastmod>
102102
<changefreq>weekly</changefreq>
103103
<priority>0.5</priority>
104104
</url>
105105
<url>
106106
<loc>https://yourselftoscience.org/clinical-trials?countries=Canada</loc>
107-
<lastmod>2026-04-12</lastmod>
107+
<lastmod>2026-04-14</lastmod>
108108
<changefreq>weekly</changefreq>
109109
<priority>0.5</priority>
110110
</url>
111111
<url>
112112
<loc>https://yourselftoscience.org/clinical-trials?countries=European%20Union</loc>
113-
<lastmod>2026-04-12</lastmod>
113+
<lastmod>2026-04-14</lastmod>
114114
<changefreq>weekly</changefreq>
115115
<priority>0.5</priority>
116116
</url>
117117
<url>
118118
<loc>https://yourselftoscience.org/clinical-trials?countries=Germany</loc>
119-
<lastmod>2026-04-12</lastmod>
119+
<lastmod>2026-04-14</lastmod>
120120
<changefreq>weekly</changefreq>
121121
<priority>0.5</priority>
122122
</url>
123123
<url>
124124
<loc>https://yourselftoscience.org/clinical-trials?countries=Iceland</loc>
125-
<lastmod>2026-04-12</lastmod>
125+
<lastmod>2026-04-14</lastmod>
126126
<changefreq>weekly</changefreq>
127127
<priority>0.5</priority>
128128
</url>
129129
<url>
130130
<loc>https://yourselftoscience.org/clinical-trials?countries=Italy</loc>
131-
<lastmod>2026-04-12</lastmod>
131+
<lastmod>2026-04-14</lastmod>
132132
<changefreq>weekly</changefreq>
133133
<priority>0.5</priority>
134134
</url>
135135
<url>
136136
<loc>https://yourselftoscience.org/clinical-trials?countries=Liechtenstein</loc>
137-
<lastmod>2026-04-12</lastmod>
137+
<lastmod>2026-04-14</lastmod>
138138
<changefreq>weekly</changefreq>
139139
<priority>0.5</priority>
140140
</url>
141141
<url>
142142
<loc>https://yourselftoscience.org/clinical-trials?countries=Norway</loc>
143-
<lastmod>2026-04-12</lastmod>
143+
<lastmod>2026-04-14</lastmod>
144144
<changefreq>weekly</changefreq>
145145
<priority>0.5</priority>
146146
</url>
147147
<url>
148148
<loc>https://yourselftoscience.org/clinical-trials?countries=United%20Kingdom</loc>
149-
<lastmod>2026-04-12</lastmod>
149+
<lastmod>2026-04-14</lastmod>
150150
<changefreq>weekly</changefreq>
151151
<priority>0.5</priority>
152152
</url>
153153
<url>
154154
<loc>https://yourselftoscience.org/clinical-trials?countries=United%20States</loc>
155-
<lastmod>2026-04-12</lastmod>
155+
<lastmod>2026-04-14</lastmod>
156156
<changefreq>weekly</changefreq>
157157
<priority>0.5</priority>
158158
</url>
159159
<url>
160160
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=Canada</loc>
161-
<lastmod>2026-04-12</lastmod>
161+
<lastmod>2026-04-14</lastmod>
162162
<changefreq>weekly</changefreq>
163163
<priority>0.5</priority>
164164
</url>
165165
<url>
166166
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=France</loc>
167-
<lastmod>2026-04-12</lastmod>
167+
<lastmod>2026-04-14</lastmod>
168168
<changefreq>weekly</changefreq>
169169
<priority>0.5</priority>
170170
</url>
171171
<url>
172172
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=Germany</loc>
173-
<lastmod>2026-04-12</lastmod>
173+
<lastmod>2026-04-14</lastmod>
174174
<changefreq>weekly</changefreq>
175175
<priority>0.5</priority>
176176
</url>
177177
<url>
178178
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=Italy</loc>
179-
<lastmod>2026-04-12</lastmod>
179+
<lastmod>2026-04-14</lastmod>
180180
<changefreq>weekly</changefreq>
181181
<priority>0.5</priority>
182182
</url>
183183
<url>
184184
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=United%20Kingdom</loc>
185-
<lastmod>2026-04-12</lastmod>
185+
<lastmod>2026-04-14</lastmod>
186186
<changefreq>weekly</changefreq>
187187
<priority>0.5</priority>
188188
</url>
189189
<url>
190190
<loc>https://yourselftoscience.org/organ-body-tissue-donation?countries=United%20States</loc>
191-
<lastmod>2026-04-12</lastmod>
191+
<lastmod>2026-04-14</lastmod>
192192
<changefreq>weekly</changefreq>
193193
<priority>0.5</priority>
194194
</url>

‎src/app/data/page.js‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import { resources } from '@/data/resources';
55
import wikidataStats from '@/data/wikidataStats.json';
66
import lastUpdatedMeta from '@/data/lastUpdated.json';
7+
import { permanentDoi } from '@/data/config';
78
import WikidataIcon from '@/components/WikidataIcon';
89

910
import { FaDownload, FaCode, FaCopy, FaCheck, FaChartBar, FaTable, FaDatabase, FaRobot, FaNetworkWired, FaBook } from 'react-icons/fa';
@@ -42,7 +43,22 @@ export default function DataPage() {
4243
"description": "A curated, open-access catalog of services, platforms, and programs that allow individuals to securely contribute to scientific research with their biological and digital selves.",
4344
"url": "https://yourselftoscience.org/data",
4445
"sameAs": "https://yourselftoscience.org/resources.ttl#dataset",
45-
"identifier": ["https://yourselftoscience.org/resources.ttl#dataset"],
46+
"identifier": [
47+
"https://yourselftoscience.org/resources.ttl#dataset",
48+
`https://doi.org/${permanentDoi}`
49+
],
50+
"keywords": [
51+
"open dataset",
52+
"CC0 dataset",
53+
"public domain data",
54+
"science data",
55+
"clinical trials data",
56+
"citizen science dataset",
57+
"JSON API",
58+
"CSV download",
59+
"linked data",
60+
"research opportunities"
61+
],
4662
"creator": {
4763
"@type": "Organization",
4864
"name": "Yourself to Science",

‎src/app/resource/[slug]/page.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function ResourcePage({ params }) {
102102
'name': displayTitle,
103103
'description': displayDescription,
104104
'url': canonicalUrl,
105-
'identifier': persistentIdUrl,
105+
'identifier': [persistentIdUrl],
106106
'includedInDataCatalog': {
107107
'@type': 'DataCatalog',
108108
'name': 'Yourself to Science',
@@ -114,11 +114,13 @@ export default function ResourcePage({ params }) {
114114
'name': org.name,
115115
'sameAs': [
116116
...(org.wikidataId ? [`https://www.wikidata.org/wiki/${org.wikidataId}`] : []),
117-
...(org.rorId ? [org.rorId] : [])
117+
...(org.rorId && org.rorId !== 'IGNORE' ? [org.rorId.startsWith('http') ? org.rorId : `https://ror.org/${org.rorId}`] : [])
118118
]
119119
})) : undefined,
120120
'isAccessibleForFree': true,
121-
...(resource.resourceWikidataId && { 'sameAs': `https://www.wikidata.org/wiki/${resource.resourceWikidataId}` })
121+
...(resource.resourceWikidataId && { 'sameAs': `https://www.wikidata.org/wiki/${resource.resourceWikidataId}` }),
122+
...(resource.dataTypes && resource.dataTypes.length > 0 && { 'keywords': resource.dataTypes }),
123+
...(resource.citations && resource.citations.length > 0 && { 'citation': resource.citations.map(c => c.link || c.title) })
122124
};
123125

124126
const isCitedOnWikidata = resource.resourceWikidataId && wikidataStats.items?.some(i => i.id === resource.resourceWikidataId);

0 commit comments

Comments
 (0)