Guide for Extensions
3 Implementation of Testbed annotators
After having defined all the mappings between your platform’s assets (both in terms of resource descriptions and observations), including the possible modifications that may be brought about on the ontology, it is time to talk about the implementation of the annotator that would convert your datasets to that compliant with FIESTA-IoT ontology (data model).
For that, you can choose among a number of different RDF serialization the ones listed below (annotated according to the “Content-type” field of the HTTP header):
In order to show you an example of how to annotate a resource or an observation, we have included Appendix II where an illustrative example of one of the SmartSantander’s resources using json-ld as the serialization format is provided (IoT-Registry API online documentation: http://platform.fiesta-iot.eu/iot-registry/docs/api.html). Besides, you can dynamically query another Content-Type by means of the IoT-Registry API (FIESTA-IoT Consortium, 2016).
In case you want to check whether your annotations are compliant with our ontology, you can use the FIESTA-IoT Ontology Validator to receive a real-time validation report. Moreover, in case your annotated document is not a 100% match with the correct format, this report will not only return the binary correct/error output, but will also provide a detailed explanation of the actual source(s) of the error(s).