This commit is contained in:
2026-08-24 21:44:23 -04:00
parent 70fca07790
commit 78243f53f5
3 changed files with 85 additions and 93 deletions
+4 -4
View File
@@ -6,12 +6,12 @@ use spargebra::algebra::{Expression, Function, GraphPattern};
use spargebra::term::{NamedNode, NamedNodePattern, TermPattern, TriplePattern, Variable};
use tracing::debug;
pub const ENGLISH_PRIMARY: &str = "en";
pub static ENGLISH_TAG: LazyLock<LanguageTag<String>> = LazyLock::new(|| {
LanguageTag::parse("en".to_string()).unwrap()
});
pub static ENGLISH_OR_UNTAGGED: LazyLock<LanguageCondition> = LazyLock::new(|| {
LanguageCondition::ExactMatchOrUntagged(
LanguageTag::parse(ENGLISH_PRIMARY.to_string()).unwrap(),
)
LanguageCondition::ExactMatchOrUntagged(ENGLISH_TAG.clone())
});
#[derive(Clone, Debug)]