This document provides information on implementing a beacon framework. It discusses endpoints, types of filters, mapping database data to models, database queries, pagination, and response structures. Key points include having GET and POST endpoints, ontology, alphanumeric and custom filters, mapping database entities to model entities and properties, using skip/limit or cursor pagination, and including error responses following the framework. The project has received funding from the European Union and Canadian Institute of Health Research.
Dehradun Call Girls Service {8854095900} ❤️VVIP ROCKY Call Girl in Dehradun U...
Lighting a Beacon: training for (future) implementers
1. This project has received funding from the European Union’s Horizon 2020 research and
Innovation programme under grant agreement No. 825775
This project has received funding from the Canadian Institute of Health Research under
grant agreement #404896
Lighting a Beacon:
Training for (future) implementers
2. Who is this talk for?
Beacon implementors
and software developers
Beacon users
5. Beacon Framework
Framework
Model
• Specifies the structure of the wrapper
of the results.
• Allows the interoperability of beacons
with different data, since they all
understand the same protocol.
6. Beacon Framework: Types of beacon
Framework
Model
Boolean Beacon
Count Beacon
ResultSets Beacon
12. Beacon Verifier
• Verify that all of your endpoints follow the
framework
• Optionally, you can verify that the returned
results match the model of the beacon
https://ga4gh-approval-service-registry-test.ega-archive.org
23. Filters: filters vs. requestParameters
Should it be a filter or a
request parameter?
Filter Request parameter
It requires its
own schema
It can be represented
with an ontology term
Anything else
24. Database mapping exercise
• Mapping the data of your database to the correct entities of the
model (and their properties)
• Extending the model to include additional entities that you may
provide and are not represented in the model
25. Database queries
• The new version of the Reference Implementation uses MongoDB:
• Each entity can be thought of as a collection
• Allows for a flexible evolution of the schema
26. Pagination
• We support two types of pagination:
skip & limit pagination cursor-like pagination
• We skip n elements and return the
next m elements.
• We add a hash to the response
encoding the next m elements of the
page
29. Summary
• The Beacon Framework defines the structure of the response.
• The Beacon Model defines the structure of the response data.
• Implementing a beacon:
• Start with a boolean beacon
• List your available endpoints
• Map the data from your DB to the models
• Handle the different types of filters
• Build a response following the framework
30. Funding
This project has received funding from the
Canadian Institute of Health Research
under grant agreement #404896
This project has received funding from the
European Union's Horizon 2020 Research
and Innovation Programme under grant
agreement #825775