grafter.rdf.preview

Tool support for rendering previews of grafter.tabular graph-fn templates with values from datasets.

->UnreadableForm

(->UnreadableForm form-string form-class)

Positional factory function for class grafter.rdf.preview.UnreadableForm.

map->UnreadableForm

(map->UnreadableForm m__5869__auto__)

Factory function for class grafter.rdf.preview.UnreadableForm, taking a map of keywords to field values.

preview-graph

(preview-graph dataset graphf row)(preview-graph dataset graphf row render-constants?)

Takes a dataset a function built via grafter.tabular/graph-fn and a row number, and returns an EDN datastructure representing the template (body) of the graph-fn function with column variables substituted for data.

Takes an optional final argument which can be :render-constants, if the user would also like to substitute symbols from within the graph-fn body with renderable constants found in referenced vars.

ToPrintable

protocol

members

->printable-form

(->printable-form o)

Converts object into a printable form by returning an UnreadableForm representation of it (or its constituent parts if it can’t be serialized.)

unreadable-form

(unreadable-form val)

FIXME: write docs