diff options
-rw-r--r-- | src/RDFWorld.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RDFWorld.cpp b/src/RDFWorld.cpp index 9b1daf2..6ee1ec2 100644 --- a/src/RDFWorld.cpp +++ b/src/RDFWorld.cpp @@ -63,7 +63,8 @@ World::add_prefix(const string& prefix, const string& uri) string World::expand_uri(const string& uri) const { - assert(uri.find(":") != string::npos); + if (uri.find(":") == string::npos) + return uri; for (Namespaces::const_iterator i = _prefixes.begin(); i != _prefixes.end(); ++i) if (uri.substr(0, i->first.length()+1) == i->first + ":") |