Spaces:
Sleeping
Sleeping
Update dashboard.py
Browse files- dashboard.py +17 -16
dashboard.py
CHANGED
@@ -36,6 +36,10 @@ hv.extension('bokeh')
|
|
36 |
dna_folder = './data'
|
37 |
|
38 |
|
|
|
|
|
|
|
|
|
39 |
## AECO topic over time html file:
|
40 |
AECO_topics_over_time_file_path = os.path.join(dna_folder, 'optimized_merged_AECO_topics_over_time_2D.html')
|
41 |
|
@@ -283,15 +287,18 @@ def generate_radio_buttons(value):
|
|
283 |
|
284 |
# https://tabler-icons.io/
|
285 |
button1 = pn.widgets.Button(name="Introduction", button_type="warning", icon="file-info", styles={"width": "100%"})
|
286 |
-
button2 = pn.widgets.Button(name="
|
287 |
-
button3 = pn.widgets.Button(name="Top Entity Types", button_type="warning", icon="chart-bar", styles={"width": "100%"})
|
288 |
-
button4 = pn.widgets.Button(name="Top Key Entities", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
289 |
-
button5 = pn.widgets.Button(name="Entity Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
290 |
-
|
|
|
291 |
|
292 |
|
293 |
region1 = pn.widgets.RadioButtonGroup(name='### Select News Region', options=regions)
|
294 |
|
|
|
|
|
295 |
|
296 |
# Initial RadioButtonGroup
|
297 |
radio_buttons_regions = pn.widgets.RadioButtonGroup(options=regions,value='eu',name='Select region')
|
@@ -332,7 +339,7 @@ def show_page(page_key):
|
|
332 |
|
333 |
button1.on_click(lambda event: show_page("Page1"))
|
334 |
button2.on_click(lambda event: show_page("Page2"))
|
335 |
-
|
336 |
#button4.on_click(lambda event: show_page("Page4"))
|
337 |
#button5.on_click(lambda event: show_page("Page5"))
|
338 |
button6.on_click(lambda event: show_page("Page6"))
|
@@ -353,15 +360,9 @@ In the AECO Macro Topics panel we present the 6-month-sampled time series depict
|
|
353 |
for the 16 macro-topics automatically detected by an optimized BerTopic model and ppst-processed for manual topic merging.
|
354 |
|
355 |
|
356 |
-
### 2.
|
357 |
-
The Top Entity Types bar plots in the dashboard show the predominant DBpedia-inherited entity types within the graph for triples tagged with Europe, US, and EU-US region codes via their article support.
|
358 |
-
|
359 |
-
## 3. Top Key Entities
|
360 |
-
The Top Key Entities plots track the occurrence of several key entities per year, where occurrence means the entity is either the Subject or Object of an extracted triple in the KG.
|
361 |
|
362 |
-
|
363 |
-
Entity Chord Diagrams represent the most frequently connected entity pairs within the KG through chord illustrations, serving as both Subjects and Objects of predicative triples.
|
364 |
-
The size of the chords corresponds to the support of the depicted relations.
|
365 |
""", width=800), align="center")
|
366 |
|
367 |
def CreatePage2():
|
@@ -378,7 +379,7 @@ def CreatePage2():
|
|
378 |
|
379 |
def CreatePage3():
|
380 |
return pn.Column(
|
381 |
-
|
382 |
pn.bind(create_bar_charts, region1),
|
383 |
align="center",
|
384 |
)
|
@@ -411,7 +412,7 @@ def CreatePage6():
|
|
411 |
|
412 |
mapping = {
|
413 |
"Page1": CreatePage1(),
|
414 |
-
"Page2": CreatePage2(),
|
415 |
#"Page3": CreatePage3(),
|
416 |
#"Page4": CreatePage4(),
|
417 |
#"Page5": CreatePage5(),
|
|
|
36 |
dna_folder = './data'
|
37 |
|
38 |
|
39 |
+
macro_topics = ["Energy-Efficient Building Design for Thermal Comfort and Sustainability","Indoor Air Quality and Energy Efficiency in Low-Energy Houses","Urban Planning and Development in China\'s Cities", "Design Thinking and Sustainable Product Development", "Smart Cities and Urban Computing", "Urban Resilience and Water Management","Renewable Energy Systems: Solar PV & Building Applications","Exploring the Intersection of Traditional Heritage and Modern Steel Architecture in Historical Buildings","Green Building Assessment and Design","Landscape Design, Planning, and Research: Integrating Cultural, Ecological, and Rural Perspectives", "Noise and Acoustic Design in Urban Development","Sustainable Building Materials: Wood & 3D Printing Innovations","BIM in AEC: Trends, Challenges, and Opportunities","Urban Food Systems: Community Development and Social Sustainability in Cities","Innovative Bridge Design and Construction: Trends and Case Studies", "Cavity Flow and Heat Transfer"]
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
## AECO topic over time html file:
|
44 |
AECO_topics_over_time_file_path = os.path.join(dna_folder, 'optimized_merged_AECO_topics_over_time_2D.html')
|
45 |
|
|
|
287 |
|
288 |
# https://tabler-icons.io/
|
289 |
button1 = pn.widgets.Button(name="Introduction", button_type="warning", icon="file-info", styles={"width": "100%"})
|
290 |
+
button2 = pn.widgets.Button(name="AECO Macro Topics", button_type="warning", icon="chart-histogram", styles={"width": "100%"})
|
291 |
+
#button3 = pn.widgets.Button(name="Top Entity Types", button_type="warning", icon="chart-bar", styles={"width": "100%"})
|
292 |
+
#button4 = pn.widgets.Button(name="Top Key Entities", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
293 |
+
#button5 = pn.widgets.Button(name="Entity Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
294 |
+
button3 = pn.widgets.Button(name="Research Collaboration Networks: Institutes", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
295 |
+
button4 = pn.widgets.Button(name="Research Collaboration Networks: Authors", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
296 |
|
297 |
|
298 |
region1 = pn.widgets.RadioButtonGroup(name='### Select News Region', options=regions)
|
299 |
|
300 |
+
macro_topics_button = pn.widgets.RadioButtonGroup(name='### Select Macro Topic', value='Energy-Efficient Building Design for Thermal Comfort and Sustainability', options=macro_topics_button)
|
301 |
+
|
302 |
|
303 |
# Initial RadioButtonGroup
|
304 |
radio_buttons_regions = pn.widgets.RadioButtonGroup(options=regions,value='eu',name='Select region')
|
|
|
339 |
|
340 |
button1.on_click(lambda event: show_page("Page1"))
|
341 |
button2.on_click(lambda event: show_page("Page2"))
|
342 |
+
button3.on_click(lambda event: show_page("Page3"))
|
343 |
#button4.on_click(lambda event: show_page("Page4"))
|
344 |
#button5.on_click(lambda event: show_page("Page5"))
|
345 |
button6.on_click(lambda event: show_page("Page6"))
|
|
|
360 |
for the 16 macro-topics automatically detected by an optimized BerTopic model and ppst-processed for manual topic merging.
|
361 |
|
362 |
|
363 |
+
### 2. Research Collaboration Networks: Institutes
|
|
|
|
|
|
|
|
|
364 |
|
365 |
+
### 3. Research Collaboration Networks: Authors
|
|
|
|
|
366 |
""", width=800), align="center")
|
367 |
|
368 |
def CreatePage2():
|
|
|
379 |
|
380 |
def CreatePage3():
|
381 |
return pn.Column(
|
382 |
+
macro_topics_button,
|
383 |
pn.bind(create_bar_charts, region1),
|
384 |
align="center",
|
385 |
)
|
|
|
412 |
|
413 |
mapping = {
|
414 |
"Page1": CreatePage1(),
|
415 |
+
#"Page2": CreatePage2(),
|
416 |
#"Page3": CreatePage3(),
|
417 |
#"Page4": CreatePage4(),
|
418 |
#"Page5": CreatePage5(),
|