RedlandDave Beckett |
|||||
|
Redland BindingsLanguagesDemonstrationsDownloadsData |
Redland RDF Language Bindings - Perl RDF::Redland::Parser ClassNAMERDF::Redland::Parser - Redland RDF Syntax Parsers Class SYNOPSISuse RDF::Redland;
...
my $parser=new RDF::Redland::Parser("rdfxml");
my $parser2=new RDF::Redland::Parser(undef, "application/rdf+xml);
# Return as an RDF::Redland::Stream my $stream=$parser->parse_as_stream($source_uri, $base_uri); # Store in an RDF::Redland::Model $parser->parse_into_model($source_uri, $base_uri, $model); DESCRIPTIONThis class represents parsers of various syntaxes that can deliver a RDF model either as a RDF::Redland::Stream of RDF::Redland::Statement objects or directly into an RDF::Redland::Model object. CONSTRUCTORS
METHODS
Parse the syntax at the RDF::Redland::URI SOURCE_URI with optional base RDF::Redland::URI BASE_URI into RDF::Redland::Model MODEL. If the base URI is given then the content is parsed as if it was at the base URI rather than the source URI. If the optional HANDLER is given, it is a reference to a sub with the signature sub Parse the syntax in STRING with required base RDF::Redland::URI BASE_URI. Returns an RDF::Redland::Stream of RDF::Redland::Statement objects or undef on failure. Parse the syntax in STRING with required base RDF::Redland::URI BASE_URI into RDF::Redfland::Model MODEL. If the optional HANDLER is given, it is a reference to a sub with the signature sub Get/set a parser feature. The feature is named via RDF::Redland::URI URI and the value is a RDF::Redland::Node. If VALUE is given, the feature is set to that value, otherwise the current value is returned. Get the set of namespace declarations seen during parsing as a hash of key:prefix string (may be ''), value: RDF::Redland::URI objects. SEE ALSOAUTHORDave Beckett - http://www.dajobe.org/ (C) Copyright (C) 2000-2007 Dave Beckett, (C) Copyright (C) 2000-2005 University of Bristol |