Closed KonradHoeffner closed 7 months ago
Thanks for reporting this. This is indeed a bug; Namespace::get
produces an inconsistent SimpleIri
when called with an empty str
. Sorry about that.
A workaround consists in replacing:
let iri = my_namespace.get("")?;
with
let iri = SimpleIri::new_unchecked(&my_namespace, None);
I'm in the middle of a big refactoring, in which this bug should be fixed.
(FYI, I just edited the workaround, which was containing a typo)
I'm in the middle of a big refactoring, in which this bug should be fixed.
this is indeed now fixed
Let's say I have a knowledge base under the namespace http://example.com/ and I use the URL equal to that namespace to denote meta information about the knowledge base, for example
<http://example.com/> rdfs:label "this is an example knowledge base"@en.
.However, using such a URI causes Sophia to panic:
Code
Backtrace