.
This commit is contained in:
@@ -2,7 +2,6 @@ use rayon::iter::ParallelIterator;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use oxigraph::model::{Graph, NamedNode, TermRef, NamedOrBlankNodeRef, NamedNodeRef};
|
||||
use rayon::iter::IntoParallelRefIterator;
|
||||
use url::Url;
|
||||
use gl_search::{Field, OwnedValue, Schema};
|
||||
use crate::class::Class;
|
||||
use crate::{helpers, vocab, CurieHelper};
|
||||
@@ -90,7 +89,7 @@ impl<'a> Indexer<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
let results = entities_and_types.par_iter()
|
||||
entities_and_types.par_iter()
|
||||
.filter_map(|(subject, class)| {
|
||||
Class::try_from_named_node(*class).and_then(|class| {
|
||||
match class {
|
||||
@@ -114,9 +113,7 @@ impl<'a> Indexer<'a> {
|
||||
document
|
||||
})
|
||||
})
|
||||
}).collect();
|
||||
|
||||
results
|
||||
}).collect()
|
||||
}
|
||||
|
||||
pub fn ontology(&self, entities: HashMap<NamedNode, ResourceDescription>) -> Vec<HashMap<Field, OwnedValue>> {
|
||||
|
||||
Reference in New Issue
Block a user