RDF::Redland::Parser(3pm) | User Contributed Perl Documentation | RDF::Redland::Parser(3pm) |
RDF::Redland::Parser - Redland RDF Syntax Parsers Class
use RDF::Redland; ... my $parser=new RDF::Redland::Parser("rdfxml"); my $parser2=new RDF::Redland::Parser(undef, "application/rdf+xml); # Return as an RDF::Redland::Stream my $stream=$parser->parse_as_stream($source_uri, $base_uri); # Store in an RDF::Redland::Model $parser->parse_into_model($source_uri, $base_uri, $model);
This class represents parsers of various syntaxes that can deliver a RDF model either as a RDF::Redland::Stream of RDF::Redland::Statement objects or directly into an RDF::Redland::Model object.
Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure.
If the optional HANDLER is given, it is a reference to
a sub with the signature
sub handler($$$$$$$$$) {
my($code, $level,
$facility, $message,
$line, $column,
$byte, $file,
$uri)=@_;
...
} that receives errors in parsing.
Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure.
If the optional HANDLER is given, it is a reference to
a sub with the signature
sub handler($$$$$$$$$) {
my($code, $level,
$facility, $message,
$line, $column,
$byte, $file,
$uri)=@_;
...
} that receives errors in parsing.
RDF::Redland::URI
Dave Beckett - http://www.dajobe.org/
2020-11-09 | perl v5.32.0 |