Semantic Framework

Open-Source Code Repository links #

The release packages of Semantic Framework are available on a dedicated Open-Source GitHub
repositories:

Public Docker Repository links #

The relevant Docker images are available on dedicated Public Docker Hub repositories:

Installation and Configuration Guidelines #

The installation of the Semantic Framework is achieved using the docker-compose.

Software pre-requirements #

The following software must be pre-installed on the Virtual Machine:

  • Docker version (>=2.3.0.3)
  • Docker engine (>=19.03.08)
  • docker-compose (>=1.25.5)
  • curl (>=7.75)
  • unzip (>=6.0)

Installation #

The following commands will install a version of Semantic Framework software:

curl -LJO https://github.com/DHS-
SemanticFramework/SemanticFramework/archive/refs/tags/<SF-VERSION>.zip

unzip <SF-VERSION>.zip

cd <SF-VERSION>

In order to start the docker-compose, it is then necessary to configure properly the following files

  • config_nl/keycloak_configuration.json
  • config_sf.json/configuration.json
  • config_sf/keycloak_configuration.json

Please refer to Installation and Configuration Manual for details about the configuration.

Finally, the following command pulls the docker images from the Public Docker Repository and starts the docker-compose:

nohup docker-compose up &

Knowledge Base population #

The following request pre-populates the Knowledge Base with location-related information, and it indicates a successful installation of SF.

Method: HTTP POST

{{SERVICE-ROOT-URI}}/SemanticFramework/api/population

Please note that this procedure should run only once, during the installation of the Semantic Framework.

Configuration #

Please refer to Installation and Configuration Manual for details about the configuration.

Please find it here attached.

API User Guide #

The Semantic Framework exposes a REST API. Through this interface, the Framework allows to identify products useful for analysing earthquake events over a geographic location in a defined time span.

Semantic query using City, Country syntax #

Method: HTTP POST

{{SERVICE-ROOT-URI}}/SemanticFramework/api/retrieve

Body:

Content Type = application/json

{    
        "text": "earthquake located in Troulloi, Cyprus in 2021 01 with 
magnitude greater than 5.1",

    "page": "1"

}

Powered by BetterDocs

Leave a Comment

Your email address will not be published. Required fields are marked *