This commit is contained in:
Alex Wied
2026-07-02 14:09:54 -04:00
parent 038afc4645
commit b7b52e3c09
6 changed files with 54 additions and 49 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ use ldp::traverse::Traverse;
use ldp::{RdfSource, RdfSourceUpdateResponse, ResourceRequestBuilder, SerializationOptions};
use oxigraph::io::RdfFormat;
use oxigraph::model::vocab::{rdf, rdfs};
use oxigraph::model::{BaseDirection, Dataset, NamedNode, NamedNodeRef, Quad, Term, TermRef};
use oxigraph::model::{BaseDirection, Dataset, NamedNode, NamedNodeRef, Quad, Term};
use tracing::{debug, debug_span, error, trace};
use crate::rdf::language;
use crate::widget::iri_input::iri_input;
@@ -105,11 +105,11 @@ impl Publisher {
});
let index = SearchIndex::builder()
//.with_path("/home/alex/.local/share/org.graphofliberty.desktop/index")
.with_path("/home/alex/.local/share/org.graphofliberty.desktop/index")
.build()
.expect("Failed to build search index");
debug_span!("Ontology Indexing").in_scope(|| {
/*debug_span!("Ontology Indexing").in_scope(|| {
let mut counter = 0;
let mut writer = index.writer().expect("Failed to build index writer");
let index = ontology.index(&*language::ENGLISH_OR_UNTAGGED).expect("Unable to generate index of entities");
@@ -127,7 +127,7 @@ impl Publisher {
}
writer.commit().expect("Failed to commit changes to search index");
debug!("Added {counter} documents to search index");
});
});*/
let mut abbreviated_datatypes = ontology
.datatypes()