[redland-dev] Base uri when parsing strings

Dave Beckett dave.beckett at bristol.ac.uk
Wed Aug 3 15:23:22 BST 2005


On Mon, 2005-08-01 at 20:18 -0700, Boris Popov wrote:
> I was wondering if its nessecary to pass down base uri when parsing
> from strings (or files) in cases when its embedded in content. I tried
> passing down null, but that resulted in parse failing altogether
> (return 1 from librdf_parser_parse_string_into_model).

Some parsers require a base URI as they allow relative URIs in the
syntax (RDF/XML, Turtle, RSS).  Others don't as they are always absolute
(N-Triples).  I guess it failed for you when you passed in NULL, as the
parser needed it?  Which parser was it?

Dave





More information about the redland-dev mailing list