Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file for MySQL #31

Open
Gautamshahi opened this issue Aug 13, 2020 · 4 comments
Open

Config file for MySQL #31

Gautamshahi opened this issue Aug 13, 2020 · 4 comments

Comments

@Gautamshahi
Copy link

Hi,

In the test case, there are multiple files for MySQL. which should I use for the beginners?

@pheyvaer
Copy link
Contributor

Hi @Gautamshahi

To which test case are you referring?

@Gautamshahi
Copy link
Author

Thanks for your reply. First of all, there are many test cases for MYSQL at https://github.com/RMLio/rml-test-cases/tree/master/test-cases what is the use of each test case?

Second, I started with test case https://github.com/RMLio/rml-test-cases/tree/master/test-cases/RMLTC0001b-MySQL

Why do we need resource..sql? What kind of query should it contain?

Again in the mapping.ttl file, rml:source <#DB_source>; is it referring to the DB_source as connection properties?
Then in the connection properties, where should I put jdbc jar file and d2rq:Database, what I replace here?

It will great if you can provide an example or instruction file.

Thank you for your time.

@Gautamshahi
Copy link
Author

@pheyvaer can you please provide a hint to resolve the issue?

@pheyvaer
Copy link
Contributor

The resource.sql needs to be loaded in your MySQL database that should be running locally. Then in <#DB_source> you fill in the parameters so that they match your local MySQL instance. The JDBC jar should be used by the RML processor. For example in the case of the RMLMapper it is include by default.

What tool are you using the execute the test cases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants