RDF::Redland - Redland RDF Class
use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); my $model=new RDF::Redland::Model($storage, "");
...
This class initialises the Redland RDF classes.
See the main classes for full detail: the RDF::Redland::Node manpage, the RDF::Redland::BlankNode manpage, the RDF::Redland::URINode manpage, the RDF::Redland::LiteralNode manpage, the RDF::Redland::XMLLiteralNode manpage, the RDF::Redland::URI manpage, the RDF::Redland::Statement manpage, the RDF::Redland::Model manpage, the RDF::Redland::Storage manpage, the RDF::Redland::Parser manpage, the RDF::Redland::Query manpage, the RDF::Redland::QueryResults manpage, the RDF::Redland::Iterator manpage, the RDF::Redland::Stream manpage and the RDF::Redland::RSS manpage.
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);
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 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 $msg
the RDF::Redland::Node manpage, the RDF::Redland::BlankNode manpage, the RDF::Redland::URINode manpage, the RDF::Redland::LiteralNode manpage, the RDF::Redland::XMLLiteralNode manpage, the RDF::Redland::URI manpage, the RDF::Redland::Statement manpage, the RDF::Redland::Model manpage, the RDF::Redland::Storage manpage, the RDF::Redland::Parser manpage, the RDF::Redland::Query manpage, the RDF::Redland::QueryResults manpage, the RDF::Redland::Iterator manpage, the RDF::Redland::Stream manpage and the RDF::Redland::RSS manpage.
Dave Beckett - http://purl.org/net/dajobe/
Copyright 2000-2005 Dave Beckett, Institute for Learning and Research Technology, University of Bristol