Only pull web data when its missing from the rdf model.
[htsworkflow.git] / extra / ucsc_encode_submission / find-lib-by-cell.sparql
1 # Produce list of submissions associated with a cell/replicate
2
3 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
4 PREFIX encodeSubmit:<http://jumpgate.caltech.edu/wiki/UCSCSubmissionOntology#>
5 PREFIX libraryOntology:<http://jumpgate.caltech.edu/wiki/LibraryOntology#>
6
7 SELECT distinct ?liburn ?cell ?replicate ?subid
8 WHERE {
9     ?subid encodeSubmit:library_urn ?liburn ;
10            encodeSubmit:name ?name .
11     ?liburn libraryOntology:cell_line ?cell ;
12             libraryOntology:replicate ?replicate
13 }
14 ORDER BY ?cell ?replicate ?liburn