Skip to content

Instantly share code, notes, and snippets.

View jaygray0919's full-sized avatar

jay gray jaygray0919

  • American Food Data Systems Institute
  • bethesda
View GitHub Profile

Pretty markup

A tiny demo for displaying pretty ladder-like JSON-LD, Microdata or RDFa structured data using schemarama core. Heavily inspired by Google's Structured Data Testing Tool structured data view.
initial structured data in json-ld format on the left, structured data view representation on the right

Pretty markup helps to make large pieces of structured data more understandable. It uses three main concepts to achieve this goal:

  • Structure: each triple is displayed as a triple row, subject is displayed on the left side, object is displayed on the right, subject is marked with a color stripe.

Schemarama CORE

NodeJs project for validating Structured Data with ShEx and SHACL. Main tasks:

How to use it?

Parsing

Four data formats can be parsed with schemarama: JSON-LD, Microdata, RDFa and NQuads. There are 4 corresponding functions for parsing with the same interface: parseJsonLd, parseMicrodata, parseRdfa, parseNQuads. Each of them