{{!
@param IRI exercise
}}

{{> sparql/prefixes.mustache }}

SELECT (REPLACE(STR(<{{exercise}}>), "^.*\\/([^/]+)$", "$1") AS ?id)
       ?name
       (REPLACE(?_description, "^\\s+|\\s+$", "") AS ?description)
       ?query
WHERE {
  <{{exercise}}> a sp:Query ;
    rdfs:label ?name ;
    rdfs:comment ?_description ;
    sp:text ?query .
}

{{!
@param IRI exercise
}}

{{> sparql/prefixes.mustache }}

SELECT (REPLACE(STR(<{{exercise}}>), "^.*\\/([^/]+)$", "$1") AS ?id)
       ?name
       (REPLACE(?_description, "^\\s+|\\s+$", "") AS ?description)
       (REPLACE(?_query, "^\\s+|\\s+$", "") AS ?query)
WHERE {
  <{{exercise}}> a sp:Query ;
    rdfs:label ?name ;
    rdfs:comment ?_description ;
    sp:text ?_query .
}

Trim trailing whitespace from canonical queries
Trim trailing whitespace from canonical queries
