Virtuoso & Skosmos
This recipe presents steps to publish a code-lists using the SKOS ontology in Virtuoso and Skosmos. Virtuoso is an open source Triple store providing a SPARQL endpoint. Skosmos is an open source web application providing a human friendly browse interface for skos thesauri stored in a triple store.
This is a follow up recipe of the extending code-lists recipe.
In this recipe we’re going to reproduce the publication of the GLOSIS - Procedures
Codelist, maintained at github, initiated by the former SieuSoil project with contributions from the EJP Soil project.
Load SKOS RDF to virtuoso
We’re using a docker compose orchestration to deploy virtuoso and skosmos locally. Copy the contents of the virtuoso folder into an empty folder. Navigate to the folder with command line and run:
docker compose up
(ctrl-c to stop the containers)
- Open http://localhost:8890/conductor and login using user: dba, password: dba (the password is configured as part of the docker compose)
- On the
linked data
tab, selectQuad store upload
. - Select
Resource URL
and paste the url of the ttl file from github (or upload a local file) - Select
create graph
and enter as graph urihttp://w3id.org/glosis/model/procedure#
, clickupload
.
- Navigate to http://localhost:8890/sparql/ and run a SPARQL query like the one below, the glosis concepts should be returned.
SELECT DISTINCT ?Concept
FROM <http://w3id.org/glosis/model/procedure#>
WHERE {[] a ?Concept}
LIMIT 20
Setup Skosmos
The file config-docker.ttl contains the configuration of SKOSMOS. The file is pre-configured for the procedures codelist, but you have to update it if you want to include alternative code lists.
After an update of the config file, you need to restart the docker compose.
- Open http://localhost:8080 and evaluate if the codelist is properly loaded.
In case of errors, logging of skosmos occurs in the browser log panel
, click anywhere in the page and select inspect
from the context menu. Then open the console
tab and refresh the page.
In case you are insterested to update the look and feel of the skosmos instance, notice the skosmos:customCss
property on the config file. This property can link to a css file having custom css. Include the css file via a volume mount in the docker compose.
Read more
Virtuoso
Skosmos