murattunalı.

JSON-LD.

JavaScript Object Notation for Linked DataDEFINITION

JSON-LD is a structured data format that declares a page’s meaning in a machine-readable form without changing the page’s appearance at all.

It is embedded in the page as a separate block and is independent of the HTML structure. That independence is its greatest advantage over the other two structured data formats: even if the page’s visual layout changes completely, the block stays the same and does not break.

This is the format Google explicitly recommends. The other formats scatter the markup through HTML elements; they are hard to maintain and break easily when the layout changes.

A block opens with a field declaring the context and contains nodes. Every node has a type, and the fields defined for that type in schema.org are filled in. The real value lies in nodes being linked to one another by identity — unlinked nodes form a scattered heap, linked ones form a graph.

The most dangerous way to use it is to declare information that is not on screen. That is both a plain violation of search engine guidelines and something that puts the page at odds with itself. The correct pattern: schema adds no new information, it translates existing information into machine language.

It breaks silently: when a block is malformed the page goes on looking normal and no error message appears. That is why validation belongs to the deployment process.

Maintenance matters too: hand-written schema diverges from reality within months. The page changes, the schema stays. That is why the schema should be derived by the generator from the page’s own data — divergence then becomes structurally impossible.

And validation has two layers: syntax is checked by automated tools, meaning by human judgement. A graph that is free of errors but meaningless is technically valid and of no use at all.

  1. One block, many nodes — gather all the page’s nodes into a single graph.
  2. Stable identities — define the organisation, the person and the site once, and refer to them from everywhere.
  3. The page’s own node — every page should carry its own identity.
  4. Breadcrumb trail — the page’s place in the hierarchy.
  5. Content node — article, service or definition, depending on the page type.

This order can be skipped, but when it is the upper layers work in vain: an article node without an identity node cannot show its author, and a page without a site node cannot say which site it belongs to.

SOURCES