Practical guide

How to test JSON-LD contexts in a freight integration

On JSON-LD interfaces, compare the expanded meaning of a field, not just the short key. A change to the context can change what a familiar field means; different aliases can also refer to the same term.

Pin the semantic contract

Keep JSON structure and term meaning separate.

The W3C JSON-LD 1.1 recommendation describes how contexts map terms to identifiers and how document expansion makes those meanings explicit. Agree which reviewed context and vocabulary versions the receiver supports. For an integration test, use pinned, reviewed context resources rather than relying on uncontrolled changes during a build.

Worked example

Two fields have the same short name but different meanings.

Two synthetic documents use the key location. After expansion, one refers to where an event occurred and the other refers to a planned delivery location. Keep both meanings separate in the mapping. Conversely, if two aliases expand to the same term, compare their values and scope before declaring a mismatch.

Acceptance checks

Detect meaning changes without guessing.

Related resources

Continue with a scoped check.

Review integration contract and evidence tooling

Apply typed mappings to air cargo objects

Software direction

Make transport data issues visible before the handoff.

Explore the public demo and compare proposed software plans. Paid access is not open yet.

Compare plans