-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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.