Skip to content

Codebook enhancements

timrdf edited this page Apr 5, 2011 · 17 revisions

Codebook enhancements are specified by conversion:interpret, see that for an introduction and discussion.

See also conversion:Enhancement and Enhancement parameters.

The rest of this page discusses details not necessary for normal use.

Java implementation

edu.rpi.tw.data.csv.querylets.column.CodebookQuerylet is used to obtain any codes that should be applied according to the input parameters (it returns a hashmap of java:String to sesame:Value). When processing bindings, the CodebookQuerylet prints something similar to stderr (using the example at Enhancing a CSV that describes another CSV's headers):

CodebookQuerylet(1) .ID No.. -> ."id_no".

edu.rpi.tw.data.csv.impl.ValueHandlerFactory uses CodebookQuerylet to obtain the codes and pass them when instantiating the ValueHandler for a column.

edu.rpi.tw.data.csv.CSVtoRDF#visit passes the ValueHandler the value of the CSV cell (after an optional conversion:delimit_object)

Clone this wiki locally