-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuckets.txt
75 lines (64 loc) · 2.09 KB
/
buckets.txt
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
q=<<-STR
select ?s where {
?s faldo:location ?location .
?s faldo:reference [ dc:identifer "1" ] .
?location faldo:begin [ position ?begin ] .
?location faldo:end [ position ?end ] .
FILTER(?begin >= 100) .
FILTER(?end <= 200) .
}
STR
select ?s
where {?s faldo:location ?location .
?s faldo:reference [ dc:identifer \"1\" ] .
?location faldo:begin [ position ?begin ] .
?location faldo:end [ position ?end ] .
?begin value_get 100 .
?end value_let 200 .
}
x=<<-STR
PREFIX foaf: <>
SELECT ?name
WHERE {
[foaf:name ?name]
}
STR
x=<<-STR
@prefix ensembl: <http://rdf.ebi.ac.uk/resource/ensembl/>
@prefix faldo: <http://biohackathon.org/resource/faldo#>
@prefix taxon: <http://identifiers.org/taxonomy/>
@prefix skos: <http://www.w3.org/2004/02/skos/core#>
@prefix ensemblvariation: <http://rdf.ebi.ac.uk/terms/ensemblvariation/>
@prefix dc: <http://purl.org/dc/terms/>
@prefix exon: <http://rdf.ebi.ac.uk/resource/ensembl.exon/>
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@prefix transcript: <http://rdf.ebi.ac.uk/resource/ensembl.transcript/>
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix identifiers: <http://identifiers.org/>
@prefix obo: <http://purl.obolibrary.org/obo/>
@prefix sio: <http://semanticscience.org/resource/>
@prefix term: <http://rdf.ebi.ac.uk/terms/ensembl/>
@prefix protein: <http://rdf.ebi.ac.uk/resource/ensembl.protein/>
select ?s where {
?s <faldo:location> ?location .
?s <faldo:reference> [ <dc:identifer> "Y" ] .
?location <faldo:begin> [ <faldo:position> ?begin ] .
?location <faldo:end> [ <faldo:position> ?end ] .
?begin <filter_by> 2749180 .
?end <filter_by> 2755180 .
}
STR
y=<<-STR
prefix faldo: <http://biohackathon.org/resource/faldo#>
prefix dc: <http://purl.org/dc/terms/>
prefix protein: <http://rdf.ebi.ac.uk/resource/ensembl.protein/>
select ?s where {
?s faldo:location ?location .
?s faldo:reference [ dc:identifer "Y" ] .
?location faldo:begin [ faldo:position ?begin ] .
?location faldo:end [ faldo:position ?end ] .
FILTER(?begin >= 2749180)
FILTER(?end <= 2755180)
}
STR
%input(type='submit' value='Query!')