This application is part of the National Architecture for Digital Services programme (Kansallinen palveluarkkitehtuuri, also known as KaPA) by The Ministry of Finance of Finland and its Service Views (Palvelunäkymät) project.
A microservice that provides ontology related services and refreshes ontology related indexes in search engine by sending the concepts to be indexed to certain JMS topic.
Ontology service provides services for microservices handling content and tags (for example content production, ptv, etc... )
Behind the scenes, this service uses Apache Jena Fuseki, served as Docker image sevi-fuseki, for storing the data.
The concepts provided by this service are divided into different concept schemes from FINTO ontologies. In practice, the schemes provided are:
You can make queries to the sevi-ontology-service based with semantic concept URIs and concept schemes.
Use sevi-search-service for getting URIs for plain text labels.
See the provided REST API in: /src/main/java/fi/vm/kapa/sevi/ontology/resource
Configuring the mappings to Elasticsearch - Do a HTTP PUT to:
http://localhost:9089/sevi-ontology-service/ontology/v1/mappings
Indexing all the concepts to sevi-search-service (takes a while) - Do a HTTP PUT to:
http://localhost:9089/sevi-ontology-service/ontology/v1/index?indexAllConcepts=false
Return all the JUPO concepts - Do a HTTP GET to:
http://localhost:9089/sevi-ontology-service/ontology/v1/concepts/jupo
When the microservice is running, you can get the Swagger REST API documentation from: http://localhost:9089/sevi-ontology-service/swagger/index.html
- Java 8+
- Maven 3.3+
- Docker
- sevi-config-public - Default configuration for development use
- sevi-fuseki - Build and run sevi-fuseki Docker image
Install the module into an adjanced directory with sevi-config.
Then use: mvn jetty:run
$ mvn clean package docker:build
$ docker run -p 9089:9089 -p 19089:19089 -v /path/to/sevi-config-public:/config --name sevi-ontology-service sevi-ontology-service -a --spring.config.location=/config/application.yml,/config/sevi-ontology-service.yml
.. or in sevi-docker-compose-public run
$ docker-compose up ontologyservice
##Testing
Running the tests:
mvn verify
Please notify kapa@vrk.fi for any defects, deficiencies and security issues if discovered.