.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use std::borrow::Borrow;
|
||||
use crate::error;
|
||||
use crate::rdf::vocab::gl;
|
||||
use oxigraph::model::vocab::{rdf, rdfs, xsd};
|
||||
@@ -9,7 +8,8 @@ use std::fmt::Display;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::LazyLock;
|
||||
use oxigraph::store::Store;
|
||||
use crate::rdf::conversion;
|
||||
use tracing::debug_span;
|
||||
use crate::rdf::{conversion, materialize};
|
||||
use crate::rdf::language::LanguageCondition;
|
||||
|
||||
static PREFIXES: LazyLock<BTreeMap<String, String>> = LazyLock::new(|| {
|
||||
@@ -60,7 +60,7 @@ impl OntologyBuilder {
|
||||
|
||||
pub fn build(self) -> error::Result<Ontology> {
|
||||
let mut store = if let Some(path) = self.path {
|
||||
Store::open(path)
|
||||
Store::open_read_only(path)
|
||||
} else {
|
||||
Store::new()
|
||||
}?;
|
||||
|
||||
Reference in New Issue
Block a user