SpeakerQuery¶
-
class
polyglotdb.query.speaker.query.
SpeakerQuery
(corpus)[source]¶ Class for generating a Cypher query over speakers
Methods
__init__
(corpus)Initialize self. aggregate
(*args)Aggregate the results of the query by a grouping factor or overall. all
()cache
()clear_columns
()Remove any columns specified. columns
(*args)Add one or more additional columns to the results. count
()Returns the number of rows in the query. create_subset
(label)cypher
()Generates a Cypher statement based on the query. cypher_params
()delete
()Remove the results of a query from the graph. filter
(*args)Apply one or more filters to a query. generate_return
()Generates final statement from query object, calling whichever one of the other generate statements is specified in the query obj get
()group_by
(*args)Specify one or more fields for how aggregates should be grouped. limit
(limit)sets object limit to parameter limit offset
(number)optional_nodes
()order_by
(field[, descending])Specify how the results of the query should be ordered. preload
(*args)remove_subset
(label)required_nodes
()set_properties
(**kwargs)to_csv
(path)Same as all
, but the results of the query are output to the specified path as a CSV file.to_json
()