SplitQuery
- class polyglotdb.query.annotations.query.SplitQuery(corpus, to_find, stop_check=None)[source]
Methods
__init__(corpus, to_find[, stop_check])aggregate(*args)Aggregate the results of the query by a grouping factor or overall.
all()returns all results from a query
base_query([filters])sets up base query
cache(*args)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()deletes the query
filter(*args)Apply one or more filters to a query.
filter_left_aligned(annotation_type)Shortcut function for aligning the queried annotations with another annotation type.
filter_not_left_aligned(annotation_type)Shortcut function for aligning the queried annotations with another annotation type.
filter_not_right_aligned(annotation_type)Shortcut function for aligning the queried annotations with another annotation type.
filter_right_aligned(annotation_type)Shortcut function for aligning the queried annotations with another annotation type.
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)preload_acoustics(*args)remove_subset(label)required_nodes()set_label(*args)sets the query type
set_pause()sets a pause in queries
set_properties(**kwargs)sets the query token
split_queries()splits a query into multiple queries
to_csv(path)Same as
all, but the results of the query are output to the specified path as a CSV file.to_json()