import { Helmet } from 'react-helmet-async';

// TODO: confirm license URL before publishing
const schema = {
  '@context': 'https://schema.org',
  '@type': 'Dataset',
  name: 'MuSProt: Multistate Protein Structure Database',
  description:
    'A large-scale structural database of conformational diversity across protein chains from the Protein Data Bank. Contains 355,731 chains from 121,584 PDB entries with pairwise structural comparisons (27.6 million records), energy annotations (Rosetta, FoldX, EvoEF2), and CATH functional classifications.',
  url: 'https://omaib-musprot.hf.space/',
  creator: {
    '@type': 'Organization',
    name: 'MuSProt',
    url: 'https://omaib-musprot.hf.space/',
  },
  license: 'https://creativecommons.org/licenses/by/4.0/',
  keywords: [
    'protein structure',
    'conformational diversity',
    'Protein Data Bank',
    'structural biology',
    'multistate proteins',
    'TM-score',
    'RMSD',
    'CATH classification',
    'energy scoring',
  ],
  distribution: [
    {
      '@type': 'DataDownload',
      encodingFormat: 'application/x-sqlite3',
      contentUrl: 'https://omaib-musprot.hf.space/api/protein/download/db',
      name: 'MuSProt.db (SQLite, ~6.3 GB)',
    },
  ],
  measurementTechnique: 'X-ray crystallography, cryo-EM, NMR',
  variableMeasured: 'Protein chain conformation, structural similarity (TM-score, RMSD)',
};

export function MuSProtJsonLd() {
  return (
    <Helmet>
      <script type="application/ld+json">{JSON.stringify(schema)}</script>
    </Helmet>
  );
}
