R2RML import

3 views
Skip to first unread message

PaulZH

unread,
Dec 19, 2016, 9:29:34 AM12/19/16
to Stardog
Having a R2RML mapping file that works in ontop version 1.18.0.1.

Using the same R2RML now in stardog I get:
 An error occurred adding RDF to the index: Ambiguous column name 'GemeenteID'.

I tried to figure out what is going on, but no success.
The stardog log file is attached. 


Paul
stardog.log

Evren Sirin

unread,
Dec 20, 2016, 7:00:41 PM12/20/16
to Stardog
Does the SQL query in your mappings work as is for the RDBMS? Which
RDBMS are you using? Can you share your mappings or at least the SQL
query?

Best,
Evren
> --
> -- --
> You received this message because you are subscribed to the C&P "Stardog"
> group.
> To post to this group, send email to sta...@clarkparsia.com
> To unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> For more options, visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Zachary Whitley

unread,
Dec 20, 2016, 7:40:58 PM12/20/16
to sta...@clarkparsia.com
I ran into something similar a little while ago in a previous post [1]. There are a couple of links in there about quoting identifiers that might be helpful if you're running MySQL. It would be interesting to see if the solution that I came across works for you and you can verify that I'm not crazy. 

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
<stardog.log>

PaulZH

unread,
Dec 21, 2016, 3:42:07 AM12/21/16
to Stardog
Hi Zachary,

In our case it is MS SQL server, which has indeed some peculiarities as indicated in one of your links.
But the same R2RML file is working in -ontop-.
Anyhow Evren is having a look now (sent him all the info) and will keep us current.

Evren Sirin

unread,
Dec 21, 2016, 9:58:00 AM12/21/16
to Stardog
For materialization we execute SQL queries in your mappings as-is.
Ontop always performs some preprocessing and serializes the query
string from the object representation. So even if your SQL database
cannot execute the SQL queries in your mappings the preprocessing
might work around that. So I'm guessing there might be some syntax
issue in the queries that MS SQL server doesn't like. We'll take a
look at the mappings and see if that is the issue.

Best,
Evren
Reply all
Reply to author
Forward
0 new messages