[redland-dev] Re: Parser features?
dave.beckett at bristol.ac.uk
Mon Jul 18 11:44:39 BST 2005
On Sun, 2005-07-17 at 09:02 -0400, crschmidt at crschmidt.net wrote:
> On Sun, Jul 17, 2005 at 02:09:25AM -0700, Boris Popov wrote:
> > Here's to hoping google will index this for future generations :)
> SeeAlso: rapper --help, which leads to rapper -f help
Yes, which is generated programatically now.
Although there are no language bindings to this, you can see how to do
it in the libraptor manual page or
by looking for "features_enumerate". There are APIs to get and set
parser and xml writer features. In redland terms, what is important to
know are the URIs (from the libraptor man page):
Raptor features have URIs that are constructed from the URI
http://feature.librdf.org/raptor- and the name so for example
feature scanForRDF has URI http://feature.librdf.org/raptor-scanForRDF
then you can use the redland parser method
int librdf_parser_set_feature (librdf_parser* parser,
Most of the values are boolean/ints but the raptor man page explains
more in raptor_set_feature as well as the rapper help page.
More information about the redland-dev