Skip to content

Copying Schema.org Type Proposals to the Bioschemas Website

Alasdair Gray edited this page Jul 24, 2019 · 2 revisions

Currently the process for getting a type/property definition from the (Bioschemas)Schema.org development site to the Bioschemas website is a manual process. The styling on the Bioschemas website has been modified to use the same CSS Class definitions as are found in the Schema.org HTML table. The steps below ensure that the links within the page work correctly once deployed on the Bioschemas site.

Steps to Follow

  1. Copy type definition text into the YAML description property at top of the file
  2. Ensure that the hierarchy is defined correctly in the YAML hierarchy property
  3. Increase the version number by 0.1 in the YAML version property
  4. Copy the HTML definition table from the Schema.org web page source to the body of the file
  5. Add bsc_type to the HTML table CSS class definition
  6. Search for http://bio.localhost:8080/ (or http://bio.sdo-bioschemas-227516.appspot.com/ if doing this online), and perform one of the following actions:
    • For types, replace with / meaning that it becomes a link to the type, e.g. http://bio.localhost:8080/BioChemEntity becomes /BioChemEntity;
    • For properties, replace with # meaning that it becomes a link within the page which will not actually be defined, e.g. http://bio.localhost:8080/boundMolecule becomes #boundMolecule;
  7. Replace http://pending.localhost:8080/ with http://pending.schema.org/
  8. Replace ./ with http://schema.org/ so that schema terms have the correct base URL
  9. Replace class="localLink" href=" with class="localLink" href="http://schema.org
  10. Replace /docs/ with http://schema.org/docs/