@jbrowse/plugin-rdf 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/LICENSE +201 -0
  2. package/dist/SPARQLAdapter/SPARQLAdapter.d.ts +23 -0
  3. package/dist/SPARQLAdapter/SPARQLAdapter.js +178 -0
  4. package/dist/SPARQLAdapter/SPARQLAdapter.js.map +1 -0
  5. package/dist/SPARQLAdapter/configSchema.d.ts +31 -0
  6. package/dist/SPARQLAdapter/configSchema.js +34 -0
  7. package/dist/SPARQLAdapter/configSchema.js.map +1 -0
  8. package/dist/SPARQLAdapter/index.d.ts +2 -0
  9. package/dist/SPARQLAdapter/index.js +11 -0
  10. package/dist/SPARQLAdapter/index.js.map +1 -0
  11. package/dist/index.d.ts +6 -0
  12. package/dist/index.js +39 -0
  13. package/dist/index.js.map +1 -0
  14. package/esm/SPARQLAdapter/SPARQLAdapter.d.ts +23 -0
  15. package/esm/SPARQLAdapter/SPARQLAdapter.js +172 -0
  16. package/esm/SPARQLAdapter/SPARQLAdapter.js.map +1 -0
  17. package/esm/SPARQLAdapter/configSchema.d.ts +31 -0
  18. package/esm/SPARQLAdapter/configSchema.js +32 -0
  19. package/esm/SPARQLAdapter/configSchema.js.map +1 -0
  20. package/esm/SPARQLAdapter/index.d.ts +2 -0
  21. package/esm/SPARQLAdapter/index.js +3 -0
  22. package/esm/SPARQLAdapter/index.js.map +1 -0
  23. package/esm/index.d.ts +6 -0
  24. package/esm/index.js +33 -0
  25. package/esm/index.js.map +1 -0
  26. package/package.json +56 -0
  27. package/src/SPARQLAdapter/README.md +115 -0
  28. package/src/SPARQLAdapter/SPARQLAdapter.test.ts +84 -0
  29. package/src/SPARQLAdapter/SPARQLAdapter.ts +257 -0
  30. package/src/SPARQLAdapter/__snapshots__/SPARQLAdapter.test.ts.snap +449 -0
  31. package/src/SPARQLAdapter/configSchema.ts +40 -0
  32. package/src/SPARQLAdapter/index.ts +2 -0
  33. package/src/SPARQLAdapter/test_data/emptyQueryResponse.json +30 -0
  34. package/src/SPARQLAdapter/test_data/queryResponse.json +3834 -0
  35. package/src/SPARQLAdapter/test_data/refNamesResponse.json +114 -0
  36. package/src/__snapshots__/index.test.ts.snap +3 -0
  37. package/src/index.test.ts +18 -0
  38. package/src/index.ts +46 -0
