Repository: OpenEnergyPlatform/oeplatform

Issue:
Tooltips for sectors, sector divisions and technologies to refer to the corresponding OEO classes
## Description of the issue

Currently, in the scenario bundles page, there is no information about the sectors, sector divisions, and technologies.

## Ideas of solution

A tooltip displaying the OEO definition and a link to the corresponding ontology page will assist the user in choosing sectors, sector divisions, and technologies.

## Workflow checklist
- [x] I am aware of the workflow in [CONTRIBUTING.md](https://github.com/OpenEnergyPlatform/oeplatform/blob/develop/CONTRIBUTING.md)



Discussion:

Resolving patch:
diff --git a/factsheet/views.py b/factsheet/views.py
--- a/factsheet/views.py
+++ b/factsheet/views.py
@@ -56,11 +56,11 @@
 
 oeo_owl = get_ontology(Ontology_URI_STR).load()
 
-# query_endpoint = "http://localhost:3030/ds/query"
-# update_endpoint = "http://localhost:3030/ds/update"
+#query_endpoint = "http://localhost:3030/ds/query"
+#update_endpoint = "http://localhost:3030/ds/update"
 
-# query_endpoint = 'https://toekb.iks.cs.ovgu.de:3443/oekg/query'
-# update_endpoint = 'https://toekb.iks.cs.ovgu.de:3443/oekg/update'
+#query_endpoint = 'https://toekb.iks.cs.ovgu.de:3443/oekg/query'
+#update_endpoint = 'https://toekb.iks.cs.ovgu.de:3443/oekg/update'
 
 query_endpoint = "https://oekb.iks.cs.ovgu.de:3443/oekg_main/query"
 update_endpoint = "https://oekb.iks.cs.ovgu.de:3443/oekg_main/update"
@@ -888,7 +888,7 @@ def update_factsheet(request, *args, **kwargs):
             old_state=in_first.serialize(format="json-ld"),
             new_state=in_second.serialize(format="json-ld"),
         )
-        OEKG_Modifications_instance.save()
+        #OEKG_Modifications_instance.save()
 
         response = JsonResponse(
             "factsheet updated!", safe=False, content_type="application/json"
@@ -1567,13 +1567,14 @@ def get_all_sub_classes(cls, visited=None):
 
     childCount = len(list(cls.subclasses()))
     subclasses = cls.subclasses()
-    value = 10 if childCount > 5 else 500
+
 
     dict = {
         "name": cls.label.first(),
         "label": cls.label.first(),
         "value": cls.label.first(),
         "iri": cls.iri,
+        "definition": oeo.value(OEO[str(cls).split('.')[1]], OBO.IAO_0000115)
     }
 
     if childCount > 0:
@@ -1585,7 +1586,7 @@ def get_all_sub_classes(cls, visited=None):
     return dict
 
 
-@login_required
+#@login_required
 def populate_factsheets_elements(request, *args, **kwargs):
     scenario_class = oeo_owl.search_one(
         iri="http://openenergy-platform.org/ontology/oeo/OEO_00000364"
@@ -1622,12 +1623,14 @@ def populate_factsheets_elements(request, *args, **kwargs):
         )
         for s, p, o in oeo.triples((None, OEO.OEO_00000504, OEO[sd])):
             sector_label = oeo.value(s, RDFS.label)
+            sector_difinition = oeo.value(s, OBO.IAO_0000115)
             sectors_list.append(
                 {
                     "iri": s,
                     "label": sector_label,
                     "value": sector_label,
                     "sector_division": sector_division_URI,
+                    "sector_difinition": sector_difinition
                 }
             )
 


Test patch: