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
|
# Species Metadata
## 'classification-scheme-species'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT Species.Fullname FROM Species
```
The above query results to triples that have the form:
```text
gnc:Species -> skos:member -> gn:Species_fullname
```
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 xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
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 skos:member gn:Mus_musculus .
?s ?p ?o .
}
```
Expected Result:
```rdf
gnc:Species skos:member gn:Mus_musculus .
```
## 'classification-scheme-set'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT InbredSet.Name AS InbredSetName FROM InbredSet
```
The above query results to triples that have the form:
```text
gnc:Set -> skos:member -> gn:setInbredset_inbredsetname
```
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 xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
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 skos:member gn:setBxd .
?s ?p ?o .
}
```
Expected Result:
```rdf
gnc:Set skos:member gn:setBxd .
```
## 'species'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT Species.Fullname, Species.Fullname, Species.MenuName, Species.SpeciesName, Species.Name, Species.Family, Species.TaxonomyId FROM Species
```
The above query results to triples that have the form:
```text
gn:Species_fullname -> skos:inScheme -> gnc:ResourceClassificationScheme
gn:Species_fullname -> rdfs:label -> Species(Fullname)
gn:Species_fullname -> skos:prefLabel -> Species(MenuName)
gn:Species_fullname -> skos:altLabel -> Species(SpeciesName)
gn:Species_fullname -> gnt:shortName -> Species(Name)
gn:Species_fullname -> gnt:family -> Species(Family)
gn:Species_fullname -> skos:notation -> 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 xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
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 skos:inScheme gnc:ResourceClassificationScheme .
?s rdfs:label "Mus musculus" .
?s skos:prefLabel "Mouse (Mus musculus, mm10)" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:Mus_musculus skos:inScheme gnc:ResourceClassificationScheme .
gn:Mus_musculus rdfs:label "Mus musculus" .
gn:Mus_musculus skos:prefLabel "Mouse (Mus musculus, mm10)" .
gn:Mus_musculus skos:altLabel "Mouse" .
gn:Mus_musculus gnt:shortName "mouse" .
gn:Mus_musculus gnt:family "Vertebrates" .
gn:Mus_musculus skos:notation taxon:10090 .
```
## 'inbred-set'
## Generated Triples:
The following SQL query was executed:
```sql
SELECT InbredSet.Name AS InbredSetName, InbredSet.FullName, InbredSet.Name AS InbredSetName, InbredSet.GeneticType, InbredSet.Family, MappingMethod.Name, InbredSet.InbredSetCode, Species.Fullname 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_inbredsetname -> skos:inScheme -> gnc:ResourceClassificationScheme
gn:setInbredset_inbredsetname -> rdfs:label -> InbredSet(FullName)
gn:setInbredset_inbredsetname -> skos:prefLabel -> InbredSet(InbredSetName)
gn:setInbredset_inbredsetname -> gnt:geneticType -> InbredSet(GeneticType)
gn:setInbredset_inbredsetname -> gnt:family -> InbredSet(Family)
gn:setInbredset_inbredsetname -> gnt:mappingMethod -> MappingMethod(Name)
gn:setInbredset_inbredsetname -> gnt:code -> InbredSet(InbredSetCode)
gn:setInbredset_inbredsetname -> xkos:generalizes -> gn:Species_fullname
```
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 xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
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 skos:inScheme gnc:ResourceClassificationScheme .
?s rdfs:label "BXD Family" .
?s skos:prefLabel "BXD" .
?s ?p ?o .
}
```
Expected Result:
```rdf
gn:setBxd skos:inScheme gnc:ResourceClassificationScheme .
gn:setBxd rdfs:label "BXD Family" .
gn:setBxd skos:prefLabel "BXD" .
gn:setBxd gnt:geneticType "riset" .
gn:setBxd gnt:family "Reference Populations (replicate average, SE, N)" .
gn:setBxd gnt:mappingMethod "qtlreaper" .
gn:setBxd gnt:code "BXD" .
gn:setBxd xkos:generalizes gn:Mus_musculus .
```
|