-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I would like support for passing multiple string values as a parameter to grlc.
Given SPARQL query like
#+ endpoint: https://sparql.uniprot.org/sparql
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
SELECT ?protein ?pdb_db
WHERE {
# --- Protein Selection ---
VALUES (?ac) { ("O15178") ("O15294")}
BIND (IRI(CONCAT("http://purl.uniprot.org/uniprot/",?ac)) AS ?protein)
?protein a up:Protein .
?protein rdfs:seeAlso ?pdb_db .
?pdb_db up:database <http://purl.uniprot.org/database/PDB> .
}To grlc-ify replace ("O15178") ("O15294") with a parameter like (?__uniprotAccessions_stringlist) with possible value ["O15178", "O15294"].
The openapi spec for the parameter would look like
{
"description": "A list of string values that will substitute ?__uniprotAccessions_stringlist in the original query",
"in": "query",
"name": "uniprotAccessions",
"required": false,
"type": "array",
"items": {
"type": "string"
}
}Nice to have if I can specify the minimum and/or maximum number of items in the list.
Metadata
Metadata
Assignees
Labels
No labels