de9097ba9962849dde661bbd9ebd38521573f781
[htsworkflow.git] / htsworkflow / templates / geo_fastqs.sparql
1 PREFIX libraryOntology: <http://jumpgate.caltech.edu/wiki/LibraryOntology#>
2 PREFIX submissionOntology: <http://jumpgate.caltech.edu/wiki/UcscSubmissionOntology#>
3 PREFIX ucscDaf: <http://jumpgate.caltech.edu/wiki/UcscDaf#>
4 PREFIX ncbiTaxon: <http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=>
5 PREFIX geoSoft: <http://www.ncbi.nlm.nih.gov/geo/info/soft2.html#>
6
7 select distinct ?lane ?filename, ?md5sum, ?file_type ?file_type_label ?flowcell_id ?read_length ?flowcell_type ?image_software ?image_version ?basecall_software ?basecall_version ?sequencer_model
8 WHERE {
9   <{{submission}}> submissionOntology:library ?library ;
10                    a submissionOntology:submission .
11
12   ?file ucscDaf:filename ?filename ;
13         ucscDaf:md5sum ?md5sum ;
14         libraryOntology:library ?library ;
15         a ?file_type .
16   ?file_type a <{{file_class}}> ;
17              geoSoft:fileTypeLabel ?file_type_label .
18
19   ?library libraryOntology:has_lane ?lane .
20   ?lane libraryOntology:flowcell ?flowcell .
21   ?flowcell libraryOntology:flowcell_id ?flowcell_id ;
22             libraryOntology:read_length ?read_length ;
23             libraryOntology:flowcell_type ?flowcell_type ;
24   OPTIONAL { ?flowcell libraryOntology:image_software ?image_software ;
25                        libraryOntology:image_version ?image_version . }
26   OPTIONAL {?flowcell  libraryOntology:basecall_software ?basecall_software ;
27                        libraryOntology:basecall_version ?basecall_version . }
28   OPTIONAL {?flowcell  libraryOntology:sequenced_by ?sequencer .
29              ?sequencer libraryOntology:sequencer_model ?sequencer_model . }
30 }
31