1RDF::Trine::Parser::RDFUJsSeOrN(C3o)ntributed Perl DocumReDnFt:a:tTiroinne::Parser::RDFJSON(3)
2
3
4
6 RDF::Trine::Parser::RDFJSON - RDF/JSON RDF Parser
7
9 This document describes RDF::Trine::Parser::RDFJSON version 1.019
10
12 use RDF::Trine::Parser;
13 my $parser = RDF::Trine::Parser->new( 'RDF/JSON' );
14 $parser->parse_into_model( $base_uri, $data, $model );
15
17 ...
18
20 Beyond the methods documented below, this class inherits methods from
21 the RDF::Trine::Parser class.
22
23 "new"
24 Returns a new RDFJSON parser.
25
26 "parse_into_model ( $base_uri, $data, $model [, context => $context] )"
27 Parses the bytes in $data, using the given $base_uri. For each RDF
28 statement parsed, will call "$model->add_statement( $statement )".
29
30 "parse ( $base_uri, $rdf, \&handler )"
31 Parses the bytes in $data, using the given $base_uri. Calls the
32 "triple" method for each RDF triple parsed. This method does
33 nothing by default, but can be set by using one of the default
34 "parse_*" methods.
35
37 Please report any bugs or feature requests to through the GitHub web
38 interface at <https://github.com/kasei/perlrdf/issues>.
39
41 Toby Inkster <tobyink@cpan.org>
42 Gregory Williams <gwilliams@cpan.org>
43
45 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
46 software; you can redistribute it and/or modify it under the same terms
47 as Perl itself.
48
49
50
51perl v5.34.0 2021-07-22 RDF::Trine::Parser::RDFJSON(3)