# HG changeset patch # User Chris Cannam # Date 1371311913 -3600 # Sat Jun 15 16:58:33 2013 +0100 # Node ID 236814e07bd07473958c1ff89103124536a0c3c8 # Parent 48d1cc9dd78d62f8132eeea72015180eea5fe517 Actually, I think we have to do percent encoding ourselves (QUrls converted to strings are de-encoded) diff --git a/dataquay/BasicStore.h b/dataquay/BasicStore.h --- a/dataquay/BasicStore.h +++ b/dataquay/BasicStore.h @@ -128,9 +128,8 @@ * exceptions. * * Note that the URL must be a URL, not just a filename - * (i.e. local files need the file: prefix, and spaces and the - * characters '<' or '>' must be percent encoded). The file URL - * will also become the base URI of the store. + * (i.e. local files need the file: prefix). The file URL will + * also become the base URI of the store. * * If format is specified, it will be taken as the RDF parse * format (e.g. ntriples). The set of supported format strings diff --git a/src/backend/BasicStoreSord.cpp b/src/backend/BasicStoreSord.cpp --- a/src/backend/BasicStoreSord.cpp +++ b/src/backend/BasicStoreSord.cpp @@ -967,7 +967,9 @@ BasicStore::load(QUrl url, QString format) { BasicStore *s = new BasicStore(); - s->setBaseUri(Uri(url)); + QString su = url.toString(); + Uri baseUri(su.replace(" ", "%20")); + s->setBaseUri(baseUri); // store is empty, ImportIgnoreDuplicates is faster s->import(url, ImportIgnoreDuplicates, format); return s;