I found this version more useful for trying to
authorDiane Trout <diane@caltech.edu>
Sat, 12 May 2012 00:49:36 +0000 (17:49 -0700)
committerDiane Trout <diane@caltech.edu>
Sat, 12 May 2012 00:49:36 +0000 (17:49 -0700)
answer Flo's questions about what we had submitted.

encode_submission/find-lib-by-cell.sparql

index c4585c5bd4ce6cd7d038a85c64c993b2fee94934..eac66c14e8347630dd0050e16e4c6fbe6450f47d 100644 (file)
@@ -6,12 +6,15 @@ PREFIX libraryOntology:<http://jumpgate.caltech.edu/wiki/LibraryOntology#>
 
 SELECT distinct ?liburn ?cell ?replicate ?subid ?name ?submission_date
 WHERE {
-    ?subid ucscSubmission:name ?name .
-    OPTIONAL { ?subid ucscSubmission:library_urn ?liburn ;
-                       libraryOntology:date ?submission_date .
-               ?liburn libraryOntology:cell_line ?cell ;
-                       libraryOntology:replicate ?replicate . }
+    ?subid ucscSubmission:name ?name ;
+           ucscSubmission:library_urn ?liburn ;
+           libraryOntology:date ?submission_date.
+    ?liburn libraryOntology:cell_line ?cell ;
+            libraryOntology:replicate ?replicate ;
+            libraryOntology:species ?species .
+    OPTIONAL { ?liburn libraryOntology:treatement ?treatment . }
+    FILTER(regex(?species, "Homo sapiens", "i"))
     #filter(?submission_date > "2011-04-01T00:00:00Z"^^xsd:dateTime)
     #filter(!bound(?liburn))
 }
-ORDER BY ?submission_date ?cell ?replicate ?liburn
+ORDER BY  ?liburn ?submission_date
\ No newline at end of file