diff --git a/sparql/cell_by_location.rq b/sparql/cell_by_location.rq index 89081f4..04bf34f 100644 --- a/sparql/cell_by_location.rq +++ b/sparql/cell_by_location.rq @@ -1,19 +1,18 @@ -#+ summary: Find cells by location -#+ description: Enter an anatomical location, get back a list of cell type IRIs and labels +#+ summary: Find cells by type and location +#+ description: Input: anatomical location IRI (default added as example); optionally specify a cell type IRI. Returns a list of cell type IRIs and labels. #+ defaults: #+ - location: http://purl.obolibrary.org/obo/UBERON_0002113 +#+ - cell: http://purl.obolibrary.org/obo/CL_0000000 + PREFIX rdfs: PREFIX owl: PREFIX overlaps: -PREFIX cell: SELECT DISTINCT ?cell_iri (STR(?qlabel) as ?cell_label) WHERE { - ?cell_iri overlaps: ?_location_iri . - ?cell_iri rdfs:subClassOf cell: . + ?_cell_iri overlaps: ?_location_iri . + ?cell_iri rdfs:subClassOf ?_cell_iri: . ?cell_iri rdfs:label ?qlabel . } - -