@@ -0,0 +1,449 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`adapter can fetch variants from volvox.vcf.gz 1`] = `
4
+ [
5
+ {
6
+ "description": "solute carrier family 45 member 1; Derived by automated computational analysis using gene prediction method: BestRefSeq,Gnomon.",
7
+ "end": 8344167,
8
+ "faldo_type": "http://biohackathon.org/resource/faldo#ForwardStrandPosition",
9
+ "name": "SLC45A1",
10
+ "refName": "chr1",
11
+ "start": 8318085,
12
+ "strand": 1,
13
+ "subfeatures": [
14
+ {
15
+ "class": "http://purl.obolibrary.org/obo/SO_0000316",
16
+ "description": "proton-associated sugar transporter A isoform X1",
17
+ "end": 8344013,
18
+ "name": "SLC45A1",
19
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
20
+ "refName": "chr1",
21
+ "start": 8318109,
22
+ "strand": 1,
23
+ "subfeatures": [
24
+ {
25
+ "end": 8318186,
26
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
27
+ "refName": "chr1",
28
+ "start": 8318109,
29
+ "strand": 1,
30
+ "type": "CDS",
31
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8318186:1:exon-urn:uuid:5f183854-6d7d-4481-a380-2f7589d95350",
32
+ },
33
+ {
34
+ "end": 8324726,
35
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
36
+ "refName": "chr1",
37
+ "start": 8324306,
38
+ "strand": 1,
39
+ "type": "CDS",
40
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8324306-8324726:1:exon-urn:uuid:7c2b06d1-c04d-495f-ae34-4a7d6514b0de",
41
+ },
42
+ {
43
+ "end": 8325390,
44
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
45
+ "refName": "chr1",
46
+ "start": 8325298,
47
+ "strand": 1,
48
+ "type": "CDS",
49
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325298-8325390:1:exon-urn:uuid:db09fb23-4a13-45e2-8efe-046836811046",
50
+ },
51
+ {
52
+ "end": 8326042,
53
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
54
+ "refName": "chr1",
55
+ "start": 8325818,
56
+ "strand": 1,
57
+ "type": "CDS",
58
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325818-8326042:1:exon-urn:uuid:fa0bfc05-f7b9-4780-99e3-fbdd9309d7ff",
59
+ },
60
+ {
61
+ "end": 8330936,
62
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
63
+ "refName": "chr1",
64
+ "start": 8330209,
65
+ "strand": 1,
66
+ "type": "CDS",
67
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8330209-8330936:1:exon-urn:uuid:39c5e70a-3f63-4fb2-beb3-391e69ac568f",
68
+ },
69
+ {
70
+ "end": 8335614,
71
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
72
+ "refName": "chr1",
73
+ "start": 8335437,
74
+ "strand": 1,
75
+ "type": "CDS",
76
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8335437-8335614:1:exon-urn:uuid:41f103d9-ed77-41de-b99c-4198bd33bf24",
77
+ },
78
+ {
79
+ "end": 8337992,
80
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
81
+ "refName": "chr1",
82
+ "start": 8337816,
83
+ "strand": 1,
84
+ "type": "CDS",
85
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8337816-8337992:1:exon-urn:uuid:63e3e11d-33a0-4000-97d6-fe7ad0aef31c",
86
+ },
87
+ {
88
+ "end": 8339698,
89
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
90
+ "refName": "chr1",
91
+ "start": 8339493,
92
+ "strand": 1,
93
+ "type": "CDS",
94
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8339493-8339698:1:exon-urn:uuid:013977d3-aa64-4369-a10b-00c4c96a364b",
95
+ },
96
+ {
97
+ "end": 8344013,
98
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
99
+ "refName": "chr1",
100
+ "start": 8343747,
101
+ "strand": 1,
102
+ "type": "CDS",
103
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8343747-8344013:1:exon-urn:uuid:8d04079b-e892-4a7d-bea0-d32f9f111a3a",
104
+ },
105
+ ],
106
+ "type": "mRNA",
107
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.703",
108
+ },
109
+ {
110
+ "class": "http://purl.obolibrary.org/obo/SO_0000316",
111
+ "description": "proton-associated sugar transporter A",
112
+ "end": 8344013,
113
+ "name": "SLC45A1",
114
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
115
+ "refName": "chr1",
116
+ "start": 8318109,
117
+ "strand": 1,
118
+ "subfeatures": [
119
+ {
120
+ "end": 8318186,
121
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
122
+ "refName": "chr1",
123
+ "start": 8318109,
124
+ "strand": 1,
125
+ "type": "CDS",
126
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8318186:1:exon-urn:uuid:ac0240bc-d0bd-42c5-80b1-ce74ced7d0d3",
127
+ },
128
+ {
129
+ "end": 8324726,
130
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
131
+ "refName": "chr1",
132
+ "start": 8324306,
133
+ "strand": 1,
134
+ "type": "CDS",
135
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8324306-8324726:1:exon-urn:uuid:e319de85-763c-41b9-886b-825c5802003b",
136
+ },
137
+ {
138
+ "end": 8325390,
139
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
140
+ "refName": "chr1",
141
+ "start": 8325298,
142
+ "strand": 1,
143
+ "type": "CDS",
144
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325298-8325390:1:exon-urn:uuid:8bc73805-a57b-4f97-989b-ec23381a3eef",
145
+ },
146
+ {
147
+ "end": 8326042,
148
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
149
+ "refName": "chr1",
150
+ "start": 8325818,
151
+ "strand": 1,
152
+ "type": "CDS",
153
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325818-8326042:1:exon-urn:uuid:ffd39d23-26ae-48a8-8a87-8a35b1659ded",
154
+ },
155
+ {
156
+ "end": 8330936,
157
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
158
+ "refName": "chr1",
159
+ "start": 8330209,
160
+ "strand": 1,
161
+ "type": "CDS",
162
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8330209-8330936:1:exon-urn:uuid:66ee77ce-d711-4dcb-ab0c-78f236f787c8",
163
+ },
164
+ {
165
+ "end": 8335590,
166
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
167
+ "refName": "chr1",
168
+ "start": 8335437,
169
+ "strand": 1,
170
+ "type": "CDS",
171
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8335437-8335590:1:exon-urn:uuid:7d3cd756-748b-48da-9684-b705b86fb523",
172
+ },
173
+ {
174
+ "end": 8337992,
175
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
176
+ "refName": "chr1",
177
+ "start": 8337816,
178
+ "strand": 1,
179
+ "type": "CDS",
180
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8337816-8337992:1:exon-urn:uuid:baad05a5-dfb9-47d8-a2aa-e1a42a12770c",
181
+ },
182
+ {
183
+ "end": 8339698,
184
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
185
+ "refName": "chr1",
186
+ "start": 8339493,
187
+ "strand": 1,
188
+ "type": "CDS",
189
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8339493-8339698:1:exon-urn:uuid:fb70eb86-e029-4900-9e99-75147688b037",
190
+ },
191
+ {
192
+ "end": 8344013,
193
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
194
+ "refName": "chr1",
195
+ "start": 8343747,
196
+ "strand": 1,
197
+ "type": "CDS",
198
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8343747-8344013:1:exon-urn:uuid:cf8be8e0-cea6-45a6-8d73-fe3603e53980",
199
+ },
200
+ ],
201
+ "type": "mRNA",
202
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.704",
203
+ },
204
+ {
205
+ "class": "http://purl.obolibrary.org/obo/SO_0000316",
206
+ "description": "proton-associated sugar transporter A isoform X2",
207
+ "end": 8344013,
208
+ "name": "SLC45A1",
209
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
210
+ "refName": "chr1",
211
+ "start": 8318109,
212
+ "strand": 1,
213
+ "subfeatures": [
214
+ {
215
+ "end": 8318186,
216
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
217
+ "refName": "chr1",
218
+ "start": 8318109,
219
+ "strand": 1,
220
+ "type": "CDS",
221
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8318186:1:exon-urn:uuid:8bf75796-5115-46fd-a7b7-bd12daea442b",
222
+ },
223
+ {
224
+ "end": 8324726,
225
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
226
+ "refName": "chr1",
227
+ "start": 8324306,
228
+ "strand": 1,
229
+ "type": "CDS",
230
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8324306-8324726:1:exon-urn:uuid:39fb38ac-4d54-40d8-890f-fd758e04a354",
231
+ },
232
+ {
233
+ "end": 8326042,
234
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
235
+ "refName": "chr1",
236
+ "start": 8325818,
237
+ "strand": 1,
238
+ "type": "CDS",
239
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325818-8326042:1:exon-urn:uuid:ef001640-da32-4380-b873-1c118c061098",
240
+ },
241
+ {
242
+ "end": 8330936,
243
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
244
+ "refName": "chr1",
245
+ "start": 8330209,
246
+ "strand": 1,
247
+ "type": "CDS",
248
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8330209-8330936:1:exon-urn:uuid:4e8926b2-6e26-49e4-9ad8-1dfa8ddbedbe",
249
+ },
250
+ {
251
+ "end": 8335614,
252
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
253
+ "refName": "chr1",
254
+ "start": 8335437,
255
+ "strand": 1,
256
+ "type": "CDS",
257
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8335437-8335614:1:exon-urn:uuid:201f46b2-7520-4142-b38f-22af9a5ef78e",
258
+ },
259
+ {
260
+ "end": 8337992,
261
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
262
+ "refName": "chr1",
263
+ "start": 8337816,
264
+ "strand": 1,
265
+ "type": "CDS",
266
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8337816-8337992:1:exon-urn:uuid:b2cd73a4-70ef-4304-af6a-aac90d361263",
267
+ },
268
+ {
269
+ "end": 8339698,
270
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
271
+ "refName": "chr1",
272
+ "start": 8339493,
273
+ "strand": 1,
274
+ "type": "CDS",
275
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8339493-8339698:1:exon-urn:uuid:effe65be-ae31-4907-9c4f-2760450947fa",
276
+ },
277
+ {
278
+ "end": 8344013,
279
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
280
+ "refName": "chr1",
281
+ "start": 8343747,
282
+ "strand": 1,
283
+ "type": "CDS",
284
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8343747-8344013:1:exon-urn:uuid:13868dc4-2041-4444-81ac-e8e1bbbca898",
285
+ },
286
+ ],
287
+ "type": "mRNA",
288
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.705",
289
+ },
290
+ {
291
+ "class": "http://purl.obolibrary.org/obo/SO_0000316",
292
+ "description": "proton-associated sugar transporter A isoform X3",
293
+ "end": 8344013,
294
+ "name": "SLC45A1",
295
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
296
+ "refName": "chr1",
297
+ "start": 8318109,
298
+ "strand": 1,
299
+ "subfeatures": [
300
+ {
301
+ "end": 8318186,
302
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
303
+ "refName": "chr1",
304
+ "start": 8318109,
305
+ "strand": 1,
306
+ "type": "CDS",
307
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8318186:1:exon-urn:uuid:0aa03467-9a14-4076-a4cd-a419d3bb212e",
308
+ },
309
+ {
310
+ "end": 8324726,
311
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
312
+ "refName": "chr1",
313
+ "start": 8324306,
314
+ "strand": 1,
315
+ "type": "CDS",
316
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8324306-8324726:1:exon-urn:uuid:80706a2c-dad3-4add-8edd-e55832cbabd6",
317
+ },
318
+ {
319
+ "end": 8326042,
320
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
321
+ "refName": "chr1",
322
+ "start": 8325818,
323
+ "strand": 1,
324
+ "type": "CDS",
325
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325818-8326042:1:exon-urn:uuid:aca48294-72a7-4d72-bea9-cc6d6bb49d7b",
326
+ },
327
+ {
328
+ "end": 8330936,
329
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
330
+ "refName": "chr1",
331
+ "start": 8330209,
332
+ "strand": 1,
333
+ "type": "CDS",
334
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8330209-8330936:1:exon-urn:uuid:279e0669-870b-4fe5-86a6-b838bb3ebaa1",
335
+ },
336
+ {
337
+ "end": 8335590,
338
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
339
+ "refName": "chr1",
340
+ "start": 8335437,
341
+ "strand": 1,
342
+ "type": "CDS",
343
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8335437-8335590:1:exon-urn:uuid:912a99dc-da26-4706-90ce-ca96eeb21c27",
344
+ },
345
+ {
346
+ "end": 8337992,
347
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
348
+ "refName": "chr1",
349
+ "start": 8337816,
350
+ "strand": 1,
351
+ "type": "CDS",
352
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8337816-8337992:1:exon-urn:uuid:3f7db5ba-57ef-4e05-a661-a93e1f434230",
353
+ },
354
+ {
355
+ "end": 8339698,
356
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
357
+ "refName": "chr1",
358
+ "start": 8339493,
359
+ "strand": 1,
360
+ "type": "CDS",
361
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8339493-8339698:1:exon-urn:uuid:a03af8c7-31f3-42d9-8101-d72d1b13d114",
362
+ },
363
+ {
364
+ "end": 8344013,
365
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
366
+ "refName": "chr1",
367
+ "start": 8343747,
368
+ "strand": 1,
369
+ "type": "CDS",
370
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8343747-8344013:1:exon-urn:uuid:b34637d9-77ed-4c06-a08b-03acb99a5ae4",
371
+ },
372
+ ],
373
+ "type": "mRNA",
374
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318109-8344013:1:CDS.706",
375
+ },
376
+ {
377
+ "class": "http://purl.obolibrary.org/obo/SO_0000316",
378
+ "description": "proton-associated sugar transporter A isoform X4",
379
+ "end": 8344013,
380
+ "name": "SLC45A1",
381
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
382
+ "refName": "chr1",
383
+ "start": 8325934,
384
+ "strand": 1,
385
+ "subfeatures": [
386
+ {
387
+ "end": 8326042,
388
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
389
+ "refName": "chr1",
390
+ "start": 8325934,
391
+ "strand": 1,
392
+ "type": "CDS",
393
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8326042:1:exon-urn:uuid:7626ebaf-dd9d-4f7b-8ca6-7e8bfcc7c5cf",
394
+ },
395
+ {
396
+ "end": 8330936,
397
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
398
+ "refName": "chr1",
399
+ "start": 8330209,
400
+ "strand": 1,
401
+ "type": "CDS",
402
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8330209-8330936:1:exon-urn:uuid:50112b56-90e8-432b-8075-e47920945781",
403
+ },
404
+ {
405
+ "end": 8335614,
406
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
407
+ "refName": "chr1",
408
+ "start": 8335437,
409
+ "strand": 1,
410
+ "type": "CDS",
411
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8335437-8335614:1:exon-urn:uuid:ca019537-cdb1-42f4-ad71-79d089b0af0c",
412
+ },
413
+ {
414
+ "end": 8337992,
415
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
416
+ "refName": "chr1",
417
+ "start": 8337816,
418
+ "strand": 1,
419
+ "type": "CDS",
420
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8337816-8337992:1:exon-urn:uuid:ca3a384c-0b5f-4e69-b89c-d34e179feba3",
421
+ },
422
+ {
423
+ "end": 8339698,
424
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
425
+ "refName": "chr1",
426
+ "start": 8339493,
427
+ "strand": 1,
428
+ "type": "CDS",
429
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8339493-8339698:1:exon-urn:uuid:81b25241-d953-41c7-a1c0-5303d8dc9618",
430
+ },
431
+ {
432
+ "end": 8344013,
433
+ "parentId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
434
+ "refName": "chr1",
435
+ "start": 8343747,
436
+ "strand": 1,
437
+ "type": "CDS",
438
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8343747-8344013:1:exon-urn:uuid:429b344f-c6bd-4a6f-8a35-8b5164bdf252",
439
+ },
440
+ ],
441
+ "type": "mRNA",
442
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8325934-8344013:1:CDS.707",
443
+ },
444
+ ],
445
+ "type": "gene",
446
+ "uniqueId": "http://identifiers.org/refseq/NC_000001.11#feature:8318085-8344167:1:gene.266",
447
+ },
448
+ ]
449
+ `;
@@ -0,0 +1,40 @@
1
+ import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
+
3
+ export default ConfigurationSchema(
4
+ 'SPARQLAdapter',
5
+ {
6
+ endpoint: {
7
+ type: 'fileLocation',
8
+ defaultValue: {
9
+ uri: 'https://somesite.com/sparql',
10
+ locationType: 'UriLocation',
11
+ },
12
+ description: 'URL of the SPARQL endpoint',
13
+ },
14
+ queryTemplate: {
15
+ type: 'text',
16
+ defaultValue: '',
17
+ description:
18
+ 'SPARQL query where {start} {end} and {refName} will get replaced for each call',
19
+ },
20
+ refNamesQueryTemplate: {
21
+ type: 'text',
22
+ defaultValue: '',
23
+ description:
24
+ 'SPARQL query that returns the possible refNames in a ?refName column',
25
+ },
26
+ refNames: {
27
+ type: 'stringArray',
28
+ defaultValue: [],
29
+ description:
30
+ 'Possible refNames used by the SPARQL endpoint (ignored if "refNamesQueryTemplate" is provided)',
31
+ },
32
+ additionalQueryParams: {
33
+ type: 'stringArray',
34
+ defaultValue: [],
35
+ description:
36
+ 'Additional parameters to add to the query, e.g. "format=JSON"',
37
+ },
38
+ },
39
+ { explicitlyTyped: true },
40
+ )
@@ -0,0 +1,2 @@
1
+ export { default as AdapterClass } from './SPARQLAdapter'
2
+ export { default as configSchema } from './configSchema'
@@ -0,0 +1,30 @@
1
+ {
2
+ "head": {
3
+ "vars": [
4
+ "uniqueId",
5
+ "type",
6
+ "start",
7
+ "end",
8
+ "sub_uniqueId",
9
+ "sub_type",
10
+ "sub_start",
11
+ "sub_end",
12
+ "sub_sub_uniqueId",
13
+ "sub_sub_type",
14
+ "sub_sub_start",
15
+ "sub_sub_end",
16
+ "faldo_type",
17
+ "strand",
18
+ "sub_strand",
19
+ "sub_sub_strand",
20
+ "name",
21
+ "description",
22
+ "sub_name",
23
+ "sub_description",
24
+ "sub_class"
25
+ ]
26
+ },
27
+ "results": {
28
+ "bindings": []
29
+ }
30
+ }