aa7e4380e1b6110fcdcf3d52e279cea8ef28f994
[htsworkflow.git] / htsworkflow / templates / geo_run_details.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 PREFIX cells: <http://encodewiki.ucsc.edu/EncodeDCC/index.php/Cell_lines#>
7
8 # right now we're just grabbing the sequencer model
9 # it might make sense to report each of the flowcell/image software.
10 #select distinct ?flowcell ?image_software ?image_version ?basecall_software ?basecall_version ?sequencer_model
11 select distinct ?sequencer_model
12 where {
13   <{{submission}}> submissionOntology:library ?library ;
14                    a submissionOntology:submission .
15
16   ?library libraryOntology:library_id ?library_id ;
17            libraryOntology:has_lane ?lane ;
18            a libraryOntology:library .
19   OPTIONAL { ?flowcell libraryOntology:has_lane ?lane .
20              ?flowcell libraryOntology:image_software ?image_software ;
21                        libraryOntology:image_version ?image_version ;
22                        libraryOntology:basecall_software ?basecall_software ;
23                        libraryOntology:basecall_version ?basecall_version ;
24                        libraryOntology:sequenced_by ?sequencer .
25              ?sequencer libraryOntology:sequencer_model ?sequencer_model
26   }
27 }