@postman-open-tech/schemaorgjsonschema

Schema.Org types in JSON Schema format

Usage no npm install needed!

<script type="module">
  import postmanOpenTechSchemaorgjsonschema from 'https://cdn.skypack.dev/@postman-open-tech/schemaorgjsonschema';
</script>

README

Schema.Org types in JSON Schema Draft 2020-12 format

The schemas at https://schema.org/ are very helpful for formats like JSON-LD, but they lack a canonical JSON representation.

This repository includes a canonical plain-JSON serialisation for each of the schema.org types, as well as the scrapers and converters used in their production.

Schema.Org version

  • 13.0
  • Previous versions, from 12.0, see GitHub tags or install a specific version from npm

Usage:

const schemaOrg = require('@postman-open-tech/schemaorgjsonschema');

const bookSchema = schemaOrg.getSchema('Book');
node test.js {schema.org type}

Source of converter / scrapers

License