aboutsummaryrefslogtreecommitdiff
path: root/rdf-documentation/dump-species-metadata.md
blob: a35e1b1aaa6dd430df6e1f215e01248f2986fc70 (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
# Species Metadata
## 'dump-species'


## Generated Triples:

The following SQL query was executed:

```sql
SELECT Species.FullName, Species.SpeciesName, 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 -> gn:species 
gn:Species_fullname -> gn-term:name -> Species(SpeciesName) 
gn:Species_fullname -> gn-term:displayName -> Species(MenuName) 
gn:Species_fullname -> gn-term:binomialName -> Species(FullName) 
gn:Species_fullname -> gn-term:family -> Species(Family) 
gn:Species_fullname -> gn-term:organism -> taxon:Species(TaxonomyId) 
```
Here's an example query:

```sparql
PREFIX gn: <http://genenetwork.org/id/> 
PREFIX gn-term: <http://genenetwork.org/term/> 
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 ?s ?p ?o WHERE { 
    ?s rdf:type gn:species .
    ?s gn-term:name "Mouse" .
    ?s gn-term:displayName "Mouse (Mus musculus, mm10)" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:Mus_musculus rdf:type gn:species .
gn:Mus_musculus gn-term:name "Mouse" .
gn:Mus_musculus gn-term:displayName "Mouse (Mus musculus, mm10)" .
gn:Mus_musculus gn-term:binomialName "Mus musculus" .
gn:Mus_musculus gn-term:family "Vertebrates" .
gn:Mus_musculus gn-term:organism taxon:10090 .
```


## 'dump-strain'


## Generated Triples:

The following SQL query was executed:

```sql
SELECT CAST(CONVERT(BINARY CONVERT(Strain.Name USING latin1) USING utf8) AS VARCHAR(15000)) AS StrainName, Species.FullName, Strain.Name, Strain.Name2, Strain.Alias, Strain.Symbol FROM Strain LEFT JOIN Species ON Strain.SpeciesId = Species.SpeciesId
```

The above query results to triples that have the form:

```text
gn:Strainname -> rdf:type -> gn:strain 
gn:Strainname -> gn-term:strainOfSpecies -> gn:Species_fullname 
gn:Strainname -> gn-term:name -> StrainName 
gn:Strainname -> gn-term:name2 -> StrainName2 
gn:Strainname -> gn-term:alias -> StrainAlias 
gn:Strainname -> gn-term:symbol -> Strain(Symbol) 
```
Here's an example query:

```sparql
PREFIX gn: <http://genenetwork.org/id/> 
PREFIX gn-term: <http://genenetwork.org/term/> 
PREFIX rdf: <https://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 ?s ?p ?o WHERE { 
    ?s rdf:type gn:strain .
    ?s gn-term:strainOfSpecies gn:Mus_musculus .
    ?s gn-term:name "B6D2F1" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:B6d2f1 rdf:type gn:strain .
gn:B6d2f1 gn-term:strainOfSpecies gn:Mus_musculus .
gn:B6d2f1 gn-term:name "B6D2F1" .
gn:B6d2f1 gn-term:name2 "B6D2F1" .
```


## 'dump-mapping-method'


## Generated Triples:

The following SQL query was executed:

```sql
SELECT MappingMethod.Name FROM MappingMethod
```

The above query results to triples that have the form:

```text
gn:mappingMethod_mappingmethod_name -> rdf:type -> gn:mappingMethod 
```
Here's an example query:

```sparql
PREFIX gn: <http://genenetwork.org/id/> 
PREFIX gn-term: <http://genenetwork.org/term/> 
PREFIX rdf: <https://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 ?s ?p ?o WHERE { 
    ?s rdf:type gn:mappingMethod .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:mappingMethod_qtlreaper rdf:type gn:mappingMethod .
```


## '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 -> gn:avgMethod 
gn:avgmethod_avgmethod_name -> gn-term:normalization -> AvgMethod(Normalization) 
```
Here's an example query:

```sparql
PREFIX gn: <http://genenetwork.org/id/> 
PREFIX gn-term: <http://genenetwork.org/term/> 
PREFIX rdf: <https://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 ?s ?p ?o WHERE { 
    ?s rdf:type gn:avgMethod .
    ?s gn-term:normalization "MAS5" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:avgmethod_mas5 rdf:type gn:avgMethod .
gn:avgmethod_mas5 gn-term:normalization "MAS5" .
```