Class Attributes


  • public class Attributes
    extends APIRequestHandler
    /api/attributes : Exports selected attributes for specified transcripts to CSV.

    The request method can be GET or POST

    Parameters:
    id - One or more graph IDs.
    query - AGQL expression to identify the graph IDs, if no id parameter is supplied.
    layer - One or more layer IDs, representing transcript attribute layers, or "transcript", "epsiode", or "corpus" .
    name - Optional name of the file.
    csvFieldDelimiter - Optional delimiter for CSV file (comma is used by default).

    Output: A CSV file with a column for each attribute, and a row for each transcript.

    Author:
    Robert Fromont
    • Constructor Detail

      • Attributes

        public Attributes()
        Constructor
    • Method Detail

      • get

        public void get​(RequestParameters parameters,
                        OutputStream out,
                        Consumer<String> fileName,
                        Consumer<Integer> httpStatus)
        The GET method for the servlet.
        Parameters:
        parameters - Request parameter map.
        out - Response body stream.
        fileName - Receives the filename for specification in the response headers.
        httpStatus - Receives the response status code, in case or error.