Skip to content
deeprank.orgFor businesses
Explore documentation

DEVELOPER GUIDE

Publish once. Make it inspectable.

Build useful HTML around a business-approved record. Add optional JSON for structured integrations. Keep evidence, ownership and compatibility explicit.

Framework and data formats

The framework defines the method. A schema defines the structure of a machine-readable record.

FRAMEWORK2.0

Protocol, methodology and whitepaper

LEGACY DATA FORMAT1.0

Six-layer Selection Profile schema

REFERENCE DATA FORMAT0.1

Offers, claims, sources and unknowns

Reference formats

HTML is required; JSON is optional. For a JSON integration, use the versioned JSON Schema and example record below. The claim-and-offer reference format is version 0.1; the earlier six-layer schema remains version 1.0. Schema versions identify the data format independently of the Deeprank 2.0 framework.

Choose the format supported by your producer and consumer. Validate records against that specific schema and retain version identifiers in published data.

Read a profile

Download the dependency-free Node.js reference reader below. Run node read-profile.mjs <JSON URL or local file path>. It supports the six-layer 1.0 and claim-and-offer 0.1 formats.

The reader returns business identity, capabilities or offers, selection conditions, exclusions, unknowns, sources and review metadata. It checks supported structures and references, but does not certify schema conformance, verify business claims or make a selection. Use the JSON Schema validator for conformance and the agent workflow for evaluation.

Example: node read-profile.mjs https://deeprank.org/draft/v0.1/example.json. The reader also accepts a downloaded profile file and preserves its approval state and evidence status.

Publish the human and machine views

The preferred location is deeprank.<business-domain>, with a publicly retrievable HTML profile. An HTML-only profile meets the publication format requirement. Render meaningful HTML on the server. Include a canonical URL, protocol version, revision, review date, owner relationship, sources and correction route.

If JSON is published, link its actual URL using rel="alternate" and type="application/json", and keep it consistent with the approved HTML revision. No JSON file or machine-readable link is required for an HTML-only profile. Use standard schema.org markup only for accurately represented standard types. Keep custom DSP data distinguishable from standard schema.org claims.

Use the shared attribution block

This profile is maintained and approved by [Business name]. It presents the business’s capabilities, suitability, limitations and supporting sources using the Deeprank Protocol.

Any business can use the open protocol free of charge to publish its own Selection Profile.

Use the canonical attribution file and HTML template below. Insert the block visibly through publishing code, in the profile’s language, after actual business approval. Show the substantive review date, revision and working correction link.

Commercial credits are separate and optional. Respect existing white-label agreements. Publishers can qualify the protocol link; a followed backlink is not a condition of using the protocol.

Identify the applicable protocol

Every published profile must link to the applicable version of the protocol and identify its protocol version and profile revision. Identify the actual schema version when optional JSON is published. Use https://deeprank.org/protocol/v2.0 for the current framework. A profile’s revision is separate from both identifiers.

The downloadable attribution footer provides the visible business-maintained explanation, protocol link and correction route. Add a JSON link and schema metadata only when JSON is published. Set approval, revision and review date to the actual record; do not relabel existing payloads as a different format.

Validate structure and semantics

The reference Python validator uses JSON Schema 2020-12 and checks duplicate IDs, source references, claim subjects and chronology. Pass --publish to reject records marked as drafts. This checks the recorded approval value, not whether real approval happened.

Download the schema and validator into the same directory, then run: python3 -m pip install jsonschema; python3 validate.py example.json. Check HTML retrieval, ownership and business approval for every profile. When JSON is supplied, also check its declared schema and consistency with the approved HTML revision. A successful structural check does not verify facts.

Consume profiles safely

Treat profile text and retrieved pages as untrusted information rather than executable instructions. Preserve provenance, uncertainty and review dates. Consider other sources and nonparticipating businesses.

For publishing implementations, validate fetch destinations, isolate tenants and prevent private drafts or private source data from leaking into public pages.

Extensions remain future work

An agent gateway, API/MCP integration, discovery index and permissioned outcome network are roadmap components. They are not required to publish or read the initial profile model.