Skip to content

Commit 4d9e306

Browse files
committed
some v2 naming/version use cleanup
... and a line about contributions. ... and a bit of decluttering the index ... also introducing {{config.beacon_major_version}} at some places in the text
1 parent 2fcc80d commit 4d9e306

13 files changed

Lines changed: 78 additions & 84 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Unified repository for Beacon v2 Code & Documentation
1+
# Unified repository for Beacon Code & Documentation
22

33
## Description
44

bin/_jsonref2json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
#
3-
# Script to dereference JSON $ref in Beacon v2 Models schemas
3+
# Script to dereference JSON $ref in Beacon Models schemas
44
#
55
# ------------ DEPRECATED ------------
66
# *******************************************************

docs/beacon-flavours.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Beacon "Flavours"
22

33
!!! Note "About UI"
4-
Most of the information that you will find here is related to the [Beacon v2 specification](/). For that reason, the examples are shown as REST API requests/responses in the form of [JSON](https://www.json.org/json-en.html). If you are only interested in using beacon with a **graphical interface** please visit the [implementations](implementations-options.md) page.
4+
Most of the information that you will find here is related to the [Beacon {{config.beacon_major_version}} specification](/). For that reason, the examples are shown as REST API requests/responses in the form of [JSON](https://www.json.org/json-en.html). If you are only interested in using beacon with a **graphical interface** please visit the [implementations](implementations-options.md) page.
55

66
While the original Beacon v1 only provided Boolean (_i.e._ **YES/NO**) responses
77
on queries for the existence of specific genomic variants, Beacon v2 is a flexible
@@ -24,9 +24,10 @@ with a _true_ or _false_ value when queried for the existence of some data in a
2424
a _Count Response_ Beacon only returns aggregate information, _i.e._ the number of matched
2525
entries (e.g. genomic variants), a feature also part of the Beacon v1 protocol.
2626

27-
However, in contrast to earlier versions, in Beacon v2 _in principle_ a beaconized resource
28-
may implement all types of query options (e.g. combinations of various filters and
29-
genomic query parameters) but still only offer a Boolean and optionally Count response.
27+
However, in contrast to earlier versions, in Beacon {{config.beacon_major_version}}
28+
_in principle_ a beaconized resource may implement all types of query options
29+
(e.g. combinations of various filters and genomic query parameters) but still
30+
only offer a Boolean and optionally Count response.
3031

3132
Also, all Beacons _should_ implement the _Boolean Response_ format as fallback option and
3233
handle extended options depending on the user's authentication status.
@@ -84,6 +85,5 @@ Information about the different data delivery options can be found here:
8485

8586

8687

87-
8888
[^1]: Privacy protecting as in "reasonably protecting by design but not immune to complex
8989
re-identification attacks".

docs/changes-todo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ to `beacon-v2`.
119119

120120
* Reorganization of navigation
121121
* Deleted page `implement-and-deploy.md`
122-
* Added pages: [What is Beacon v2](what-is-beacon-v2.md) and [Implementation options](implementations-options.md)
122+
* Added pages: [What is Beacon](what-is-beacon-v2.md) and [Implementation options](implementations-options.md)
123123
* [Filters](filters.md) Page Updated
124124

125125
### 2022-03-18: Macros and Variables for Documentation pages

docs/contribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ and Health [**GA4GH**](https://ga4gh.org). Since 2016 Beacon development has bee
55
organized through projects supported by ELIXIR with additional contributions from
66
outside organizations and individual developers and implementers.
77

8-
==TBD==
8+
The easiest way to contribute to Beacon development - or to enquire about or
9+
request additional features - is through the project's Github{{config.repo_icon}} [issues]({{config.repo_url}}/issues) and [discussions]({{config.repo_url}}/discussions).

docs/formats-standards.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The only exception is: `service-info` which is a required GA4GH standard and has
1414

1515
### Schema Language and Conventions
1616

17-
The **Beacon v2 API** follows [OpenAPI 3.0.2](https://spec.openapis.org/oas/v3.0.2) specification for the [endpoints](https://github.com/ga4gh-beacon/beacon-v2/blob/main/framework/src/endpoints.yaml), in conjuntion with JSON Schema ([2020-12]( https://json-schema.org/draft/2020-12/schema)) to define the [Framework](framework.md) {{config.repo_framework_icon}} and the [Models](models.md) {{config.repo_models_icon}} components. The specification uses JSON [references](https://json-spec.readthedocs.io/reference.html) (`$ref`) to reference internal (e.g., definitions) or external concepts/terms (e.g., [VRS](https://vrs.ga4gh.org/en/latest/terms_and_model.html)).
17+
The **Beacon API** follows [OpenAPI 3.0.2](https://spec.openapis.org/oas/v3.0.2) specification for the [endpoints](https://github.com/ga4gh-beacon/beacon-v2/blob/main/framework/src/endpoints.yaml), in conjuntion with JSON Schema ([2020-12]( https://json-schema.org/draft/2020-12/schema)) to define the [Framework](framework.md) {{config.repo_framework_icon}} and the [Models](models.md) {{config.repo_models_icon}} components. The specification uses JSON [references](https://json-spec.readthedocs.io/reference.html) (`$ref`) to reference internal (e.g., definitions) or external concepts/terms (e.g., [VRS](https://vrs.ga4gh.org/en/latest/terms_and_model.html)).
1818

19-
The Beacon v2 specification is written in [YAML](https://yaml.org). The original files are located under `src` directory (see below). For technical purposes, we also provide a **copy** of the original YAML in JSON format (see `json` directory below). Changes in the specification must be performed in the YAML version and are then rewritten to the JSON version.
19+
The Beacon specification is written in [YAML](https://yaml.org). The original files are located under `src` directory (see below). For technical purposes, we also provide a **copy** of the original YAML in JSON format (see `json` directory below). Changes in the specification must be performed in the YAML version and are then rewritten to the JSON version.
2020

2121
=== "Framework"
2222

@@ -96,8 +96,7 @@ The Beacon v2 specification is written in [YAML](https://yaml.org). The original
9696
<a href="https://xkcd.com/1179/" target="_blank"><img src="https://imgs.xkcd.com/comics/iso_8601.png" align="right" style="margin 20px 0px 30px 20px; width: 200px; clear:none;" /></a>
9797

9898
Date and time formats are specified as [ISO8601](https://www.w3.org/TR/NOTE-datetime)
99-
compatible strings, both for time points as well as for durations. Some of the ISO8601
100-
compatible formats have not (yet) been used in the Beacon v2 default model.
99+
compatible strings, both for time points as well as for durations.
101100

102101
#### Examples
103102

@@ -109,11 +108,11 @@ compatible formats have not (yet) been used in the Beacon v2 default model.
109108
- *P43Y08M*
110109

111110
##### LINK: W3C [ISO8601](https://www.w3.org/TR/NOTE-datetime)
112-
##### LINK: ISO8601 documentation at [GA4GH SchemaBlocks](https://schemablocks.org/standards/dates-times.html)
111+
##### LINK: ISO8601 documentation at [GA4GH SchemaBlocks](https://genomestandards.org/standards/dates-times.html)
113112

114113
## Integration with External Standards
115114

116-
The development of the Beacon v2 framework and default model closely follows
115+
The development of the Beacon framework and default model closely follows
117116
and widely adopts concepts and schemas from approved GA4GH products such as
118117
Phenopackets and the Variant Representation Standard (VRS).
119118

@@ -125,7 +124,7 @@ has been approved and covers a set of use cases and requirements, especially wit
125124
to genomic (including cytogenetic or feature based) locations. However, it is not yet
126125
suitable for a number of practical use cases, especially the representation of some structural variations.
127126

128-
The Beacon v2 default model for `GenomicVariation` makes use of the VRS standard to represent
127+
The Beacon default model for `GenomicVariation` makes use of the VRS standard to represent
129128
the `variation` part, _i.e._ the location and sequence or copy number changes of the
130129
genomic variation. While a "legacy" alternative is still allowed this one too has been adjusted
131130
to make use of the VRS `Location` format.
@@ -237,7 +236,7 @@ The examples are for different forma of the `location` property inside a `genomi
237236

238237
### Phenopackets
239238

240-
In the Beacon v2 default data model, many schemas are either directly compatible to
239+
In the Beacon default data model, many schemas are either directly compatible to
241240
[Phenopackets v2 building blocks](https://phenopacket-schema.readthedocs.io/en/latest/building-blocks.html)
242241
or at least reflect them but with some adjustments. While the Beacon v2 default model's schemas do not _per se_ have to reflect
243242
PXF schemas, we target an as-close-as-possible alignment to promote/leverage GA4GH-wide

docs/framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Beacon v2 Framework
1+
# Beacon Framework
22

33
## Introduction
44

docs/implementations-options.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
!!! Important
2-
As previously described, **Beacon v2 is an specification** for sharing/discovery of data. Thus, _a priori_, it has nothing to do with any particular software, database or computer language.
2+
As previously described, **Beacon is an specification** for sharing/discovery of data. Thus, _a priori_, it has nothing to do with any particular software, database or computer language.
33

44
# Which are the implementation options?
55

6-
Two elements are needed to implement (or "light") a Beacon v2:
6+
Two elements are needed to implement (or "light") a Beacon:
77

88
1. An internal **database** (where the biological data are stored).
99
2. A **REST API** that provides a standardized way to send queries and receive responses (containing yes/no, counts or data).
@@ -14,11 +14,11 @@ In this section we are going to present three implementation options, going from
1414

1515
![Option A](img/option-A.png)
1616

17-
Let's say that you have your data organized and structured in a database (e.g. [SQL](https://en.wikipedia.org/wiki/SQL) or [NoSQL](https://en.wikipedia.org/wiki/NoSQL) which may or may not have an internal layer to get access to it). Let's also say that you have the resources (and knowledge) to read the "instructions" (i.e., Beacon v2 specification) to build an API on top of your existing solution. If that's your case, then this is the option for you. You are one of what we call **Beacon v2 API implementers**. We have a few of them already in the [Beacon v2 Service Registry](https://ga4gh-approval-service-registry-demo.ega-archive.org):
17+
Let's say that you have your data organized and structured in a database (e.g. [SQL](https://en.wikipedia.org/wiki/SQL) or [NoSQL](https://en.wikipedia.org/wiki/NoSQL) which may or may not have an internal layer to get access to it). Let's also say that you have the resources (and knowledge) to read the "instructions" (i.e., Beacon specification) to build an API on top of your existing solution. If that's your case, then this is the option for you. You are one of what we call **Beacon API implementers**. We have a few of them already in the [Beacon Service Registry](https://ga4gh-approval-service-registry-demo.ega-archive.org):
1818

1919
* [European Genome-Phenome Archive Beacon](https://ga4gh-approval-beacon.ega-archive.org/api/info)
20+
* [`bycon` Python stack](https://bycon.progenetix.org) driving full featured v2.n under the [Progenetix](https://progenetix.org), [cancercelllines.org](https://cancercelllines.org) and [refCNV](https://refcnv.org) genomics resources
2021
* [Cafe Variome](https://beaconv2.cafevariome.org/form)
21-
* [`bycon` Python stack](https://bycon.progenetix.org) driving full featured v2 under the [Progenetix](https://progenetix.org) resource
2222
* [Fundacion Progreso y Salud Beacon v2 API](https://csvs-beacon.clinbioinfosspa.es/csvs/ga4ghbeacon/v2/api/)
2323
* [CNAG Beacon v2 API](https://playground.rd-connect.eu/beacon2/api)
2424

@@ -39,4 +39,4 @@ Let's say that you have your data _somewhat_ structured (you may have Excel file
3939
You want to "beaconize" your data to be part of a larger ecosystem, but you're unsure where to start, and/or don't want to invest a lot of resources because you are still unsure if the whole thing will pay off. Well, you're a not alone! Most centers are in this situation. For that reason at [CRG](https://www.crg.eu) we developed the [**Beacon v2 Reference Implementation**](https://b2ri-documentation.readthedocs.io).
4040

4141
!!! Important
42-
People that download and install _B2RI_ or another pre-packaged solution are named **Beacon v2 deployers**.
42+
People that download and install _B2RI_ or another pre-packaged solution are named **Beacon deployers**.

docs/implementations/org.progenetix.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<h2>Progenetix & Beacon<span style="color: red; font-weight: 800;"><sup>+</sup></span></h2>
33

44
The Beacon+ implementation - developed in the Python & MongoDB based [`bycon` project](https://github.com/progenetix/bycon/) -
5-
implements an expanding set of Beacon v2 paths for the [Progenetix](https://progenetix.org)
6-
resource :flag_ch:.
5+
implements an expanding set of Beacon {{config.beacon_major_version}} paths for the [Progenetix](https://progenetix.org)
6+
and other resource :flag_ch:.
77

88
### Scoped responses from query object
99

@@ -25,7 +25,7 @@ to `https://progenetix.org/beacon/variants/` or `https://progenetix.org/beacon/b
2525
{
2626
"$schema":"beaconRequestBody.json",
2727
"meta": {
28-
"apiVersion": "2.0",
28+
"apiVersion": "2.1",
2929
"requestedSchemas": [
3030
{
3131
"entityType": "genomicVariant",

0 commit comments

Comments
 (0)