![]() |
![]()
| ![]() |
![]()
NAMERDF::Core::Parser - RDF Parser DESCRIPTIONA module for parsing XML documents containing RDF data. It's based on XML::Parser. Parser goes through XML and calls what is referenced in Assert option for each statement found. CAUTION: If you parse more documents into one model, you need to set distinct BNodePrefix (see below) for each document. This way you avoid mixing anonymous resources from distinct documents together. SYNOPSISrequire RDF::Core::Parser; my %options = (Assert => \&handleAssert, BaseURI => "http://www.foo.com/", BNodePrefix => "genid" ); my $parser = new RDF::Core::Parser(%options); $parser->parseFile('./rdfFile.xml'); #or $parser->parse($rdfString); Interface
Assert handlerAssert handler is called with key value pairs in a parameters array. Keys are:
LICENSEThis package is subject to the MPL (or the GPL alternatively). AUTHORGinger Alliance, rdf@gingerall.cz SEE ALSORDF::Core::Model::Parser
|