Skip to main content
Version: Next

Config

The config or configuration directory contains the configuration the following API endpoints for the in-memory Fuseki RDF triplestore:

  • query
  • update
  • ping

An example of a config directory correctly formatted for OML Vision can be seen here

sparqlConfig.json

sparqlConfig.json

Create a src/vision/config/sparqlConfig.json file (case-sensitive)

The src/vision/config/sparqlConfig.json file is responsible for specifying the query and update API endpoints.

It is formatted as a JSON data structure.

An example of what this looks like is seen below with the source code found here

queryEndpoint

REQUIRED
queryEndpoint: string

This string defines the API query endpoint of the in-memory RDF triplestore.

Fuseki

This endpoint can usually be found within the .fuseki.ttl file under the sparql service. An example of how to specify this endpoint can be found here

updateEndpoint

REQUIRED
updateEndpoint: string

This string defines the API update endpoint of the in-memory RDF triplestore.

Fuseki

This endpoint can usually be found within the .fuseki.ttl file under the update service. An example of how to specify this endpoint can be found here

pingEndpoint

REQUIRED
pingEndpoint: string

This string defines the API ping endpoint of the in-memory RDF triplestore.

Fuseki

You can refer to refer to the Fuseki HTTP Server Protocol for an example of an in-memory RDF triplestore with a pingable endpoint.

Triplestore Status

Ping Status

The ping status of the RDF triplestore is shown at all times in OML Vision in the RDF Triplestore Status sidebar window. It indicates whether the triplestore is running or not.

RDF Triplestore On Icon = On Ping

RDF Triplestore Off Icon = Off Ping

Load Status

The load status of the RDF triplestore is shown at all times in OML Vision in the RDF Triplestore Status sidebar window. It indicates whether data has been loaded into the triplestore or not.

RDF Triplestore Loaded Icon = Loaded

RDF Triplestore Not Loaded Icon = Not Loaded

Check if triplestore is loaded button

The concept of operations for checking the loaded status of a triplestore is

  1. Start the server (usually with a gradle task). Refer to gradle section here. DO NOT LOAD DATA UNTIL STEP 4.
  2. Run the Check if triplestore is loaded button
  3. If the RDF Triplestore Loaded Icon = Loaded then you have verified that data is loaded into the triplestore. You may skip the next steps.
  4. If RDF Triplestore Not Loaded Icon = Not Loaded then you must load data into the triplestore (usually with a gradle task). Refer to gradle section here.
  5. Afterwards the RDF Triplestore Loaded Icon = Loaded. You have verified that data is loaded into the triplestore.

An example of how the RDF Triplestore Status sidebar window looks like is shown below.

RDF Triplestore Status