Scroll to navigation

CSV2RDF(1) User Commands CSV2RDF(1)

NAME

csv2rdf - converts CSV to RDF

SYNOPSIS

csv2rdf -b <instance-base> -p <property-base> [-c <classname>] [-i <identity column(s)>] [-l <label columns>] [-s <N>] [-o <output>] [-f configfile] [--col<N> <colspec>] [--prop<N> <property>] <[-d <delim>] [-C] [files...]

DESCRIPTION

Reads csv files from stdin or given files

Long options also supported: --base, --propbase, --ident, --class, --label, --out, --defineclass

Long options --col0, --col1, ... can be used to specify conversion for columns.

float(), int(), split(sep, [more]), uri(base, [class]), date(format)

Long options --prop0, --prop1, ... can be used to use specific properties, rather than ones auto-generated from the headers

-f says to read config from a .ini/config file - the file must contain one section called csv2rdf, with keys like the long options, i.e.:


[csv2rdf]

out=output.n3
base=http://example.org/
col0=split(";")
col1=split(";", uri("http://example.org/things/",
"http://xmlns.com/foaf/0.1/Person"))
col2=float()
col3=int()
col4=date("%Y-%b-%d %H:%M:%S")

AUTHOR

This manual page was written by Olivier Berger <obergix@debian.org>, for the Debian distribution.

December 2013 csv2rdf