Skip to content

Simulating a Direct Mapping with an R2RML mapping

Notifications You must be signed in to change notification settings

chrdebru/direct-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct Mapping Implementation via R2RML

The following tool generates an R2RML mapping that generates RDF according to the rules of a direct mapping. This tool allows you to either:

  • Generate a mapping that you can subsequently use with an R2RML processor, or
  • Generate and immediately execute the mapping with the this R2RML processor.

Building and using the code

First, ensure that you have installed the following R2RML processor on your machine using mvn clean install.

To build the project and copy its dependencies, execute

$ mvn package
$ mvn dependency:copy-dependencies

To generate a mapping, you can execute:

$ java -jar directmapping.jar \
	--baseIRI http://www.example.org/my-db/ \
	--connectionURL jdbc:mysql://localhost:3306/directmappingtest \
	--user dmtest \
	--password dmtest \
	--mappingFile ./mapping.ttl

To execute a direct mapping, you can execute:

$ java -jar directmapping.jar \
	--baseIRI http://www.example.org/my-db/ \
	--connectionURL jdbc:mysql://localhost:3306/directmappingtest \
	--user dmtest \
	--password dmtest \
	--outputFile ./output.ttl

When you execute the direct mapping without specifying a mapping file, the tool will create a mapping file in your machine's temp folder. You can specify both a mapping and and output file. The format of both files is TURTLE. Consult $ java -jar directmapping.jar -h for more information on the parameters.

License

This implementation of R2RML is written by Christophe Debruyne and released under the MIT license.

About

Simulating a Direct Mapping with an R2RML mapping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages