This docker container provides the following services to allow querying and browsing the ontologies and the vocabulary of TranslationCoherence:
- Virtuoso as SPARQL endpoint;
- LODE for visualising ontologies as HTML pages;
- LodView for browsing ontology entities as well as vocabulary entities.
To download this container, simply clone the whole repository using the command:
git clone https://github.com/Lostefra/TranslationCoherence
The base folder of the container can be reached with
cd TranslationCoherence
cd docker_container
The project relies on Docker: before executing the following commands make sure that
- Docker is installed (you can download the correct release here). Please note that both Docker engine and Docker Compose should be installed.
- the Docker daemon is running (see this link).
To build the containers type the following command in the terminal having the root of the container as base folder:
sudo docker-compose build
To run the containers type the following command in the terminal having the root of the container as base folder:
sudo docker-compose up
Once the containers are up and assuming that localhost is the reference host, users can access:
- the SPARQL endpoint at http://localhost:8890/sparql;
- LODE at http://localhost:9090/lode (not directly accessible: instructions are provided below);
- LodView at http://localhost:8080/lodview.
The following is an example of a SPARQL SELECT query that returns all the ObjectProperties defined in the vocabulary of TranslationCoherence.
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?p
WHERE {
GRAPH<https://w3id.org/stlab/ke/amiala/>{
?p a owl:ObjectProperty
}
}
It is possible to execute the query also through this link.
The resource http://localhost:8080/lodview/translation_coherence.owl
can be used to visualise the HTML page of the vocabulary ontology, while http://localhost:8080/lodview/translation_coherence/Expression can be used to visualise the HTML page of the class Expression, defined within the vocabulary.
The resource http://localhost:8080/webvowl/#iri=https://raw.githubusercontent.com/Lostefra/TranslationCoherence/main/ontology/translation_coherence.owl can be used to visualise the vocabulary with the VOWL notation (using the WebVOWL service).
The resource http://localhost:9090/lode/extract?url=https://raw.githubusercontent.com/Lostefra/TranslationCoherence/main/ontology/translation_coherence.owl can be used to visualise the documentation about the vocabulary ontology (as an HTML page).