[redland-dev] Fwd: librdf_parser_parse_into_model

rodney tamblyn rodney at stonebow.otago.ac.nz
Wed Nov 17 00:46:13 GMT 2004


Begin forwarded message:

> From: Dave Beckett <dave.beckett at bristol.ac.uk>
> Date: 17 November 2004 8:54:04 AM
> To: Rodney Tamblyn <rodney at oceanbrowser.com>
> Subject: Re: librdf_parser_parse_into_model
>
> On Sat, 13 Nov 2004 09:52:02 +1300
> Rodney Tamblyn <rodney at oceanbrowser.com> wrote:
>
>> Hi Dave,
>>
>> Might be nice if librdf_parser_parse_into_model be able to cope with
>> mixed rdf/html documents, e.g. schema documents, such as
>> http://xmlns.com/foaf/0.1/
>
> It relies on Raptor to do the parsing, which can handle that
> with a special flag - scanning.  You can set that, which is a
> parser feature with the URI
>   http://feature.librdf.org/raptor-scanForRDF
>
> Err..  I've not tested this.  Or it seems, documented it.
>
> But sorta this kinda pseudo-code
>
>   parser=new Parser(... RDF/XML ... )
>   parser.setFeature(URI(http://feature.librdf.org/raptor-scanForRDF), 
> "1")
>
>   parser.parse_into_model(URI(http://xmlns.com/foaf/0.1/), model,
>                           ... other args ...)
>
> Dave
>
>
>
--
Rodney Tamblyn
44 Melville Street
Dunedin
New Zealand
+64 3 4778606
http://rodney.buzzword.com/
http://oceanbrowser.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1396 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20041117/97400cac/attachment.bin


More information about the redland-dev mailing list