[redland-dev] Troubles in parsing data into a model

Attilio Fiandrotti fiandro at tiscali.it
Mon Mar 27 21:21:24 BST 2006


Dave Beckett wrote:
> Type 1 is RAPTOR_IDENTIFIER_TYPE_RESOURCE.  Older code only expects
> type 2 RAPTOR_IDENTIFIER_TYPE_PREDICATE.
> 
> I *thought* I changed all the redland 1.0.3 code to expect both, and I
> just checked the source in SVN (rdf_parser_raptor.c is where this error
> message comes from) and it seems I missed the case in 1.0.3
> 
> If you were using 1.0.3 tarballs you'll need to edit rdf_parser_raptor.c
> around line 194 to allow both types.  From:
>   } else if (rstatement->predicate_type ==
> RAPTOR_IDENTIFIER_TYPE_PREDICATE) {
> 
> to
>   } else if (rstatement->predicate_type ==
> RAPTOR_IDENTIFIER_TYPE_RESOURCE ||
>              rstatement->predicate_type ==
> RAPTOR_IDENTIFIER_TYPE_PREDICATE) {
> 
> However, this *is* fixed in SVN so I'm guessing you have some 1.0.3 or
> older shared library being used.

The patch you applied in r10707 fixed the bug and i can parse rdf data 
again as before; still i'm dealing with some bugs that show up in c# 
bindings now and then, but this one was a real blocker for me, thanks a lot.

friendly

Attilio


More information about the redland-dev mailing list