Zotero tags query
This script will query the Zotero library to produce tables or graphs identifying the number of items associated with specific tags.
X axis tags
(required)
Provide a list of tags to include in the results, one per line.
Y axis tags
(optional)
Provide a list of tags to include in the results, one per line. If both
x
and
y
axes are specified, the query results will include the number of items matching the intersection of each
(x,y)
pair.
Filter
(optional)
Provide a list of tags to to filter the results, one per line. These tags will not be included explicitly in the resulting dataset, but only items that match ALL the tags in this list will be included in the results. Use a hyphen prefix for tags to be excluded, e.g.,
-ignore
to prevent items with the tag
ignore
from being listed in the results.
Output format
(required)
json
table
graph
Graph options
Image type
png
svg
pdf
SVG images (default) can be resized without loss of quality, but may not display properly in some applications.
Graph type
Horizontal bar
Vertical bar
Use horizontal bar graphs if the labels are longer.
Values type
Raw values
Represent values in
(x,y)
unions as raw numbers (default).
Percent of category
Represent values in
(x,y)
unions as a percentage of the total number of items in the library matching tag
x
. The total is adjusted to include only items matching the filter criteria given above.
Percent of matches
Represent values in
(x,y)
unions as a percentage of the total number of items in current result set. This will result in stacked bar graphs that add up to 100%.
Sort
Sort data according to the
y
axis. (EXPERIMENTAL: Generally leave checked.)
Subgraphs
If both
x
and
y
are arrays, generate a series of graphs, one for each value in
x
.
Label bars with data
Print source values on each bar in a bar graph. Currently only works for horizontal bar graphs.
Transpose
Transpose
x
and
y
axes in the resulting table or graph.
Stack
Present graph results in stacked format.
Square
Create a square graph.