Query: rdf::redland
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RDF::Redland(3pm) User Contributed Perl Documentation RDF::Redland(3pm)NAMERDF::Redland - Redland RDF ClassSYNOPSISuse RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, ""); ...DESCRIPTIONThis class initialises the Redland RDF classes. See the main classes for full detail: RDF::Redland::Node, RDF::Redland::BlankNode, RDF::Redland::URINode, RDF::Redland::LiteralNode, RDF::Redland::XMLLiteralNode, RDF::Redland::URI, RDF::Redland::Statement, RDF::Redland::Model, RDF::Redland::Storage, RDF::Redland::Parser, RDF::Redland::Query, RDF::Redland::QueryResults, RDF::Redland::Iterator, RDF::Redland::Stream and RDF::Redland::RSS.STATIC METHODSset_log_handler SUB Set SUB as the subroutine to be called on any Redland error, warning or log message. The subroutine must have the followign signature: sub handler ($$$$$$$$$) { my($code, $level, $facility, $message, $line, $column, $byte, $file, $uri)=@_; # int error code # int log level # int facility causing the error (parsing, serializing, ...) # string error message # int line number (<0 if not relevant) # int column number (<0 if not relevant) # int byte number (<0 if not relevant) # string file name or undef # string URI or undef # ...do something with the information ... }; RDF::Redland::set_log_handler(&handler); reset_log_handler Reset redland to use the default logging handler, typically printing the message to stdout or stderr and exiting on a fatal error. set_error_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set SUB as the subroutine to be called on a Redland error with the error message as the single argument. For example: RDF::Redland::set_error_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run die $msg set_warning_handler SUB The method set_log_handler is much more flexible than this and includes this functionality. Set SUB as the subroutine to be called on a Redland warning with the warning message as the single argument. For example: RDF::Redland::set_warning_handler(sub { my $msg=shift; # Do something with $msg }); The default if this is not set, is to run warn $msgSEE ALSORDF::Redland::Node, RDF::Redland::BlankNode, RDF::Redland::URINode, RDF::Redland::LiteralNode, RDF::Redland::XMLLiteralNode, RDF::Redland::URI, RDF::Redland::Statement, RDF::Redland::Model, RDF::Redland::Storage, RDF::Redland::Parser, RDF::Redland::Query, RDF::Redland::QueryResults, RDF::Redland::Iterator, RDF::Redland::Stream and RDF::Redland::RSS.AUTHORDave Beckett - http://www.dajobe.org/ perl v5.14.2 2012-03-11 RDF::Redland(3pm)
Related Man Pages |
---|
rdfproc(1) - suse |
rdf::redland::node(3pm) - debian |
rdf::redland::storage(3pm) - debian |
rdf::trine::store::redland(3pm) - debian |
rdf::vcard(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
NewsFeed 2.9 (Default branch) |
Doapfiend 0.3.0 (Default branch) |
Doapfiend 0.3.3 (Default branch) |
Redland RDF Libraries 1.0.8 (Development branch) |
RDFParser 2.0.1 (Default branch) |