ontop: Ontology-Based Data Access for relational databases https://ontop.inf.unibz.it/
531
Ontop is a platform to query relational databases as Virtual RDF Graphs using SPARQL. It's fast and is packed with features.
ENV parametersONTOP_JDBC_NAME - name of the DB connectionONTOP_JDBC_URL - JDBC URL for the data sourceONTOP_JDBC_USER - JDBC usernameONTOP_JDBC_PASSWORD - JDBC passwordONTOP_JDBC_DRIVER - JDBC driver classnameONTOP_JDBC_PROPERTIES - JDBC property file nameONTOP_MAPPING - ontop mapping file nameONTOP_ONTOLOGY - ontop ontology file nameONTOP_BASE_IRI - ontop mapping base URIONTOP_REPOSITORY_ID - RDF4J Workbench repository IDONTOP_REPOSITORY_TITLE - RDF4J Workbench repository titleCheck vendor-specific JDBC details here: https://github.com/ontop/ontop/wiki/ObdalibPluginJDBC
The following JDBC connectors are built-in:
Run the ./build-image.sh.
Example with MySQL DB:
docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=obda -e MYSQL_USER=ontop_user -e MYSQL_PASSWORD=ontop_pwd -e MYSQL_DATABASE=ontop_db -p 3306:3306 mysql:5.7.23
docker run --name=ontop -e ONTOP_JDBC_NAME=test -e ONTOP_JDBC_URL=jdbc:mysql://172.17.0.2:3306/ontop_db -e ONTOP_JDBC_DRIVER=com.mysql.cj.jdbc.Driver -e ONTOP_JDBC_USER=ontop_user -e ONTOP_JDBC_PASSWORD=ontop_pwd -e ONTOP_BASE_IRI=http://test/ -e ONTOP_REPOSITORY_ID=mysql -e ONTOP_REPOSITORY_TITLE=MySQL -p 8080:8080 atomgraph/ontop
Note that 172.17.0.2 is an address of mysql container in the internal Docker network. It can be obtained by performing docker inspect mysql and copying the value under NetworkSettings > IPAddress.
SPARQL endpoint over ontop_db will be accessible under http://localhost:8080/rdf4j-workbench/repositories/${ONTOP_REPOSITORY_ID}, so in this case http://localhost:8080/rdf4j-workbench/repositories/mysql.
Content type
Image
Digest
Size
322 MB
Last updated
about 8 years ago
docker pull atomgraph/ontop