.
This commit is contained in:
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user