mark the example submission rule files as being raw, so the escapes dont get confused
[htsworkflow.git] / encode_submission / add-treatment-to-library.sparql
1 # Produce list of submissions associated with a cell/replicate
2 PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
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 PREFIX daf: <http://jumpgate.caltech.edu/wiki/UcscDaf#>
7 PREFIX ddf: <http://encodesubmit.ucsc.edu/pipeline/download_ddf#>
8
9 construct { ?library ddf:treatment ?treatment ;
10                      ddf:protocol ?pcr . }
11 WHERE {
12    ?status ucscSubmission:has_file ?file .
13    ?submission ucscSubmission:has_status ?status ;
14                ucscSubmission:library_urn ?library ;
15                ucscSubmission:name ?name .
16    ?file ddf:treatment ?treatment ;
17          ddf:protocol ?pcr .
18 }
19