Skip to main content

replace_lexical_value

Function replace_lexical_value 

Source
pub fn replace_lexical_value(
    lexical: &str,
    lang: Option<&str>,
    datatype: Option<&str>,
    pattern: &Regex,
    replacement: &str,
) -> LexicalLiteral
Expand description

Replace the lexical form via regex, preserving language tag or datatype IRI.