From 08b36e3c6230f10ab6a3d9b8deffda49fcd269a2 Mon Sep 17 00:00:00 2001 From: David Osumi-Sutherland Date: Sat, 5 Feb 2022 13:20:38 +0000 Subject: [PATCH] Update cell_by_location.rq Haven't decided whether I like this version --- sparql/cell_by_location.rq | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 . } - -