Fix namespace issues in encode_find after the conversion
[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 ucscSubmission:<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 ucscSubmission:library_urn ?liburn ;
10            ucscSubmission:name ?name .
11     ?liburn libraryOntology:cell_line ?cell ;
12             libraryOntology:replicate ?replicate .
13 }
14 ORDER BY ?cell ?replicate ?liburn