|
| 1 | +import lastUpdatedMeta from '@/data/lastUpdated.json'; |
| 2 | +import { permanentDoi } from '@/data/config'; |
| 3 | + |
1 | 4 | const title = "Open Science Data & API Hub | Programmatic Research Infrastructure"; |
2 | 5 | const description = "Programmatic access to the Yourself to Science dataset. Relational data packages, AI/LLM feeds, quantitative JSON endpoints, and semantic RDF mapping. Standardized research infrastructure for open science."; |
3 | 6 | const url = "https://yourselftoscience.org/data"; |
@@ -48,5 +51,74 @@ export const metadata = { |
48 | 51 | }; |
49 | 52 |
|
50 | 53 | export default function DataLayout({ children }) { |
51 | | - return <>{children}</>; |
| 54 | + // Dataset JSON-LD is rendered server-side here for reliable Google indexing, |
| 55 | + // rather than in the 'use client' page component. |
| 56 | + const jsonLd = { |
| 57 | + "@context": "https://schema.org/", |
| 58 | + "@type": "Dataset", |
| 59 | + "name": "Yourself to Science Open Dataset", |
| 60 | + "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.", |
| 61 | + "url": "https://yourselftoscience.org/data", |
| 62 | + "sameAs": "https://yourselftoscience.org/resources.ttl#dataset", |
| 63 | + "identifier": [ |
| 64 | + "https://yourselftoscience.org/resources.ttl#dataset", |
| 65 | + `https://doi.org/${permanentDoi}` |
| 66 | + ], |
| 67 | + "keywords": [ |
| 68 | + "open dataset", |
| 69 | + "CC0 dataset", |
| 70 | + "public domain data", |
| 71 | + "science data", |
| 72 | + "clinical trials data", |
| 73 | + "citizen science dataset", |
| 74 | + "JSON API", |
| 75 | + "CSV download", |
| 76 | + "linked data", |
| 77 | + "research opportunities" |
| 78 | + ], |
| 79 | + "alternateName": [ |
| 80 | + "Yourself to Science Catalogue", |
| 81 | + "Yourself to Science Database" |
| 82 | + ], |
| 83 | + "creator": { |
| 84 | + "@type": "Organization", |
| 85 | + "name": "Yourself to Science", |
| 86 | + "url": "https://yourselftoscience.org", |
| 87 | + "contactPoint": { |
| 88 | + "@type": "ContactPoint", |
| 89 | + "contactType": "public engagement", |
| 90 | + "email": "hello@yourselftoscience.org" |
| 91 | + } |
| 92 | + }, |
| 93 | + "license": "https://creativecommons.org/publicdomain/zero/1.0/", |
| 94 | + "isAccessibleForFree": true, |
| 95 | + "dateModified": lastUpdatedMeta.dateModified, |
| 96 | + "distribution": [ |
| 97 | + { |
| 98 | + "@type": "DataDownload", |
| 99 | + "encodingFormat": "text/csv", |
| 100 | + "contentUrl": "https://yourselftoscience.org/resources.csv" |
| 101 | + }, |
| 102 | + { |
| 103 | + "@type": "DataDownload", |
| 104 | + "encodingFormat": "application/json", |
| 105 | + "contentUrl": "https://yourselftoscience.org/resources.json" |
| 106 | + }, |
| 107 | + { |
| 108 | + "@type": "DataDownload", |
| 109 | + "encodingFormat": "text/turtle", |
| 110 | + "contentUrl": "https://yourselftoscience.org/resources.ttl" |
| 111 | + } |
| 112 | + ] |
| 113 | + }; |
| 114 | + |
| 115 | + return ( |
| 116 | + <> |
| 117 | + <script |
| 118 | + type="application/ld+json" |
| 119 | + dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} |
| 120 | + /> |
| 121 | + {children} |
| 122 | + </> |
| 123 | + ); |
52 | 124 | } |
0 commit comments