Dear all,
I'm trying to get my own example/testing implementation in Java OWL API running, but I keep on hitting the following exception:
l.QuestStatement - java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''), ']', '%5D'), '^', '%5E'), '`', '%60'), '{', '%7B'), '|', '%7C'), '}', '%7D')' at line 4
It is rather strange, as I can confgure and execute the mapping in Protege. So, it seems like a configuration issue, as I cannot possibly imagine with the following example there to be some kind of bug.
Any help/hints/clues? That would be wonderul! It feels like I am missing something obvious, but cannot find what. :-(
Kind regards,
Stijn Verstichel
I'm using MySQL as relational database with this in the properties file:
jdbc.url = jdbc:mysql://localhost/harmoneylocal?sessionVariables=sql_mode='ANSI'
jdbc.user = root
jdbc.password = urbis
jdbc.driverClass = com.mysql.jdbc.Driver
This seems to be some kind of translation issue and occurs even with the simplest mapping:
[MappingDeclaration] @collection [[
mappingId urn:financial_sp mapping
target :financialsp{id} a :ServiceProvider .
source SELECT * FROM harmoneylocal.financial_sp;
With this ontology OWL file: