AD2000X commited on
Commit
b0e836b
·
verified ·
1 Parent(s): e790587

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -246,6 +246,13 @@ def run_entity_exploration():
246
 
247
  # Debug output: Confirm loaded entities
248
  st.write("Loaded entities:", entities)
 
 
 
 
 
 
 
249
 
250
  # Create a dropdown selection box
251
  selected_entity = st.selectbox("Select Entity", entities)
 
246
 
247
  # Debug output: Confirm loaded entities
248
  st.write("Loaded entities:", entities)
249
+
250
+ st.write(\"Ontology classes:\", ontology_manager.get_classes())
251
+
252
+ # 額外 debug: 顯示所有節點類型與 class_type
253
+ for node, attr in ontology_manager.graph.nodes(data=True):
254
+ if attr.get(\"type\") == \"instance\":
255
+ st.write(\"Found instance:\", node, \"of class:\", attr.get(\"class_type\"))
256
 
257
  # Create a dropdown selection box
258
  selected_entity = st.selectbox("Select Entity", entities)