From 550df42217c806c82d561214b3525652ddc12863970eecc88918f5bb23d6a86f Mon Sep 17 00:00:00 2001 From: Alex Wied <543423+centromere@users.noreply.github.com> Date: Tue, 9 Jun 2026 20:14:46 -0400 Subject: [PATCH] . --- publish/src/app.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/publish/src/app.rs b/publish/src/app.rs index 413405a..589df19 100644 --- a/publish/src/app.rs +++ b/publish/src/app.rs @@ -320,7 +320,15 @@ impl Publisher { if let Some(search_state) = &mut self.search_state { let type_ = match search_state.action { SearchResultClickAction::Predicate(_) => self.ontology.catalog_id(&rdf::PROPERTY.into_owned()), - SearchResultClickAction::Object(_) => self.ontology.catalog_id(&rdfs::CLASS.into_owned()), + SearchResultClickAction::Object(key) => { + self.document + .dataset() + .quads + .get(key) + .and_then(|quad| if quad.predicate == rdf::TYPE { + self.ontology.catalog_id(&rdfs::CLASS.into_owned()) + } else { None }) + }, SearchResultClickAction::URLInput => None, };