RML mappings to generate the ERA Knowledge Graph. The mappings are defined using the YARRRML syntax. See the latest changes in CHANGELOG.md.
The mappings can be run in two different ways:
This application have been dockerized to facilitate its execution. Follow the next steps:
-
Make sure to have a recent version of Docker installed.
-
Set the environment variables in the
conf.env
file. -
Build the docker image:
docker build -t era-data-mappings ./
-
Run the mapping process:
docker run --volume=/path/to/output/folder:/opt/era-data-mappings/knowledge-graph --env-file=conf.env era-data-mappings
Replace
/path/to/output/folder
in the--volume
parameter for the path of the folder where you expect to store the resulting Knowledge Graph.
To directly execute these mappings you need to install first:
Then follow the next steps:
-
Replace the DB connection parameters for RINF and ERATV in each of the YARRRML mapping files that needs them. For example in
operational-points.yml
only the connection parameters for RINF are needed:connection: access: &host ${RINF_HOST} # e.g. //127.0.0.1:1434 username: ${RINF_USER} # e.g. SA password: ${RINF_PWD} # e.g. your_password
-
Once all the mapping files have been properly configured, you can start the mapping process with the following command:
./map-turtle.sh x.x.x
Replace
x.x.x
for the version number of your Knowledge Graph -
The resulting Linked Data files will be stored in the local
knowledge-graph/
folder and will be merged and compressed into a single file, but individualTurtle
files per mapping file will also be available.
- ERA vocabulary which provides the formal definitions for the concepts, entities and properties used in the Knowledge Graph. The vocabulary is defined as an RDF ontology following the W3C standards and recommendations.
- ERA Reference Data that includes SKOS-based taxonomies related to the railway domain.
- SPARQL query interface for the ERA Knowledge Graph. ERA's triples are contained within the named graph
https://linked.ec-dataplatform.eu/era
.
We welcome issues and enhancement requests that follow these guidelines:
- Issues opened in this repository should concern the ERA Knowledge Graph data. For issues related to the ERA vocabulary, please refer to the vocabulary repository.
- Please label your issues using the corresponding version tag. For example, using the label
v0.9.0
.
For contributions we follow the "fork-and-pull" Git workflow:
- Fork this repository on GitHub.
- Clone the project in your local machine.
- Commit the changes to your own branch.
- Push your changes back up to your own fork.
- Submit a Pull request to the dev branch so we can review your changes.
NOTE: Make sure to merge the latest "upstream" version before submitting a pull request.