Skip to content

Index

OEKG web based access#

In this document we describe how you can access the contents of the OEKG via Web based Requests using HTTP

The SPARQL endpoint for OEKG#

https://openenergyplatform.org/api/v0/oekg/sparql/

Here is an example of how to query the Open Energy Knowledge Graph (OEKG) using SPARQL using python and the requests library for http requests.

import requests

sparql_endpoint = "https://openenergy-platform.org/api/v0/oekg/sparql/"
payload = {
    "query": """SELECT ?s ?p ?o
                WHERE {
                  ?s ?p ?o
                }"""
    "format": "json"
}

r = requests.post(url=sparql_endpoint, json=payload)
print(r.json())

Open API#

Below you see a draft version of the OpenAPI-based. It is the documentation for all HTTP-API endpoints and in the future it can be used to test out the API.

API Documentation