Skip to content

Commit

Permalink
Merge pull request #1850 from OpenEnergyPlatform/feature-1849-ontolog…
Browse files Browse the repository at this point in the history
…y-overview-layout

Feature 1849 ontology overview layout
  • Loading branch information
jh-RLI authored Sep 20, 2024
2 parents 1c5dcc7 + 97b4f79 commit 9aacc19
Show file tree
Hide file tree
Showing 8 changed files with 443 additions and 258 deletions.
2 changes: 1 addition & 1 deletion base/static/css/bootstrap.min.css

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions oeo_ext/oeo_extended_store/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@
# index of LEOP is more performant of done form triple store
# reading from owl file can get time consuming

rdfdb = RDF_DATABASES["oeo_ext"]
oeo_ext_query_endpoint = "http://%(host)s:%(port)s/%(name)s/query" % rdfdb
oeo_ext_update_endpoint = "http://%(host)s:%(port)s/%(name)s/update" % rdfdb
# rdfdb = RDF_DATABASES["knowledge"]
# oeo_ext_query_endpoint = "http://%(host)s:%(port)s/%(name)s/query" % rdfdb
# oeo_ext_update_endpoint = "http://%(host)s:%(port)s/%(name)s/update" % rdfdb

sparql = SPARQLWrapper(oeo_ext_query_endpoint)
# sparql = SPARQLWrapper(oeo_ext_query_endpoint)

oeo_ext_store = sparqlstore.SPARQLUpdateStore()
# oeo_ext_store = sparqlstore.SPARQLUpdateStore()

oeo_ext_store.open((oeo_ext_query_endpoint, oeo_ext_update_endpoint))
oekb_oeo_ext = Graph(oeo_ext_store, identifier=default)
# oeo_ext_store.open((oeo_ext_query_endpoint, oeo_ext_update_endpoint))
# oekb_oeo_ext = Graph(oeo_ext_store, identifier=default)

# ---- import this in other modules
oeo_ext_with_namespaces = bind_all_namespaces(oekb_oeo_ext)
# # ---- import this in other modules
# oeo_ext_with_namespaces = bind_all_namespaces(oekb_oeo_ext)
20 changes: 10 additions & 10 deletions oeo_ext/oeo_extended_store/filters.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from rdflib import RDF, Literal # noqa
# from rdflib import RDF, Literal # noqa

from oeo_ext.oeo_extended_store import namespaces # noqa
from oeo_ext.oeo_extended_store.connection import oekb_oeo_ext
# from oeo_ext.oeo_extended_store import namespaces # noqa
# from oeo_ext.oeo_extended_store.connection import oekb_oeo_ext


# Use this to implement filters that help you retrieve specific information
# from the new oeo ext oekg
class OekgQuery:
def __init__(self):
self.kb = oekb_oeo_ext
# # Use this to implement filters that help you retrieve specific information
# # from the new oeo ext oekg
# class OekgQuery:
# def __init__(self):
# self.kb = oekb_oeo_ext

def implementMethods(self):
raise NotImplementedError
# def implementMethods(self):
# raise NotImplementedError
189 changes: 106 additions & 83 deletions ontology/templates/ontology/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,98 +41,121 @@ <h1 class="main-header__title">


{% block main-content-body %}

<h3>Open Energy Ontology</h3>
<p>The Open Energy Ontology (OEO) is a dynamic domain ontology for energy system modeling,
updated regularly following a release cycle. Access the latest version {{version}} <a href="https://openenergyplatform.org/ontology/oeo/">here</a>.</p>

<h3 id="domain-ontology-what-is-that">Domain ontology: What is that?</h3>
<p>An ontology is a structured collection of terms and their relationships, providing clear definitions and logical interpretation.
The OEO aims to create a common language for energy system modeling, bridging various disciplines.</p>

<h3 id="what-is-it-good-for">What is it good for?</h3>
<p><strong>Ontologies have diverse applications:</strong></p>
<ul>
<li><strong>Standardising Terminology:</strong> Provides a controlled vocabulary with clear definitions, disambiguating terms.</li>
<li><strong>Data Annotation and Integration:</strong> Enhances data integration, aggregation, and search functions.</li>
<li><strong>Templates for Data Capture:</strong> Ensures uniform and detailed reporting structures.</li>
<li><strong>Visualisation:</strong> Makes complex knowledge comprehensible through various visual formats.</li>
<li><strong>Text and Data Mining:</strong> Automates searches across resources, aiding discovery, data synthesis, and meta-analysis.</li>
</ul>

<h3 id="oeo-modules">Modules</h3>

