Hi,

I found that d2r was unable to handle "text" types in my MySql database.

The fix I applied was to change the method:

de.fuberlin.wiwiss.d2rq.sql.ConnectedDB.columnType(Attribute column)

I changed:

             default:
                 if ("NVARCHAR2".equals(type.typeName()))
                     return TEXT_COLUMN;
               else
                     throw new D2RQException("Unsupported database type 
code (" + type + ") for column "
                         + column.qualifiedName());

To:

             default:
                 if ("NVARCHAR2".equals(type.typeName()))
                     return TEXT_COLUMN;
                 else if ("text".equals(type.typeName()))
                     return TEXT_COLUMN;
                 else
                     throw new D2RQException("Unsupported database type 
code (" + type + ") for column "
                         + column.qualifiedName());


After that both the dump to RDF and the D2RServer worked fine. I haven't 
tested the sparql endpoint.

Regrads
Dr Christian Brenninkmeijer
University of Manchester

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to