The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::Converter::CSV - Converts comma separated CSV to RDF

VERSION

Version 0.01

SYNOPSIS

   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;

OTHER METHODS

        $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

AUTHORS

Arshad Mohamed, Khader Shameer and R. Sowdhamini RDF::Converter Team <arshad25 at gmail.com>, <shameer at ncbs.res.in>, <mini at ncbs.res.in>

ACKNOWLEDGEMENTS Funding :

BUGS

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.

COPYRIGHT & LICENSE

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.