Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.37 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.37 KB

OSLO Air proof of concept

Demonstrates how Air Quality data from Luftdaten can be described with the OSLO application profile for Air Quality and exposed with the Linked Data Event Stream (LDES) specification.

Install

git clone git@github.com:linkedtimeseries/oslo_air_poc.git
cd oslo_air_poc
python src/app.py

Open http://localhost:5000/oslo to see Luftdaten observations published with LDES and described with the OSLO Application Profile Air Quality

Open http://localhost:5000/smart_data_models for Luftdaten observations using normalized Smart Data Models, and http://localhost:5000/smart_data_models_kv for its keyValues representation.

Open http://localhost:5000/json_ld_star for Luftdaten observations using the property graph model RDF* in JSON-LD format.

Configure

Adapt the src/config.toml file:

  • the Luftdaten API to fetch, for example by changing the country code in the query parameter.
  • the polling interval
  • the base URI for the generated identifiers

Docker

A Docker file is provided:

docker build -t server .
docker run -p 5000:80 server

Or use the docker-compose file:

docker build -t server .
docker-compose up