Documentation Wiki

The vocabulary/lexicon generation

Generating code should start from a Go struct with annotations, or from a JSON-LD context document.

The steps should be something like this:

Structure

We need to validate the struct’s compatibility with the Vanilla AP objects:

Helper functions

Generate helper functions in the lexicon package:

Types constraints

Accumulate types for generated objects and add their types to the slices for:

Accumulate types into the interfaces that can be used by generic code (Actors, Objects, etc).

Codecs for JSON/Binary representations