openagri-eu / farmcalendar

European Union Public License 1.2
1 stars 0 forks source link

Use JSON-LD through the use of Calamus #14

Open arruda opened 1 month ago

arruda commented 1 month ago

https://calamus.readthedocs.io/en/latest/ seems a good way to provide a json-ld serialization from Python classes, which should make it easy to integrate it with the DRF or FastAPI and such.

Try it out first with FarmCrop model, based it on https://gitlab.com/Ploutos-project/ploutos-common-semantic-model/-/blob/master/ploutos.ttl?ref_type=heads#L699

arruda commented 1 day ago

or maybe do the fertilization one, seems like a more direct process that will integrate with the other services already