How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Fix Kits · Kin Score · 16 check points

Fix Kit: Vocabulary & JSON-LD

Write down the words your API uses and map them to shared meaning with a JSON-LD context, so machines know what your fields mean.

$149
One check · 16 points
  • Effort: A day or two.
  • Who needs it: of the providers each check applies to (apis.io, scored 2026-11-21, rubric 0.28.1): 100% miss “Publishes a vocabulary”; 80% miss “Publishes a JSON-LD context”; 86% miss “Context defines classes”; 87% miss “Context defines properties”.
  • You get: the full kit (PDF and Markdown): how to find what your API really does, step-by-step fix, starter schemas, an OpenAPI Overlay that applies it across your contract, a script that checks your work exactly the way the scorer does, and docs-platform notes.

What the check measures

Every API has a vocabulary, whether anyone wrote it down or not: what a “customer” is, how it differs from an “account”, what “status: settled” means. When the words live only in the field names, every consumer guesses from the spelling, and two teams in the same company guess differently. A published vocabulary makes the naming a decision. A JSON-LD context goes one step further and binds each of those words to a shared meaning (a schema.org class, a property in your own namespace), so an agent or a partner can map your API onto their model without reading every description.

The four checks read two different things in your catalog repo:

Check Points What earns it
Publishes a vocabulary (vocabulary_published) 5 Your apis.yml carries a pointer of type exactly Vocabulary (in common, or on any API’s properties) that resolves
Publishes a JSON-LD context (json_ld_present) 5 At least one .jsonld file in the json-ld/ folder of your catalog repo parses
Context defines classes (json_ld_class_depth) 3 One of those contexts defines 5 or more classes
Context defines properties (json_ld_property_depth) 3 One of those contexts defines 10 or more properties

Exactly what counts:

  • The vocabulary check scores the pointer, not the file. The scorer never opens the vocabulary to count terms. The pointer must resolve: a relative path (vocabulary/acme-vocabulary.yml) counts only if the file exists in your catalog repo, and an http(s) URL is graded on liveness like other pointers (live 1.0, unverified 0.5, confirmed dead 0; a URL never probed counts in full). The type string is exact: Vocabulary. There is no alias, so Glossary, vocabulary and Terms don’t count.
  • The JSON-LD checks read files, not pointers. The apis.io build opens every *.jsonld file in json-ld/ and counts the terms in its @context. A .json file in that folder isn’t read, and a JSONLD pointer in apis.yml with no file in json-ld/ earns nothing here.
  • Only an inline @context object is counted. A context that is a remote URL string ("@context": "https://schema.org/") or a list counts as present (5 points) but has zero classes and zero properties. If the document is a top-level array of nodes, the first node with an @context is the one read.
  • How a term is classified. Keys starting with @ (@vocab, @base, @version) are skipped. Then, for every other key in the @context object:
    • a string value containing :// is a namespace prefix ("schema": "https://schema.org/"). It counts as neither.
    • a string value without :// is a class ("Customer": "schema:Person").
    • an object value is a property ("email": {"@id": "schema:email"}).
  • The trap in that rule. The short form "email": "schema:email" is valid JSON-LD for a property, but the scorer counts it as a class. Write every property in the expanded form, with @id (and @type where it helps), or your properties will be counted as classes and the property check will fail.
  • Depth is per context. Five classes in one file and five more in another is still 5, not 10; the count is file by file and one file has to clear each bar. The class bar and the property bar can be cleared by different files, but it’s simpler to keep one context per API.

The rules are in signals/score.rb (vocabulary_published, json_ld_present, json_ld_class_depth, json_ld_property_depth) and the counting in the apis.io build (network/scripts/build.py, which writes class_count and property_count for each context). None of the four is on the provenance list, so there’s no authorship multiplier: a vocabulary or context API Evangelist derived from your contract scores the same as one you wrote. Most of the vocabularies and contexts already in the catalog were derived by our pipeline from your OpenAPI, and say so (method: derived). Writing your own is how the words become your decision instead of our reading of your field names.

The rule above is the public rubric (rubric page). The kit sells the working method: the steps, starters, overlay and check script.

What a kit does and doesn't do. A kit teaches the fix. Your score changes only when you publish the change and the public apis.io pipeline reads it, so ask for a re-check from your provider page once it's live. Buying never moves a score. Want it applied to your own contract instead? Use Ask about this on your apis.io provider page for a tailored fix plan; the kit price is credited against it.