1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
# API Endpoints
The following end-points are available to all users. The result of every query is json-ld.
## GET /metadata/species
Returns a list of species.
```
curl localhost:8080/api/metadata/species
```
Example Result:
```
{
"@context": {
"alternateName": "skos:altLabel",
"data": "@graph",
"family": "gnt:family",
"fullName": "skos:prefLabel",
"gnt": "http://genenetwork.org/term/",
"id": "@id",
"name": "rdfs:label",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"shortName": "gnt:shortName",
"skos": "http://www.w3.org/2004/02/skos/core#",
"taxonomicId": "skos:notation",
"type": "@type"
},
"data": [
{
"alternateName": "Human",
"family": "Vertebrates",
"fullName": "Human (Homo sapiens, hg19)",
"id": "http://genenetwork.org/id/Homo_sapiens",
"name": "Homo sapiens",
"shortName": "human",
"taxonomicId": {
"id": "http://purl.uniprot.org/taxonomy/9606"
}
},
[...]
{
"alternateName": "Soybean",
"family": "Plants",
"fullName": "Soybean (Glycine max, US DOE JGI-PGF v2 2021)",
"id": "http://genenetwork.org/id/Glycine_max",
"name": "Glycine max",
"shortName": "soybean",
"taxonomicId": {
"id": "http://purl.uniprot.org/taxonomy/3847"
}
}
]
}
```
## GET /metadata/species/:name
Get a list of species with data available in GN.
```
curl "localhost:8080/api/metadata/species/bat"
```
Example Result:
```
{
"@context": {
"alternateName": "skos:altLabel",
"data": "@graph",
"family": "gnt:family",
"fullName": "skos:prefLabel",
"gnt": "http://genenetwork.org/term/",
"id": "@id",
"name": "rdfs:label",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"shortName": "gnt:shortName",
"skos": "http://www.w3.org/2004/02/skos/core#",
"taxonomicId": "skos:notation",
"type": "@type"
},
"alternateName": "Bat (Glossophaga soricina)",
"family": "Vertebrates",
"fullName": "Bat (Glossophaga soricina, gsor23)",
"id": "http://genenetwork.org/id/Glossophaga_soricina",
"name": "Glossophaga soricina",
"shortName": "bat",
"taxonomicId": {
"id": "http://purl.uniprot.org/taxonomy/27638"
}
}
```
## GET /metadata/groups
Fetch all groups.
```
curl "localhost:8080/api/metadata/groups"
```
Example Results:
```
{
"@context": {
"code": "gnt:code",
"data": "@graph",
"family": "gnt:family",
"fullName": "skos:prefLabel",
"geneticType": "gnt:geneticType",
"gnt": "http://genenetwork.org/term/",
"id": "@id",
"mappingMethod": "gnt:mappingMethod",
"name": "rdfs:label",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"shortName": "gnt:shortName",
"skos": "http://www.w3.org/2004/02/skos/core#",
"type": "@type"
},
"data": [
{
"code": "BDG",
"family": "BXD Individual Data",
"fullName": "DOD-BXD-GWI",
"geneticType": "intercross",
"id": "http://genenetwork.org/id/setDod-bxd-gwi",
"mappingMethod": "qtlreaper",
"name": "BXD DOD Gulf War Illness"
},
[...]
{
"code": "CAN",
"fullName": "CANDLE",
"id": "http://genenetwork.org/id/setCandle",
"name": "Child Development: CANDLE Cohort with Genotypes (TUCI/UTHSC)"
}
]
}
```
## GET /metadata/groups/:name
Fetch information about a given group given a species' name.
```
curl "localhost:8080/api/metadata/groups/bat"
```
Example Results:
```
{
"@context": {
"code": "gnt:code",
"data": "@graph",
"family": "gnt:family",
"fullName": "skos:prefLabel",
"geneticType": "gnt:geneticType",
"gnt": "http://genenetwork.org/term/",
"id": "@id",
"mappingMethod": "gnt:mappingMethod",
"name": "rdfs:label",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"shortName": "gnt:shortName",
"skos": "http://www.w3.org/2004/02/skos/core#",
"type": "@type"
},
"code": "GSO",
"fullName": "GSO",
"id": "http://genenetwork.org/id/setGso",
"mappingMethod": "qtlreaper",
"name": "HUB Winter Gsor families (2014-2022)"
}
```
|