aboutsummaryrefslogtreecommitdiff
path: root/rdf-documentation/species-metadata.md
blob: 79e897c8a4e65c4a4d2a318a34adaa958d74502f (plain)
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
374
375
# Species Metadata
## 'inbred-set'

## Generated Triples:

The following SQL query was executed:

```sql
SELECT InbredSet.Name, InbredSet.FullName, InbredSet.Name, 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:setInbredset_name -> rdf:type -> gnc:set 
gn:setInbredset_name -> rdfs:label -> InbredSet(FullName) 
gn:setInbredset_name -> skos:altLabel -> InbredSet(Name) 
gn:setInbredset_name -> gnt:geneticType -> InbredSet(GeneticType) 
gn:setInbredset_name -> gnt:family -> InbredSet(Family) 
gn:setInbredset_name -> gnt:mappingMethod -> MappingMethod(Name) 
gn:setInbredset_name -> gnt:code -> InbredSet(InbredSetCode) 
gn:setInbredset_name -> gnt:belongsToSpecies -> gn:Species_fullname 
gn:setInbredset_name -> gnt:genotype -> genotypeP 
gn:setInbredset_name -> gnt:phenotype -> phenotypeP 
gn:setInbredset_name -> gnt:hasTissue -> 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:set .
    ?s rdfs:label "BXD Family" .
    ?s skos:altLabel "BXD" .
    ?s gnt:geneticType "riset" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:setBxd rdf:type gnc:set .
gn:setBxd rdfs:label "BXD Family" .
gn:setBxd skos:altLabel "BXD" .
gn:setBxd gnt:geneticType "riset" .
gn:setBxd gnt:family "Reference Populations (replicate average, SE, N)" .
gn:setBxd gnt:mappingMethod "BXD" .
gn:setBxd gnt:code "BXD" .
gn:setBxd gnt:belongsToSpecies gn:Mus_musculus .
gn:setBxd gnt:genotype "Traits and Cofactors" .
gn:setBxd gnt:phenotype "DNA Markers and SNPs" .
gn:setBxd gnt:hasTissue gn:tissue_a1c .
gn:setBxd gnt:hasTissue gn:tissue_acc .
gn:setBxd gnt:hasTissue gn:tissue_adr .
gn:setBxd gnt:hasTissue gn:tissue_amg .
gn:setBxd gnt:hasTissue gn:tissue_bebv .
gn:setBxd gnt:hasTissue gn:tissue_bla .
gn:setBxd gnt:hasTissue gn:tissue_brmet .
gn:setBxd gnt:hasTissue gn:tissue_brmicrorna .
gn:setBxd gnt:hasTissue gn:tissue_brn .
gn:setBxd gnt:hasTissue gn:tissue_cart .
gn:setBxd gnt:hasTissue gn:tissue_cb .
gn:setBxd gnt:hasTissue gn:tissue_cbc .
gn:setBxd gnt:hasTissue gn:tissue_ctx .
gn:setBxd gnt:hasTissue gn:tissue_dfc .
gn:setBxd gnt:hasTissue gn:tissue_drg .
gn:setBxd gnt:hasTissue gn:tissue_ec .
gn:setBxd gnt:hasTissue gn:tissue_emb .
gn:setBxd gnt:hasTissue gn:tissue_eye .
gn:setBxd gnt:hasTissue gn:tissue_fat .
gn:setBxd gnt:hasTissue gn:tissue_fecmet .
gn:setBxd gnt:hasTissue gn:tissue_femur .
gn:setBxd gnt:hasTissue gn:tissue_gtex_aor .
gn:setBxd gnt:hasTissue gn:tissue_gtex_atr .
gn:setBxd gnt:hasTissue gn:tissue_gtex_blo .
gn:setBxd gnt:hasTissue gn:tissue_gtex_bonm .
gn:setBxd gnt:hasTissue gn:tissue_gtex_bre .
gn:setBxd gnt:hasTissue gn:tissue_gtex_cau .
gn:setBxd gnt:hasTissue gn:tissue_gtex_cer .
gn:setBxd gnt:hasTissue gn:tissue_gtex_cerv .
gn:setBxd gnt:hasTissue gn:tissue_gtex_cml .
gn:setBxd gnt:hasTissue gn:tissue_gtex_col .
gn:setBxd gnt:hasTissue gn:tissue_gtex_colsig .
gn:setBxd gnt:hasTissue gn:tissue_gtex_cor .
gn:setBxd gnt:hasTissue gn:tissue_gtex_ebv .
gn:setBxd gnt:hasTissue gn:tissue_gtex_eso .
gn:setBxd gnt:hasTissue gn:tissue_gtex_esogas .
gn:setBxd gnt:hasTissue gn:tissue_gtex_fal .
gn:setBxd gnt:hasTissue gn:tissue_gtex_fro .
gn:setBxd gnt:hasTissue gn:tissue_gtex_muc .
gn:setBxd gnt:hasTissue gn:tissue_gtex_ner .
gn:setBxd gnt:hasTissue gn:tissue_gtex_pan .
gn:setBxd gnt:hasTissue gn:tissue_gtex_put .
gn:setBxd gnt:hasTissue gn:tissue_gtex_sintter .
gn:setBxd gnt:hasTissue gn:tissue_gtex_skinex .
gn:setBxd gnt:hasTissue gn:tissue_gtex_skisex .
gn:setBxd gnt:hasTissue gn:tissue_gtex_sn .
gn:setBxd gnt:hasTissue gn:tissue_gtex_sto .
gn:setBxd gnt:hasTissue gn:tissue_gtex_sub .
gn:setBxd gnt:hasTissue gn:tissue_gtex_tf .
gn:setBxd gnt:hasTissue gn:tissue_gtex_thy .
gn:setBxd gnt:hasTissue gn:tissue_gtex_tib .
gn:setBxd gnt:hasTissue gn:tissue_gtex_vag .
gn:setBxd gnt:hasTissue gn:tissue_gtex_ven .
gn:setBxd gnt:hasTissue gn:tissue_gtex_vis .
gn:setBxd gnt:hasTissue gn:tissue_gtex_who .
gn:setBxd gnt:hasTissue gn:tissue_gut .
gn:setBxd gnt:hasTissue gn:tissue_hea .
gn:setBxd gnt:hasTissue gn:tissue_hip .
gn:setBxd gnt:hasTissue gn:tissue_hippreccel .
gn:setBxd gnt:hasTissue gn:tissue_hipprot .
gn:setBxd gnt:hasTissue gn:tissue_hip_mirna .
gn:setBxd gnt:hasTissue gn:tissue_hsc .
gn:setBxd gnt:hasTissue gn:tissue_hyp .
gn:setBxd gnt:hasTissue gn:tissue_ifra_ctx .
gn:setBxd gnt:hasTissue gn:tissue_ipc .
gn:setBxd gnt:hasTissue gn:tissue_isl .
gn:setBxd gnt:hasTissue gn:tissue_itc .
gn:setBxd gnt:hasTissue gn:tissue_kid .
gn:setBxd gnt:hasTissue gn:tissue_lathab .
gn:setBxd gnt:hasTissue gn:tissue_lcm_brreg .
gn:setBxd gnt:hasTissue gn:tissue_leaf .
gn:setBxd gnt:hasTissue gn:tissue_liv .
gn:setBxd gnt:hasTissue gn:tissue_livdnam .
gn:setBxd gnt:hasTissue gn:tissue_livmet .
gn:setBxd gnt:hasTissue gn:tissue_livpro .
gn:setBxd gnt:hasTissue gn:tissue_lung .
gn:setBxd gnt:hasTissue gn:tissue_m1c .
gn:setBxd gnt:hasTissue gn:tissue_mam .
gn:setBxd gnt:hasTissue gn:tissue_mamtum .
gn:setBxd gnt:hasTissue gn:tissue_mbr .
gn:setBxd gnt:hasTissue gn:tissue_md .
gn:setBxd gnt:hasTissue gn:tissue_methyl .
gn:setBxd gnt:hasTissue gn:tissue_mfc .
gn:setBxd gnt:hasTissue gn:tissue_musmet .
gn:setBxd gnt:hasTissue gn:tissue_nac .
gn:setBxd gnt:hasTissue gn:tissue_nbcb .
gn:setBxd gnt:hasTissue gn:tissue_neutrophil .
gn:setBxd gnt:hasTissue gn:tissue_ocl .
gn:setBxd gnt:hasTissue gn:tissue_ofc .
gn:setBxd gnt:hasTissue gn:tissue_of_ctx .
gn:setBxd gnt:hasTissue gn:tissue_ova .
gn:setBxd gnt:hasTissue gn:tissue_pcg .
gn:setBxd gnt:hasTissue gn:tissue_pfc .
gn:setBxd gnt:hasTissue gn:tissue_pg .
gn:setBxd gnt:hasTissue gn:tissue_pln .
gn:setBxd gnt:hasTissue gn:tissue_pl_ctx .
gn:setBxd gnt:hasTissue gn:tissue_pons .
gn:setBxd gnt:hasTissue gn:tissue_pro .
gn:setBxd gnt:hasTissue gn:tissue_ret .
gn:setBxd gnt:hasTissue gn:tissue_ret_mirna .
gn:setBxd gnt:hasTissue gn:tissue_ret_sc-rna-s .
gn:setBxd gnt:hasTissue gn:tissue_s1c .
gn:setBxd gnt:hasTissue gn:tissue_sal .
gn:setBxd gnt:hasTissue gn:tissue_sg .
gn:setBxd gnt:hasTissue gn:tissue_skm .
gn:setBxd gnt:hasTissue gn:tissue_spi .
gn:setBxd gnt:hasTissue gn:tissue_spl .
gn:setBxd gnt:hasTissue gn:tissue_stc .
gn:setBxd gnt:hasTissue gn:tissue_str .
gn:setBxd gnt:hasTissue gn:tissue_tc .
gn:setBxd gnt:hasTissue gn:tissue_tes .
gn:setBxd gnt:hasTissue gn:tissue_tes_dna_met .
gn:setBxd gnt:hasTissue gn:tissue_thelp .
gn:setBxd gnt:hasTissue gn:tissue_thy .
gn:setBxd gnt:hasTissue gn:tissue_treg .
gn:setBxd gnt:hasTissue gn:tissue_ute .
gn:setBxd gnt:hasTissue gn:tissue_v1 .
gn:setBxd gnt:hasTissue gn:tissue_vfc .
gn:setBxd gnt:hasTissue gn:tissue_vta .
gn:setBxd gnt:hasTissue gn:tissue_wb .
gn:setBxd gnt:hasTissue gn:tissue_wbc .
gn:setBxd gnt:hasTissue gn:tissue_wbpr .
gn:setBxd gnt:hasTissue gn:tissue_wfat .
gn:setBxd gnt:hasTissue gn:tissue_wfat_pro .
```


## '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 .
```


## '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:belongsToSpecies -> 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:belongsToSpecies gn:Mus_musculus .
    ?s rdfs:label "B6D2F1" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:B6d2f1 rdf:type gnc:strain .
gn:B6d2f1 gnt:belongsToSpecies gn:Mus_musculus .
gn:B6d2f1 rdfs:label "B6D2F1" .
```


## '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" .
```


## '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" .
```