-
Hi folks, I would appreciate for some advises converting code sophia version 0.6.2 to 0.8.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
SimpleTerm is probably your best bet, indeed -- its closest equivalent in 0.6.2 was MownTerm.
In the meantime, you will need to manually convert SimpleTerm::LiteralDatatype(
(if b { "true" } else { "false" }).into(),
xsd::bool.iri().unwrap(),
) |
Beta Was this translation helpful? Give feedback.
-
Yeah, thanks. I am converting bool like: |
Beta Was this translation helpful? Give feedback.
SimpleTerm is probably your best bet, indeed -- its closest equivalent in 0.6.2 was MownTerm.
If you need cheap cloning, you might also want to consider RcTerm or ArcTerm.
&str
now implements the Term directly, so you can pass it directly, so you can pass "jwt" directly to the insert method, no need for as_literal.As a consequence, for
String
, you can also pass the…