self.model.append(s)
self._add_lane_details(libNode)
+ self._add_flowcell_details()
def _add_lane_details(self, libNode):
"""Import lane details
raise e
+ def _add_flowcell_details(self):
+ template = loader.get_template('aws_flowcell.sparql')
+ results = self.execute_query(template, Context())
+
+ parser = RDF.Parser(name='rdfa')
+ for r in self.execute_query(template, Context()):
+ flowcell = r['flowcell']
+ try:
+ parser.parse_into_model(self.model, flowcell.uri)
+ except RDF.RedlandError as e:
+ LOGGER.error("Error accessing %s" % (str(flowcell)))
+ raise e
+
+
def find_best_match(self, filename):
"""Search through potential filename matching patterns
"""
--- /dev/null
+PREFIX htswlib: <http://jumpgate.caltech.edu/wiki/LibraryOntology#>
+
+select distinct ?flowcell
+WHERE {
+ ?lane htswlib:flowcell ?flowcell ;
+ a htswlib:IlluminaLane .
+}