Skip to content
Osma Suominen edited this page May 26, 2021 · 38 revisions

How to publish a new vocabulary with Skosmos, or update an existing one

Introduction

Vocabularies are managed in the RDF store accessed by Skosmos via SPARQL. The vocabularies to show in Skosmos are configured in the file `config.ttl` which is an RDF file in Turtle syntax. See Configuration for details.

Managing vocabulary data

Providing vocabularies as SKOS

The vocabulary needs to be expressed using SKOS in order to publish it via Skosmos. It is recommended that you preprocess your vocabularies using the Skosify tool. This will ensure, e.g., that the broader/narrower relations work in both directions and related relationships are symmetric. Also Skosify will report and try to correct lots of potential problems in SKOS vocabularies. It may also be used to convert non-SKOS RDF data into SKOS. See the Skosify wiki for details.

See the Data model page for more information about what is and isn't supported by Skosmos.

Putting vocabularies into the RDF store

How to get your vocabulary into the RDF store depends on the store you use. Many RDF stores nowadays support the SPARQL HTTP Graph Store protocol. If you use Jena Fuseki, you can use the SPARQL over HTTP tools such as s-put that come with the Fuseki distribution.

Example of adding a vocabulary into a specific named graph in Fuseki via s-put:

s-put http://localhost:3030/ds http://example/my-vocabulary vocabulary.ttl

Clone this wiki locally