RDFStore::Parser - Interface to an RDF parser


RDFStore documentation  | view source Contained in the RDFStore distribution.

Index


NAME

Top

RDFStore::Parser - Interface to an RDF parser

SYNOPSIS

Top

	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);

DESCRIPTION

Top

An RDFStore::Model parser.

SEE ALSO

Top

RDFStore::Model(3) RDFStore::Parser::SiRPAC(3) RDFStore::Parser::NTriples(3)

AUTHOR

Top

	Alberto Reggiori <areggiori@webweaving.org>



RDFStore documentation  | view source Contained in the RDFStore distribution.