RDF::RDFa::Template::Document - A parsed Template document
my $parser = RDF::RDFa::Parser->new($self->{RAT}, 'http://example.org/foo/', { use_rtnlx => 1, graph => 1, graph_type => 'about', graph_attr => '{http://example.org/graph#}graph', }); $parser->consume; my $doc = RDF::RDFa::Template::Document->($parser); $doc->extract;
It implements the following methods:
The constructor. An RDF::RDFa::Parser object is a required argument.
Extracts the Basic Graph Patterns from the parsed document. Returns the number of patterns extracted.
Returns a RDF::RDFa::Template::Unit for the specified graph name.
Returns an array of RDF::RDFa::Template::Unit objects
Return an XML::LibXML::Document of the parsed source document.
Kjetil Kjernsmo, <kjetilk at cpan.org>
<kjetilk at cpan.org>
Copyright 2010 Kjetil Kjernsmo.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::RDFa::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::RDFa::Template
CPAN shell
perl -MCPAN -e shell install RDF::RDFa::Template
For more information on module installation, please visit the detailed CPAN module installation guide.