rdfNS['type'],
submissionOntology['submission']))
self.model.add_statement(RDF.Statement(submissionNode,
- submissionOntology['library'],
+ libraryOntology['library'],
libNode))
LOGGER.debug("Adding statements to {0}".format(str(submissionView)))
select distinct ?name ?cell ?antibody ?sex ?control ?strain ?controlId ?library_id ?treatment ?protocol ?readType ?insertLength ?replicate, ?mapAlgorithm ?species_name ?taxon_id ?extractMolecule ?growthProtocol ?extractProtocol ?dataProtocol ?experiment_type ?library_selection ?library_source
WHERE {
- <{{submission}}> a submissionOntology:submission .
+ <{{submission}}> a submissionOntology:submission ;
+ submissionOntology:library ?library ;
+ submissionOntology:name ?name .
OPTIONAL { <{{submission}}> ucscDaf:control ?control }
OPTIONAL { <{{submission}}> ucscDaf:controlId ?controlId }
OPTIONAL { ?library libraryOntology:antibody ?antibody }
OPTIONAL { ?library libraryOntology:cell_line ?cell .
- ?cell_line cells:cell ?cell ;
- cells:documents ?growthProtocol . }
+ OPTIONAL { ?cell_line cells:cell ?cell ;
+ cells:documents ?growthProtocol . }}
OPTIONAL { ?library ucscDaf:sex ?sex }
OPTIONAL { ?library libraryOntology:library_id ?library_id }
OPTIONAL { ?library libraryOntology:replicate ?replicate }
- OPTIONAL { ?library libraryOntology:species ?species_name }
+ OPTIONAL { ?library libraryOntology:species ?species_name .
+ ?species libraryOntology:species ?species_name ;
+ libraryOntology:taxon_id ?taxon_id . }
OPTIONAL { ?library libraryOntology:condition_term ?treatment }
OPTIONAL { ?library libraryOntology:experiment_type ?experiment_type }
OPTIONAL { ?library libraryOntology:librarySelection ?library_selection }
OPTIONAL { ?library libraryOntology:insert_size ?insertLength }
OPTIONAL { ?library ucscDaf:mapAlgorithm ?mapAlgorithm }
- <{{submission}}> submissionOntology:library ?library ;
- submissionOntology:name ?name .
?species libraryOntology:species ?species_name ;
libraryOntology:taxon_id ?taxon_id .