-
Notifications
You must be signed in to change notification settings - Fork 36
Codebook enhancements
Codebook enhancements are specified by conversion:interpret, see that for an introduction, discussion, and examples.
See also conversion:Enhancement and Enhancement parameters.
The rest of this page discusses details not necessary for normal use.
Script: distinct-values-2-symbol-interps.pl
Script: symbol interpretation.awk
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)