[redland] Node Type Returning incorrectly.
Sameer Abhinkar
abhinkar at yahoo.com
Fri Sep 7 17:24:59 BST 2001
Hi,
Here is the problem description in brief.. with some
parts of the source code.
I have a statement which is of the format:
{[file://home/sameer/ccppdef.rdf#genid2],[http://www.w3.org/1999/02/22-rdf-syntax-ns#type],[http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag]}
The above statement is stored in variable
'statement'
I create three nodes out of it
node_sub = librdf_statement_get_object(statement);
node_pred = librdf_statement_get_pred(statement);
node_obj = librdf_statement_get_obj(statement);
int i = librdf_node_get_type(node_obj);
i is returning LIBRDF_NODE_TYPE_RESOURCE(1) in lieu of
LIBRDF_NODE_TYPE_BAG(4). Does anyone know why this
could happen?
Thanks,
Sameer Abhinkar
More information about the redland-dev
mailing list