Code Generator for @context
-Files (NGSI-LD and JSON-LD) used in the official FIWARE tutorial:
Note: The Data Models used here for
@context
generation are defined using OpenAPI 3.0 Swagger format. To help with the generation of IRIs the specification has been extended with additional annotations as necessary. Thex-ngsi
attribute, as the name suggests is just a simple Specification Extension - usually it is not relevant to Swagger, and indeed you could generate a simple@context
file without it, but the data held within in has been used to help generate a rich@graph
and more comprehensive documentation.The simple NGSI-LD
@context
generator in the tutorial defaults to usinguri.fiware.org
namespaces and updates with corrected URIs based on thex-ngsi.uri
andx-ngsi.uri-prefix
attributes.
./services [create|markdown|ngsi|validate] [file]
(Prerequisite: Docker is running)