As found in the docs I tried to create a xsd:date literal by running:
let lit_date = "2023-11-15" * xsd::date;
But I am getting this error from the compiler:
mismatched types
expected struct sophia::sophia_api::term::LanguageTag<&str>
found struct sophia::sophia_api::ns::NsTerm<'static>
I also tried to do this from within the sophia_rs project (by cloning it, and doing this datatype casting somewhere in the tests), and it did not throw the error.
I am not sure if there is something missing in the code (maybe a trait that needs to be public?), or if I am missing something in my code (like an import?)
As found in the docs I tried to create a
xsd:date
literal by running:But I am getting this error from the compiler:
I also tried to do this from within the
sophia_rs
project (by cloning it, and doing this datatype casting somewhere in the tests), and it did not throw the error.I am not sure if there is something missing in the code (maybe a trait that needs to be public?), or if I am missing something in my code (like an import?)