RDFStore::Parser - Interface to an RDF parser
use RDFStore::Parser; my $parser = new RDFStore::Parser( ErrorContext => 3, Style => 'RDFStore::Parser::Styles::RDFStore::Model' ); # or... use RDFStore::Model; my $model= new RDFStore::Model(); $parser = $model->getReader; my $rdfstring = qq|
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:a='http://description.org/schema/'> <rdf:Description rdf:about='http://www.w3.org'> <a:Date>1998-10-03T02:27</a:Date> </rdf:Description>
</rdf:RDF>|;
$model = $parser->parsestring($rdfstring); $model = $parser->parsefile('http://www.w3.org/1999/02/22-rdf-syntax-ns#'); $model = $parser->parsestream(*RDFSTREAM);
An RDFStore::Model parser.
RDFStore::Model(3) RDFStore::Parser::SiRPAC(3) RDFStore::Parser::NTriples(3)
Alberto Reggiori <areggiori@webweaving.org>
To install RDFStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDFStore
CPAN shell
perl -MCPAN -e shell install RDFStore
For more information on module installation, please visit the detailed CPAN module installation guide.