William, On 23 Oct 2010, at 19:54, William Waites wrote:
int dvtype = 0; int dv_dt_type = 0; rc = SQLGetDescField(hdesc, col, SQL_DESC_COL_DV_TYPE, &dvtype, SQL_IS_INTEGER, NULL); rc = SQLGetDescField(hdesc, col, SQL_DESC_COL_DT_DT_TYPE, &dv_dt_type, SQL_IS_INTEGER, NULL); if (dvtype == DV_TIMESTAMP || dvtype == DV_TIME || dvtype == DV_DATE ||dvtype == DV_DATETIME) { switch(dv_dt_type) { case DT_TYPE_DATE: u_type = librdf_new_uri(storage->world, (unsigned char *)"http://www.w3.org/2001/XMLSchema#date"); break; case DT_TYPE_TIME: u_type = librdf_new_uri(storage->world, (unsigned char *)"http://www.w3.org/2001/XMLSchema#time"); break; default: u_type = librdf_new_uri(storage->world, (unsigned char *)"http://www.w3.org/2001/XMLSchema#dateTime"); break; } node = librdf_new_node_from_typed_literal(storage->world, (const unsigned char *)data, NULL, u_type); break; } } ... The source file can be used as a reference to see how these extensions can be used ... Regards Hugh |
rdf_storage_virtuoso.c
Description: Binary data
|