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

Attilio Fiandrotti fiandro at tiscali.it
Mon Mar 27 19:05:53 BST 2006


Dave Beckett wrote:
> fiandro at tiscali.it wrote:
> 
>>Hi
>>
>>as i previously reported about C# bindings (see [1]), i'm having 
>>troubles in parsing data into a model with the C API too, so i suppose 
>>this is definitely not related to the C# bindings (i'm using latest 
>>redland sources fron SVN).
> 
> 
> I think it's related to the previously announced change to raptor:
> 
> "Future API change: From the next release of Raptor, raptor_statement
> predicates will return identifiers of type
> RAPTOR_IDENTIFIER_TYPE_RESOURCE instead of
> RAPTOR_IDENTIFIER_TYPE_PREDICATE."
> -- http://librdf.org/raptor/RELEASE.html#rel1_4_8

this is plausible: a ltrace run shows

attilio at attilaptop:~/redland/librdf/examples$ !ltr
ltrace ./example2
__libc_start_main(0x8048c04, 1, 0xbfe6f904, 0x8048ff0, 0x8049060 
<unfinished ...>
librdf_new_world(0xb7ce6a70, 0xb7c4ea44, 0xbfe6f868, 0x8048b8e, 
0xb79d1360)  = 0x804b008
librdf_world_open(0x804b008, 0xb7c4ea44, 0xbfe6f868, 0x8048b8e, 
0xb79d1360)  = 0x8059948
librdf_new_uri(0x804b008, 0x80492ae, 0xbfe6f868, 0x8048b8e, 0xb79d1360) 
      = 0x8059a98
librdf_new_storage(0x804b008, 0x80492e8, 0x80492e3, 0, 0xb79d1360) 
      = 0x8059b80
librdf_new_model(0x804b008, 0x8059b80, 0, 0, 0xb79d1360) 
      = 0x8059bf0
librdf_new_parser(0x804b008, 0x804932e, 0, 0, 0xb79d1360) 
      = 0x8059cb8
librdf_parser_parse_string_into_model(0x8059cb8, 0x8049128, 0x8059a98, 
0x8059bf0, 0xb79d1360librdf error - Unknown Raptor predicate identifier 
type 1
librdf error - Unknown Raptor predicate identifier type 1
librdf error - Unknown Raptor predicate identifier type 1
) = 0

<snip>

+++ exited (status 0) +++


  > Make sure that the raptor (and rasqal) sources are all up to date with
> respect to SVN.  That means three directories if you followed the
> configuration given at http://librdf.org/INSTALL.html
> 
> The latest svn revision 10705 works with the API change.  [Apart from 1
> thing in rdf/xml-abbrev serializing that I have yet to fix].

i'm working with 10706 librdf, raptor, rasqal and bindings revision from 
SVN: i removed redland debian packages and deleted both binaries and 
sources before checking out everything from scratch; this is my gcc

attilio at attilaptop:~/redland/librdf/examples$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-java-awt=gtk-default 
--enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre 
--enable-mpfr --disable-werror --with-tune=i686 
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Debian 4.0.3-1)

does this help? do you need more/other debug output?

friendly

Attilio


More information about the redland-dev mailing list