juji.func.data

clear-data-context

(clear-data-context rep)

Clear conversation context for data query

data-entries

(data-entries rep identifier)

Reply with the number of rows in the data table identified by the identifier

match-data-value

(match-data-value rep user-attr-name identifier column)

Test if the current user input matches the value of a column in the data table named by the identifier and the column is the name of the column.

If matched, this function will store the matched value as an user attribute given by the user-attr-name.

original-column

(original-column conn attr)

Get the original form of the column

original-value

(original-value conn attr v)

Get the original form of the value

query

(query rep)

Query data based on the current conversation context

run-query

(run-query rep query inputs)

Run datalog query on brand wide database

run-query-lemmatized

(run-query-lemmatized rep query inputs)

sample-data

(sample-data rep identifier limit)

Sample and show up to the limit number of rows of the data table identified by the identifier

update-data-context

(update-data-context rep context-map)

Update conversation context for data query according to context-map