Vocabulary definition for the European Union Agency for Railways
Vocabulary definition for the European Union Agency for Railways. The vocabulary documentation is built using the Widoco toolset.
Online documentation for this vocabulary is available at https://data-interop.era.europa.eu/era-vocabulary
This application has been dockerized to facilitate its deployment. We use a multi-stage approach to build a container that publishes a build of this Web application via a NGINX instance.
To deploy this container follow these steps:
Make sure to have a recent version of Docker installed.
Build the Docker image:
docker build -t era-vocabulary ./
Start the application:
docker run -p ${PORT}:80 era-vocabulary
Replace ${PORT}
for the TCP port where you want to run the application. Once the container is running you can access these resources:
http://localhost:${PORT}/era-vocabulary/index-en.html
.http://localhost:${PORT}/era-vocabulary/era-skos
.To directly build this application you need to install first:
Then follow the next steps:
Clone this repository:
git clone https://github.com/julianrojas87/era-vocabulary.git
Normally the latest built version of the Widoco documentation is already available within the repository in the public
folder. If you want to deploy this version then skip to step 4, otherwise proceed to delete all the files and folders in public/
:
cd public
rm -rf *
Now continue to the next step.
Generate the Widoco documentation:
./generate-docs.sh
The resulting sources will be placed in the public/doc
folder.
Publish the Web page. In this example we use Node.js’s npx
utility and http-server
for this, but you may choose to publish the static files otherwise (e.g. directly via NGINX).
cd public/doc
npx http-server --cors -p ${PORT}
Replace ${PORT}
for the TCP port where you want to run the application. Once the application is running you may access the following resources:
http://localhost:${PORT}/index-en.html
.http://localhost:${PORT}/era-skos.ttl
.We welcome issues and enhancement requests that follow these guidelines:
v0.9.0
.For contributions we follow the “fork-and-pull” Git workflow:
NOTE: Make sure to merge the latest “upstream” version before submitting a pull request.