This directory contains definition about the FUI StoreConnect's ontology query server.
- The StoreConnect's ontology query server is based on the Strabon spatiotemporal RDF store. So before to go, please read documentation carefully.
- The StoreConnect's ontology query server is based on the StoreConnect's Strabon Docker image and the Mdillon's Alpine Postgis Docker image, and can be executed through the dedicated Docker composition file. So before to go, you have to know:
| File/Directory | Description |
|---|---|
docker-compose.yml |
The Docker composition file of the StoreConnect's ontology query server |
./conf/ |
Associated configuration file to the Docker composition |
The official StoreConnect's ontology query server instance can be reached here.
The following SPARQL endpoints are available:
| SPARQL Endpoint | Description | URL |
|---|---|---|
| Query | SPARQL 1.1 Query Language HTTP endpoint | http://apiontologie.westeurope.cloudapp.azure.com:8890/strabon/Query |
| Update | SPARQL 1.1 Update HTTP endpoint | http://apiontologie.westeurope.cloudapp.azure.com:8890/strabon/Update |
| Store | To massively load data | http://apiontologie.westeurope.cloudapp.azure.com:8890/strabon/Store |
Docker composition is based on two services storeconnect-postgis (PostgreSQL with Postgis extension) and storeconnect-strabon (Strabon) which later is dependent to the former. However, the current version of Strabon service does no wait until Postgis is correctly up.
Thus, to correctly install the server you need to:
- Run the
storeconnect-postgisservice and wait until its initialization process is done by executing:$ docker-compose up -d storeconnect-postgis && docker-compose logs -f - Then run the
storeconnect-strabonservice and wait until its initialization process is done$ docker-compose up -d storeconnect-strabon && docker-compose logs -f
Note: The -d option starts composition's containers in background mode. Use the --help option for more details
After that, instances can be reached at:
<docker host>:8890/strabonfor Strabon<docker host>:1111for PostgreSQL with Postgis extension
When composition is running, associated storeconnect-strabon and storeconnect-postgis services read configuration from:
- docker-compose.yml's storeconnect-strabon command and ./conf/strabon.env for the
storeconnect-strabonservice - ./conf/postgis.env for the
storeconnect-postgisservice.
By default, configuration fits for a standard machine (8GB RAM capacity and SSD disk type). Refer to this if you want to customize your instance with a more appropriate configuration.
When StoreConnect's ontology query server is ran for the first time, the server is empty and no ontology is loaded. To load an ontology:
$ curl <docker host>:8090/strabon/Store \
--user update:changeit \
--header 'Accept: application/rdf+xml' \
--data 'graph=http://storeconnect/' \
--data 'format=<ontology format>' \
--data 'fromurl=true' \
--data 'url=<ontology URL>'Where:
<docker host>is the associated Docker host (localhostby default if using a native Docker installation)<ontology format>and<ontology URL>is respectively the format and the URL to the StoreConnect's ontology. For instance:<ontology format>=RDF/XML<ontology URL>=https://raw.githubusercontent.com/StoreConnect/storeconnect-ontologies-api/master/ontologies/storeconnect-main/storeconnect-main.rdf
Important: Note the use of the graph parameter that defines the graph name where store the ontology. Always http://storeconnect/ (with the trailing /).
- Access to the StoreConnect server's web form by browsing to
<docker host>:8090/strabon, where<docker host>is the associated Docker host (localhostby default if using a native Docker installation) - Access to the
Explore/Modify operations/Storemenu - Type
http://storeconnect/in theGraphinput (note the necessary trailing/) - Choose the associated format of your ontology (for instance
RDF/XML) - Copy/Paste your ontology in the
Direct inputfield or precise the URI to your ontology in theURI Inputfield - Following the way you define your ontology, click on
Store InputorStore from URI. - Type your credentials in the appeared popup (
update/changeitby default)
By default, composition is using a Docker volume to persist data. Volume is automatically created at the first execution and be mounted to the relative ./data/ directory.
When composition is running, the storeconnect-virtuoso service is up and exposes the following ports:
| Port | Description |
|---|---|
| 1111 | StoreConnect's ontology query server's SQL access |
| 8090 | StoreConnect's ontology query server's HTTP access |