NAME

ODO::Parser - Generic parser interface for ODO RDF Parsers

SYNOPSIS use ODO::Parser::XML;

 my $statements = ODO::Parser::XML->parse_file('some/path/to/data.rdfxml');

 my $rdf = ' ... rdf xml here ... ';
 my $other_statements = ODO::Parser::XML->parse(\$rdf);

DESCRIPTION

This specifies the base interface for parsing RDF in ODO. RDF parsers must support the two functions defined here: parse and parse_file.

METHODS

parse( $rdf_text | \$rdf_text )

Parse RDF from the scalar or scalarref parameter. An arrayref of ODO::Statement objects will be returned.

parse_file( $filename )

Parse RDF from the file parameter. An arrayref of ODO::Statement objects will be returned.

COPYRIGHT

Copyright (c) 2006 IBM Corporation.

All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html