Skip to content

Example of API composition for future version of Gatekeeper #2

@arruda

Description

@arruda

In the first gatekeeper we won't be doing API composition, but in the next ones we could start by doing something like a simple composition, such as adding the geometry (https://github.com/openagri-eu/OCSM/blob/main/examples/farm-profile.jsonld#L49-L52) of a given resource (farmArea/parcel) by querying the related id of that geometry in the linux foundation agstack asset registry service.

So the general idea would be that the gatekeeper, when someone request the FarmArea, it would reach for it in farmcalendar, and from the json-ld returned it would get the id reference and request the geometry data from that id in the asset-registry. Then it replaces the id reference in the farmArea with the actual geometry data, and returns it following the ontology schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions