A JSON-LD context file is a file that can be used to associate namespace prefixes with the full URIs that they represent.
This is a required artifact when using NIEM JSON.
This is the same kind of information captured in XML via namespace prefix declarations. Without explicitly associating namespace prefixes to URIs, it would be left to future users to have to guess or try to reverse engineer which versions of NIEM schemas were used. Interpreting the meaning of NIEM messages should not involve guesswork.
nc:Location
in a JSON extension schema.nc
to the URI that identifies it, it could be from any version of NIEM Core - or from a different, non-NIEM namespace entirely.nc:Location
in a JSON extension schema."nc" : "http://release.niem.gov/niem/niem-core/4.0/#"
nc:Location
is from NIEM Core version 4.0.For a NIEM release, this file is located in the jsonld-context
folder in the root of the package or repo.
This example is the beginning of the JSON-LD context file from the NIEM 4.0 release: