RDF::MicroTurtle::Parser - parse MicroTurtle
0.001
This is a subclass of RDF::Trine::Parser and supports the methods parse_into_model, parse_file_into_model, parse_file and parse.
parse_into_model
parse_file_into_model
parse_file
parse
Can be constructued using the usual RDF::Trine method:
my $parser = RDF::Trine::Parser->new('microturtle', %args);
Or:
my $parser = RDF::MicroTurtle::Parser->new(%args);
The most important argument is $args{'parsing_context'} which is an instance of RDF::MicroTurtle::Context (or any subclasses). It may be omitted in which case a new RDF::MicroTurtle::Context object will be created.
$args{'parsing_context'}
Other arguments are booleans to suppress certain implicit contextual triples.
$args{'no_agent_triples'} - suppresses implicit triples of the form { <@person> a foaf:Agent ; foaf:nick "person" . }
$args{'no_agent_triples'}
$args{'no_tag_triples'} - suppresses implicit triples of the form { <#hashtag> a tags:Tag ; tags:name "hashtag" . }
$args{'no_tag_triples'}
$args{'no_tagging_triples'} - suppresses implicit triples of the form { <thing> tags:taggedWithTag <#hashtag> . }
$args{'no_tagging_triples'}
Please report any bugs to http://rt.cpan.org/.
RDF::Trine::Parser.
http://www.perlrdf.org/.
http://buzzword.org.uk/2009/microturtle/spec.
Toby Inkster <tobyink@cpan.org>.
Copyright (C) 2009-2010 by Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.
To install RDF::MicroTurtle::Feed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::MicroTurtle::Feed
CPAN shell
perl -MCPAN -e shell install RDF::MicroTurtle::Feed
For more information on module installation, please visit the detailed CPAN module installation guide.