Skip to content

Commit

Permalink
Update simple_closure.rq
Browse files Browse the repository at this point in the history
Hot fix for simple closure query
  • Loading branch information
dosumis authored Mar 20, 2024
1 parent 36a3e88 commit 59a10eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sparql/simple_closure.rq
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#+ description: Enter a single ontology term iri, get back all parts and subclasses. Default (nephron tubule) added for demo purposes

#+ defaults:
#+ - input_term: http://purl.obolibrary.org/obo/UBERON_0001231 # nephron tubule
#+ - inputTerm: http://purl.obolibrary.org/obo/UBERON_0001231 # nephron tubule

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
Expand All @@ -14,11 +14,11 @@ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?subterm (STR(?subterm_label_obj) as ?subterm_label)
WHERE {
{
?subterm part_of: ?_input_term_iri .
?subterm part_of: ?_inputTerm_iri .
}
UNION
{
?subterm rdfs:subClassOf ?_input_term_iri .
?subterm rdfs:subClassOf ?_inputTerm_iri .
}
?subterm rdfs:label ?subterm_label_obj .
}
Expand Down

0 comments on commit 59a10eb

Please sign in to comment.