RDF::Converter::CSV - Converts comma separated CSV to RDF
Version 0.01
use RDF::Converter::CSV; use strict; use warnings; my $rdf = RDF::Converter::CSV->new( FILENAME => 'books.csv', #MANDATORY URI =>'http://nothing.nul/', #MANDATORY PREFIX => 'lib', #MANDATORY PRIMARY => 'id', #OPTIONAL - will take one of the field as identifier, if not given OUTPUT => 'books.rdf',#OPTIONAL - will output on the terminal, if not given COLUMNS => [ qw/ id title author price / ] #OPTIONAL - will take the first row as the field names, #if COLUMNS not given or #the number of elements in COLUMN != the number of fields in the CSV file ); $rdf->write;
$rdf->get_file; returns the array ref of the file content $rdf->csv_process; returns the csv data as a array ref of hash refs
Arshad Mohamed, Khader Shameer and R. Sowdhamini RDF::Converter Team <arshad25 at gmail.com>, <shameer at ncbs.res.in>, <mini at ncbs.res.in>
<arshad25 at gmail.com>
<shameer at ncbs.res.in>
<mini at ncbs.res.in>
Please report any bugs or feature requests to bug-rdf-converter-csv at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RDF-Converter-CSV. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rdf-converter-csv at rt.cpan.org
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=RDF-Converter-CSV
CPAN Ratings
http://cpanratings.perl.org/d/RDF-Converter-CSV
Search CPAN
http://search.cpan.org/dist/RDF-Converter-CSV/
Copyright 2009 Arshad Mohamed, Khader Shameer & R. Sowdhamini, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::Converter::CSV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Converter::CSV
CPAN shell
perl -MCPAN -e shell install RDF::Converter::CSV
For more information on module installation, please visit the detailed CPAN module installation guide.