[Introspector-developers] intrspctr_add_statement_literal_string
Status: Beta
Brought to you by:
mdupont
|
From: James M. D. <mdu...@ya...> - 2002-12-03 16:43:24
|
The patch is applied to cygwin, all of a suddem void intrspctr_add_statement_literal_string (di, ppredicate, pstring) this function add literal string with the predicate indicated by ppredicate to the current node. Used for handling both node modifiers (const, volitile) and also identifier strings. This function has changed between the cvs and the current version ///librdf_new_node_from_literal(librdf_world* world, // const char *string, // const char *xml_language, // int xml_space, // int is_wf_xml the xml space is null with the older version 0.9.11 that I have http://www.redland.opensource.ac.uk/ChangeLog * librdf/rdf_node.c: Remove all references to XML Space. Keep the arg around but ignore it. (librdf_new_node_from_literal,librdf_node_set_literal_value): xml_space arg now unused1 (librdf_node_get_literal_value_xml_space): Removed - API change (librdf_node_encode,librdf_node_decode): Removed xml space en/decoding here is the function void intrspctr_add_statement_literal_string (di, ppredicate, pstring) dump_info_p di; librdf_node* ppredicate; char * pstring; { librdf_node* pobject; pobject= librdf_new_node_from_literal(di->pworld, pstring, NULL, 0, 0); // create a new node intrspctr_add_statement(di, ppredicate, pobject ); } Mike ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |