NAME
RDF::RDFa::Parser::Redland - Parses RDFa into a RDF::Redland::Model.
SYNOPSIS
use LWP::Simple qw(get);
use RDF::RDFa::Parser::Redland;
my $uri = 'http://example.com/rdfa-enabled-page.xhtml';
my $parser = RDF::RDFa::Parser::Redland(get($uri), $uri);
$parser->consume;
my $model = $parser->redland;
DESCRIPTION
This module extends RDF::RDFa::Parser to be able to output an RDF::Redland::Model.
The redland
method will return a Redland model equivalent to the graph
method that the usual RDF::RDFa::Parser has. (Indeed, the graph
method is available in this module too.)
redland
can be passed a single optional parameter, consisting of an existing Redland model which triples will be added to. If this parameter is missing, then a new in-memory model will be created.
SEE ALSO
RDF::RDFa::Parser, RDF::RDFa::Parser::Trine, RDF::Redland.
AUTHOR
Toby Inkster, <mail@tobyinkster.co.uk>
COPYRIGHT AND LICENSE
Copyright 2008, 2009 Toby Inkster
This file is dual licensed under:
The Artistic License
GNU General Public License 3.0
You may choose which of those two licences you are going to honour the
terms of, but you cannot pick and choose the parts which you like of
each. You must fulfil the licensing requirements of at least one of the
two licenses.
The Artistic License
<http://www.perl.com/language/misc/Artistic.html>
GNU General Public License 3.0
<http://www.gnu.org/licenses/gpl-3.0.html>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.