1RDF::Trine::Parser::RedUlsaenrd(C3o)ntributed Perl DocumReDnFt:a:tTiroinne::Parser::Redland(3)
2
3
4
6 RDF::Trine::Parser::Redland - RDF Parser using the Redland library
7
9 This document describes RDF::Trine::Parser::Redland version 1.019
10
12 use RDF::Trine::Parser;
13 use RDF::Trine::Parser::Redland; # to overwrite internal dispatcher
14
15 # Redland does turtle, ntriples, trig and rdfa as well
16 my $parser = RDF::Trine::Parser->new( 'rdfxml' );
17 $parser->parse_into_model( $base_uri, $data, $model );
18
20 ...
21
23 Beyond the methods documented below, this class inherits methods from
24 the RDF::Trine::Parser class.
25
26 "new ( options => \%options )"
27 Returns a new Redland parser object with the supplied options. Use
28 the "name" option to tell Redland which parser it should use.
29
30 "parse_into_model ( $base_uri, $data, $model [, context => $context] )"
31 Parses the bytes in $data, using the given $base_uri. For each RDF
32 statement parsed, will call "$model->add_statement( $statement )".
33
34 "parse ( $base_uri, $rdf, \&handler )"
35
37 Set "RDFTRINE_NO_REDLAND" to something true to disable the Redland
38 parsers.
39
41 Please report any bugs or feature requests to through the GitHub web
42 interface at <https://github.com/kasei/perlrdf/issues>.
43
45 Gregory Todd Williams "<gwilliams@cpan.org>"
46
48 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
49 software; you can redistribute it and/or modify it under the same terms
50 as Perl itself.
51
52
53
54perl v5.28.0 2018-01-05 RDF::Trine::Parser::Redland(3)