<div hx-get="{% url 'partial-page-content' %}" hx-swap="outerHTML" hx-target="#content" hx-trigger="load" id="content">


</div>


<div id="loading-spinner" class="text-primary" role="status" style="display: none;" aria-hidden="true">
<p class="card-text placeholder-glow">
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
</p>

<div class="card" aria-hidden="true">
<div class="card-body">
<h5 class="card-title placeholder-glow">
<span class="placeholder col-6"></span>
</h5>
<p class="card-text placeholder-glow">
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
<div class="ontology">
<h2 class="ontology__heading">Open Energy Ontology</h2>
<p class="ontology__intro">The Open Energy Ontology (OEO) is a dynamic domain ontology for energy system modeling,
updated regularly following a release cycle.</p>
<p class="ontology__intro--secondary">Access the latest version {{version}} <a href="https://openenergyplatform.org/ontology/oeo/">here</a>.</p>

<h3 id="domain-ontology-what-is-that" class="ontology__subheading">Domain ontology: What is that?</h3>
<p class="ontology__paragraph">An ontology is a structured collection of terms and their relationships, providing clear definitions and logical interpretation.
The OEO aims to create a common language for energy system modeling, bridging various disciplines.</p>
<div class="ontology__features">
<div class="ontology__features-row">
<div class="ontology__feature">
<h4 class="ontology__feature-title">Standardising Terminology</h4>
<span>Provides a controlled vocabulary with clear definitions, disambiguating terms</span>
</div>
<div class="ontology__feature">
<h4 class="ontology__feature-title">Data Annotation and Integration</h4>
<span>Enhances data integration, aggregation, and search functions</span>
</div>
<div class="ontology__feature">
<h4 class="ontology__feature-title">Templates for Data Capture</h4>
<span>Ensures uniform and detailed reporting structures</span>
</div>
</div>
<div class="ontology__features-row">
<div class="ontology__feature">
<h4 class="ontology__feature-title">Visualisation</h4>
<span>Makes complex knowledge comprehensible through various visual formats</span>
</div>
<div class="ontology__feature">
<h4 class="ontology__feature-title">Text and Data Mining</h4>
<span>Automates searches across resources, aiding discovery, data synthesis, and meta-analysis</span>
</div>
</div>
</div>

<h3 id="oeo-modules" class="ontology__subheading">Modules</h3>

<div class="ontology__content" hx-get="{% url 'partial-page-content' %}" hx-swap="outerHTML" hx-target="#content" hx-trigger="load" id="content">


</div>


<div id="loading-spinner" class="text-primary" role="status" style="display: none;" aria-hidden="true">
<p class="card-text placeholder-glow">
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
</p>
</p>

<div class="card" aria-hidden="true">
<div class="card-body">
<h5 class="card-title placeholder-glow">
<span class="placeholder col-6"></span>
</h5>
<p class="card-text placeholder-glow">
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
<span class="placeholder col-7"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-4"></span>
<span class="placeholder col-6"></span>
<span class="placeholder col-8"></span>
</p>
</div>
</div>
</div>

<h3 class="ontology__subheading">OEO Extended (OEOX)</h3>
<p class="ontology__paragraph">To increase the usability of OEO and react to user requirements, we introduced a post-coordination extension to
OEO, the Open Energy Ontology Extended (OEOX). We created OEOX as an ontology for specific energy-
related terms with a high complexity that go beyond the level of detail of the standard OEO class hierarchy.
For further information you can have a look at the <a href="https://github.com/OpenEnergyPlatform/oeo-extended">GitHub page</a>.</p>

<h3 id="usage-beyond-the-open-energy-family-tools" class="ontology__subheading">Usage beyond the Open Energy Family tools</h3>
<p>The OEO is developed within the scope of the Open Energy Family but aims to serve the entire energy system modeling community.
We encourage its use in various contexts and use cases beyond its initial scope.</p>

<h3 id="where-and-how-can-i-contribute" class="ontology__subheading">Where and how can I contribute?</h3>
<p class="ontology__paragraph">We welcome everyone to contribute to OEO development, a community-driven project hosted on
GitHub. Explore our ontology course and have a look at our contribution guidelines.
If you have questions, reach out via the OEP contact form, and we'll connect you with the right person.</p>

<div class="ontology__links">
<a href="https://github.com/OpenEnergyPlatform/ontology" target="_blank"><i class="fas fa-external-link-alt"></i>GitHub</a>
<a href="https://openenergyplatform.github.io/academy/courses/05_ontology/">Ontology course</a>
<a href="https://github.com/OpenEnergyPlatform/ontology/blob/dev/CONTRIBUTING.md" target="_blank"><i class="fas fa-external-link-alt"></i>Contribution guidelines</a>
<a href="https://openenergyplatform.org/contact/">Contact form</a>
</div>

