Skip to content

ontopic-vkg/odh-web-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON-LD Web Api for the Open Data Hub (ODH).

This project is a JSON-LD web api for for the Open Data Hub (ODH) displaying data in JSON-LD format from a SPARQL endpoint using schema.org standard.

Table of contents

Usage

Prerequisites

Docker environment

For the project a Docker environment is already prepared and ready to use with all necessary prerequisites.

Installation

Install Docker locally on your machine.

Build and run docker

Before start working you have to build the Docker image:

docker build -t ontopic-web-api/json-ld .

The you can run the image:

docker run -t -i -p 9090:9090 --name odh-api ontopic-web-api/json-ld

Local deployment

  1. Build and run the Docker

  2. Test the Web API

Examples:

Parameters

type

Main type to transform

  • Required
  • Currently available: only accommodation
  • Example: type=accommodation

Id

ID of the data to transform

  • Required
  • Example: Id=70043B17DAE33F1EFCDA24D4BB4C1F72

endpoint

Absolute url of the SPARQL endpoint

  • Default value: https://sparql.opendatahub.bz.it/sparql
  • Example: endpoint=http://host.docker.internal:8080/sparql

language

Output Language

  • Default value: en
  • Example: language=de

idtoshow

Url to show as main @id

  • If not provided, the id of ODH API call is taken
  • Example: idtoshow=http://noi.example.org/23

imageurltoshow

image url to include in the Json-LD

  • If not provided, the image URL from the VKG is taken
  • Example: imageurltoshow=http://noi.example.org/images/image23.jpg

showid

Show the @id property in the Json-LD

  • Default value: true
  • Example: showid=false

Information

Support

For support, please contact info@opendatahub.bz.it.

Contributing

If you'd like to contribute, please follow the following instructions:

  • Fork the repository.

  • Checkout a topic branch from the development branch.

  • Make sure the tests are passing.

  • Create a pull request against the development branch.

A more detailed description can be found here: https://github.com/noi-techpark/documentation/blob/master/contributors.md.

Documentation

More documentation can be found at https://opendatahub.readthedocs.io/en/latest/index.html.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published