Spaces:
Running
Running
Update app.py
Browse files
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)
|