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

DOC: why is sources files not a param on the cli? #166

Open
pvgenuchten opened this issue May 25, 2022 · 1 comment
Open

DOC: why is sources files not a param on the cli? #166

pvgenuchten opened this issue May 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@pvgenuchten
Copy link

This is typically a newbee question, but improving docs will help next generation of newbee's.
I was struggling with the fact that i couldn't understand the syntax of the cli, that it didn't have a sources(path) parameter
Until i realised that the mappingfile itself has references to the sources files. My suggestion is to dedicate a paragraph to this on the cli-help

On the other hand, would-it be interesting to have an optional parameter -sources, which would override the sources-parameters in the mapping file. a scenario is that you have multiple sets of files (sharing a model) and you want to run the mapper on each of them with a script. challenging off course is how to map a file to a mapping

@bjdmeest
Copy link
Collaborator

Thanks for the issue! The general idea is that all mapping configuration is part of the RML mapping, to make it self-contained. However, as RMLMapper-java supports multiple mapping inputs, you could configure a first mapping without reference to the actual source, and add a second mapping that just links your first mapping to a specific source, I gave an example at #161 (comment). Please let us know if that helps! I will keep this issue open to remember us to improve the documentation ;).

@bjdmeest bjdmeest added the enhancement New feature or request label May 30, 2022
@bjdmeest bjdmeest changed the title why is sources files not a param on the cli? DOC: why is sources files not a param on the cli? May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants