Filtering records with select
:
Publica supports filtering of records.
The syntax of select
expression is as follows:
SELECT_EXPR := KEY_EXPR [ AND SELECT_EXPR ]
KEY_EXPR := KEY "=" VALUE_EXPR
VALUE_EXPR := VALUE [ OR VALUE_EXPR ]
AND := ","
OR := ";"
KEY := "urid" | "author" | "year" | "keyword" | "tag" | ... /*ETCETRA*/
VALUE := /*A STRING CONSISTING OF VALID LETTERS IN URL*/
Note that no unnecessary whitespace is allowed in expression.
Care of different locations between the logical AND and logical OR.
For example, the following expression is ungrammatical:
?select=author=Shigeto Kobayashi,Takashi Hashimoto
It is because the next term of the AND ,
must be
KEY
but Takashi Hashimoto
is not
the case.
The following one is correct:
?select=author=Shigeto Kobayashi,author=Takashi Hashimoto
See examples above.