<div class="ontology__box">
<h3 id="further-information" class="ontology__subheading ontology__subheading--secondary">Further information</h3>
<p class="ontology__paragraph ontology__paragraph--secondary">OEO development began with the <a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201180818/1%22" target="_blank"><i class="fas fa-external-link-alt"></i>"SzenarienDB"</a>
project and is enhanced by <a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201186899/1%22" target="_blank"><i class="fas fa-external-link-alt"></i>"LOD_GEOSS"</a>,
<a href="https://www.enargus.de/pub/bscw.cgi/26?op=enargus.eps2&m=0&v=10&p=0&s=0&q=SEDOS" target="_blank"><i class="fas fa-external-link-alt"></i>"SEDOS"</a>,
<a href="https://www.enargus.de/pub/bscw.cgi/26?op=enargus.eps2&m=0&v=10&p=0&s=0&q=03EI1051C" target="_blank"><i class="fas fa-external-link-alt"></i>"Stadt-Land-Energie"</a> and
<a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201227101/1%22" target="_blank"><i class="fas fa-external-link-alt"></i>"SIROP"</a>.
The OEO was introduced in an open-access peer-reviewed paper: <a href="https://doi.org/10.1016/j.egyai.2021.100074" target="_blank"><i class="fas fa-external-link-alt"></i>Introducing the
Open Energy Ontology: Enhancing data interpretation and interfacing in energy systems analysis</a>.</p>

<p>The <a href="{% url 'oeo-s-c' %}">OEO steering committee</a> was established in autumn 2019.</p>
</div>
</div>

<h3>OEO Extended (OEOX)</h3>
<p>To increase the usability of OEO and react to user requirements, we introduced a post-coordination extension to
OEO, the Open Energy Ontology Extended (OEOX). We created OEOX as an ontology for specific energy-
related terms with a high complexity that go beyond the level of detail of the standard OEO class hierarchy.
For further information you can have a look at the <a href="https://github.com/OpenEnergyPlatform/oeo-extended">GitHub page</a>.</p>

<h3 id="usage-beyond-the-open-energy-family-tools">Usage beyond the Open Energy Family tools</h3>
<p>The OEO is developed within the scope of the Open Energy Family but aims to serve the entire energy system modeling community.
We encourage its use in various contexts and use cases beyond its initial scope.</p>

<h3 id="where-and-how-can-i-contribute">Where and how can I contribute?</h3>
<p>We welcome everyone to contribute to OEO development, a community-driven project hosted on
<a href="https://github.com/OpenEnergyPlatform/ontology">GitHub</a>.
Explore our <a href="https://openenergyplatform.github.io/academy/courses/05_ontology/">ontology course</a> and have a look at our
<a href="https://github.com/OpenEnergyPlatform/ontology/blob/dev/CONTRIBUTING.md">contribution guidelines</a>

If you have questions, reach out via the OEP <a href="https://openenergyplatform.org/contact/">contact form</a>,
and we'll connect you with the right person.</p>

<h5 id="further-information">Further information</h5>
<p>OEO development began with the <a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201180818/1%22">"SzenarienDB"</a>
project and is enhanced by <a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201186899/1%22">"LOD_GEOSS"</a>,
<a href="https://www.enargus.de/pub/bscw.cgi/26?op=enargus.eps2&m=0&v=10&p=0&s=0&q=SEDOS">"SEDOS"</a>,
<a href="https://www.enargus.de/pub/bscw.cgi/26?op=enargus.eps2&m=0&v=10&p=0&s=0&q=03EI1051C">"Stadt-Land-Energie"</a> and
<a href="https://www.enargus.de/pub/bscw.cgi/?op=enargus.eps2&q=%2201227101/1%22">"SIROP"</a>.
The OEO was introduced in an open-access peer-reviewed paper: <a href="https://doi.org/10.1016/j.egyai.2021.100074">Introducing the
Open Energy Ontology: Enhancing data interpretation and interfacing in energy systems analysis</a>.</p>

<p>The <a href="{% url 'oeo-s-c' %}">OEO steering committee</a> was established in autumn 2019.</p>

{% compress js %}
<script src="{% static 'ontology/htmx.js' %}"></script>
{% endcompress %}
Expand Down
Loading

0 comments on commit 9aacc19

Please sign in to comment.