You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`-cp 'rmlmapper.jar:ojdbc8-12.2.0.1.jar'`: Put the jar of the RMLMapper and JDBC driver in the classpath.
174
-
-`be.ugent.rml.cli.Main`: `be.ugent.rml.cli.Main` is the entry point of the RMLMapper.
175
-
-`-m rules.rml.ttl`: Use the RML rules in the file `rules.rml`.ttl.
176
-
The exact same options as the ones mentioned earlier are supported.
177
-
178
158
### Library
179
159
180
160
An example of how you can use the RMLMapper as an external library can be found
@@ -199,9 +179,10 @@ The RMLMapper is executed in the `/data` folder in the Docker container.
199
179
200
180
### Including functions
201
181
202
-
There are two ways to include (new) functions within the RML Mapper
182
+
There are three ways to include (new) functions within the RML Mapper
203
183
* dynamic loading: you add links to java files or jar files, and those files are loaded dynamically at runtime
204
184
* preloading: you register functionality via code, and you need to rebuild the mapper to use that functionality
185
+
* add as dependency
205
186
206
187
Registration of functions is done using a Turtle file, which you can find in `src/main/resources/functions.ttl`
207
188
@@ -253,6 +234,14 @@ This overrides the dynamic loading.
253
234
An example of how you can use Preload a custom function can be found
254
235
at [./src/test/java/be/ugent/rml/readme/ReadmeFunctionTest.java](https://github.com/RMLio/rmlmapper-java/blob/master/src/test/java/be/ugent/rml/readme/ReadmeFunctionTest.java)
255
236
237
+
#### Adding as dependency
238
+
239
+
This is most interesting if you use RMLMapper as a library in your own project.
240
+
Just add the dependency to the function library you want to use in your project.
241
+
242
+
You can also add a function library as a Maven dependency in `pom.xml` or RMLMapper.
243
+
You'll have to rebuild RMLMapper to use it.
244
+
256
245
### Generating metadata
257
246
258
247
Conform to how it is described in the scientific paper [1],
0 commit comments