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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
|
# Species Metadata
## 'dump-inbred-set'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT InbredSet.Name, InbredSet.FullName, InbredSet.GeneticType, InbredSet.Family, MappingMethod.Name, InbredSet.InbredSetCode, Species.Fullname, IF ((SELECT PublishFreeze.Name FROM PublishFreeze WHERE PublishFreeze.InbredSetId = InbredSet.Id LIMIT 1) IS NOT NULL, 'Traits and Cofactors', '') AS genotypeP, IF ((SELECT GenoFreeze.Name FROM GenoFreeze WHERE GenoFreeze.InbredSetId = InbredSet.Id LIMIT 1) IS NOT NULL, 'DNA Markers and SNPs', '') AS phenotypeP, (SELECT GROUP_CONCAT(DISTINCT Tissue.Short_Name SEPARATOR'||') AS MolecularTraits FROM ProbeFreeze, ProbeSetFreeze, InbredSet, Tissue, Species WHERE ProbeFreeze.TissueId = Tissue.Id AND ProbeFreeze.InbredSetId = InbredSet.Id AND ProbeSetFreeze.ProbeFreezeId = ProbeFreeze.Id ORDER BY Tissue.Name) AS molecularTrait FROM InbredSet LEFT JOIN Species ON InbredSet.SpeciesId=Species.Id LEFT JOIN MappingMethod ON InbredSet.MappingMethodId=MappingMethod.Id
```
The above query results to triples that have the form:
```text
gn:Inbredset_name -> rdf:type -> gnc:inbredSet
gn:Inbredset_name -> rdfs:label -> InbredSet(FullName)
gn:Inbredset_name -> gnt:geneticType -> InbredSet(GeneticType)
gn:Inbredset_name -> gnt:family -> InbredSet(Family)
gn:Inbredset_name -> gnt:mappingMethod -> MappingMethod(Name)
gn:Inbredset_name -> gnt:code -> InbredSet(InbredSetCode)
gn:Inbredset_name -> gnt:species -> gn:Species_fullname
gn:Inbredset_name -> gnt:genotype -> genotypeP
gn:Inbredset_name -> gnt:phenotype -> phenotypeP
gn:Inbredset_name -> gnt:molecularTrait -> gn:tissue_moleculartrait
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX gnt: <http://genenetwork.org/term/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT * WHERE {
?s rdf:type gnc:inbredSet .
?s rdfs:label "BXD Family" .
?s gnt:geneticType "riset" .
?s gnt:family "Reference Populations (replicate average, SE, N)" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:Bxd rdf:type gnc:inbredSet .
gn:Bxd rdfs:label "BXD Family" .
gn:Bxd gnt:geneticType "riset" .
gn:Bxd gnt:family "Reference Populations (replicate average, SE, N)" .
gn:Bxd gnt:mappingMethod "BXD" .
gn:Bxd gnt:code "BXD" .
gn:Bxd gnt:species gn:Mus_musculus .
gn:Bxd gnt:genotype "Traits and Cofactors" .
gn:Bxd gnt:phenotype "DNA Markers and SNPs" .
gn:Bxd gnt:molecularTrait gn:tissue_a1c .
gn:Bxd gnt:molecularTrait gn:tissue_acc .
gn:Bxd gnt:molecularTrait gn:tissue_adr .
gn:Bxd gnt:molecularTrait gn:tissue_amg .
gn:Bxd gnt:molecularTrait gn:tissue_bebv .
gn:Bxd gnt:molecularTrait gn:tissue_bla .
gn:Bxd gnt:molecularTrait gn:tissue_brmet .
gn:Bxd gnt:molecularTrait gn:tissue_brmicrorna .
gn:Bxd gnt:molecularTrait gn:tissue_brn .
gn:Bxd gnt:molecularTrait gn:tissue_cart .
gn:Bxd gnt:molecularTrait gn:tissue_cb .
gn:Bxd gnt:molecularTrait gn:tissue_cbc .
gn:Bxd gnt:molecularTrait gn:tissue_ctx .
gn:Bxd gnt:molecularTrait gn:tissue_dfc .
gn:Bxd gnt:molecularTrait gn:tissue_drg .
gn:Bxd gnt:molecularTrait gn:tissue_ec .
gn:Bxd gnt:molecularTrait gn:tissue_emb .
gn:Bxd gnt:molecularTrait gn:tissue_eye .
gn:Bxd gnt:molecularTrait gn:tissue_fat .
gn:Bxd gnt:molecularTrait gn:tissue_fecmet .
gn:Bxd gnt:molecularTrait gn:tissue_femur .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_aor .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_atr .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_blo .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_bonm .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_bre .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_cau .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_cer .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_cerv .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_cml .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_col .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_colsig .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_cor .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_ebv .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_eso .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_esogas .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_fal .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_fro .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_muc .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_ner .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_pan .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_put .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_sintter .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_skinex .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_skisex .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_sn .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_sto .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_sub .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_tf .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_thy .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_tib .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_vag .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_ven .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_vis .
gn:Bxd gnt:molecularTrait gn:tissue_gtex_who .
gn:Bxd gnt:molecularTrait gn:tissue_gut .
gn:Bxd gnt:molecularTrait gn:tissue_hea .
gn:Bxd gnt:molecularTrait gn:tissue_hip .
gn:Bxd gnt:molecularTrait gn:tissue_hippreccel .
gn:Bxd gnt:molecularTrait gn:tissue_hipprot .
gn:Bxd gnt:molecularTrait gn:tissue_hip_mirna .
gn:Bxd gnt:molecularTrait gn:tissue_hsc .
gn:Bxd gnt:molecularTrait gn:tissue_hyp .
gn:Bxd gnt:molecularTrait gn:tissue_ifra_ctx .
gn:Bxd gnt:molecularTrait gn:tissue_ipc .
gn:Bxd gnt:molecularTrait gn:tissue_isl .
gn:Bxd gnt:molecularTrait gn:tissue_itc .
gn:Bxd gnt:molecularTrait gn:tissue_kid .
gn:Bxd gnt:molecularTrait gn:tissue_lathab .
gn:Bxd gnt:molecularTrait gn:tissue_lcm_brreg .
gn:Bxd gnt:molecularTrait gn:tissue_leaf .
gn:Bxd gnt:molecularTrait gn:tissue_liv .
gn:Bxd gnt:molecularTrait gn:tissue_livdnam .
gn:Bxd gnt:molecularTrait gn:tissue_livmet .
gn:Bxd gnt:molecularTrait gn:tissue_livpro .
gn:Bxd gnt:molecularTrait gn:tissue_lung .
gn:Bxd gnt:molecularTrait gn:tissue_m1c .
gn:Bxd gnt:molecularTrait gn:tissue_mam .
gn:Bxd gnt:molecularTrait gn:tissue_mamtum .
gn:Bxd gnt:molecularTrait gn:tissue_mbr .
gn:Bxd gnt:molecularTrait gn:tissue_md .
gn:Bxd gnt:molecularTrait gn:tissue_methyl .
gn:Bxd gnt:molecularTrait gn:tissue_mfc .
gn:Bxd gnt:molecularTrait gn:tissue_musmet .
gn:Bxd gnt:molecularTrait gn:tissue_nac .
gn:Bxd gnt:molecularTrait gn:tissue_nbcb .
gn:Bxd gnt:molecularTrait gn:tissue_neutrophil .
gn:Bxd gnt:molecularTrait gn:tissue_ocl .
gn:Bxd gnt:molecularTrait gn:tissue_ofc .
gn:Bxd gnt:molecularTrait gn:tissue_of_ctx .
gn:Bxd gnt:molecularTrait gn:tissue_ova .
gn:Bxd gnt:molecularTrait gn:tissue_pcg .
gn:Bxd gnt:molecularTrait gn:tissue_pfc .
gn:Bxd gnt:molecularTrait gn:tissue_pg .
gn:Bxd gnt:molecularTrait gn:tissue_pln .
gn:Bxd gnt:molecularTrait gn:tissue_pl_ctx .
gn:Bxd gnt:molecularTrait gn:tissue_pons .
gn:Bxd gnt:molecularTrait gn:tissue_pro .
gn:Bxd gnt:molecularTrait gn:tissue_ret .
gn:Bxd gnt:molecularTrait gn:tissue_ret_mirna .
gn:Bxd gnt:molecularTrait gn:tissue_ret_sc-rna-s .
gn:Bxd gnt:molecularTrait gn:tissue_s1c .
gn:Bxd gnt:molecularTrait gn:tissue_sal .
gn:Bxd gnt:molecularTrait gn:tissue_sg .
gn:Bxd gnt:molecularTrait gn:tissue_skm .
gn:Bxd gnt:molecularTrait gn:tissue_spi .
gn:Bxd gnt:molecularTrait gn:tissue_spl .
gn:Bxd gnt:molecularTrait gn:tissue_stc .
gn:Bxd gnt:molecularTrait gn:tissue_str .
gn:Bxd gnt:molecularTrait gn:tissue_tc .
gn:Bxd gnt:molecularTrait gn:tissue_tes .
gn:Bxd gnt:molecularTrait gn:tissue_tes_dna_met .
gn:Bxd gnt:molecularTrait gn:tissue_thelp .
gn:Bxd gnt:molecularTrait gn:tissue_thy .
gn:Bxd gnt:molecularTrait gn:tissue_treg .
gn:Bxd gnt:molecularTrait gn:tissue_ute .
gn:Bxd gnt:molecularTrait gn:tissue_v1 .
gn:Bxd gnt:molecularTrait gn:tissue_vfc .
gn:Bxd gnt:molecularTrait gn:tissue_vta .
gn:Bxd gnt:molecularTrait gn:tissue_wb .
gn:Bxd gnt:molecularTrait gn:tissue_wbc .
gn:Bxd gnt:molecularTrait gn:tissue_wbpr .
gn:Bxd gnt:molecularTrait gn:tissue_wfat .
gn:Bxd gnt:molecularTrait gn:tissue_wfat_pro .
```
## 'dump-species'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT Species.Fullname, Species.SpeciesName, Species.Name, Species.MenuName, Species.FullName, Species.Family, Species.TaxonomyId FROM Species
```
The above query results to triples that have the form:
```text
gn:Species_fullname -> rdf:type -> gnc:species
gn:Species_fullname -> skos:label -> Species(SpeciesName)
gn:Species_fullname -> skos:altLabel -> Species(Name)
gn:Species_fullname -> rdfs:label -> Species(MenuName)
gn:Species_fullname -> gnt:binomialName -> Species(FullName)
gn:Species_fullname -> gnt:family -> Species(Family)
gn:Species_fullname -> gnt:organism -> taxon:Species(TaxonomyId)
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX gnt: <http://genenetwork.org/term/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT * WHERE {
?s rdf:type gnc:species .
?s skos:label "Mouse" .
?s skos:altLabel "mouse" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:Mus_musculus rdf:type gnc:species .
gn:Mus_musculus skos:label "Mouse" .
gn:Mus_musculus skos:altLabel "mouse" .
gn:Mus_musculus rdfs:label "Mouse (Mus musculus, mm10)" .
gn:Mus_musculus gnt:binomialName "Mus musculus" .
gn:Mus_musculus gnt:family "Vertebrates" .
gn:Mus_musculus gnt:organism taxon:10090 .
```
## 'dump-strain'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT Strain.Name, Species.Fullname, Strain.Name, IF ((Strain.Name2 != Strain.Name), Strain.Name2, '') AS Name2, IF ((Strain.Alias != Strain.Name), Strain.Alias, '') AS Alias, IF ((Strain.Symbol != Strain.Name), Strain.Symbol, '') AS Symbol FROM Strain LEFT JOIN Species ON Strain.SpeciesId = Species.SpeciesId
```
The above query results to triples that have the form:
```text
gn:Strain_name_ -> rdf:type -> gnc:strain
gn:Strain_name_ -> gnt:species -> gn:Species_fullname
gn:Strain_name_ -> rdfs:label -> StrainName
gn:Strain_name_ -> rdfs:label -> Name2
gn:Strain_name_ -> gnt:alias -> Alias
gn:Strain_name_ -> gnt:symbol -> Symbol
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX gnt: <http://genenetwork.org/term/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT * WHERE {
?s rdf:type gnc:strain .
?s gnt:species gn:Mus_musculus .
?s rdfs:label "B6D2F1" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:B6d2f1 rdf:type gnc:strain .
gn:B6d2f1 gnt:species gn:Mus_musculus .
gn:B6d2f1 rdfs:label "B6D2F1" .
```
## 'dump-mapping-method'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT MappingMethod.Name, MappingMethod.Name FROM MappingMethod
```
The above query results to triples that have the form:
```text
gn:mappingMethod_mappingmethod_name -> rdf:type -> gnc:mappingMethod
gn:mappingMethod_mappingmethod_name -> rdfs:label -> MappingMethod(Name)
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX gnt: <http://genenetwork.org/term/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT * WHERE {
?s rdf:type gnc:mappingMethod .
?s rdfs:label "qtlreaper" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:mappingMethod_qtlreaper rdf:type gnc:mappingMethod .
gn:mappingMethod_qtlreaper rdfs:label "qtlreaper" .
```
## 'dump-avg-method'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT AvgMethod.Name, AvgMethod.Normalization FROM AvgMethod
```
The above query results to triples that have the form:
```text
gn:avgmethod_avgmethod_name -> rdf:type -> gnc:avgMethod
gn:avgmethod_avgmethod_name -> rdfs:label -> AvgMethod(Normalization)
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX gnt: <http://genenetwork.org/term/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT * WHERE {
?s rdf:type gnc:avgMethod .
?s rdfs:label "MAS5" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:avgmethod_mas5 rdf:type gnc:avgMethod .
gn:avgmethod_mas5 rdfs:label "MAS5" .
```
|