HI Sebastian,
The documentation of the Virtuoso RDF ODBC extensions[1] contains an error:
In the example the box flags are compared to 1 to determine if the result is a
IRI:
switch (dvtype)
{
case VIRTUOSO_DV_STRING:
{
if (flag == 1)
In fact it needs to be:
switch (dvtype)
{
case VIRTUOSO_DV_STRING:
{
if (flag & 1)
At least that is what my experiments showed. I suppose the flags are a bit
field stating that:
0 - latin1 string
1 - iri
2 - utf8
Thus, 3, would mean a utf8 encoded IRI, while 2 is a plain utf8 literal and 1
is a latin1 encoded IRI.
Thank you for spotting that oversight.
I will fix it in the online docs shortly.
Patrick