diff rdf/SimpleSPARQLQuery.h @ 481:a82645e788fc

* Auto-select RDF datastore/parsing backend; use trees datastore if available * Make CachedFile remember whether a file has already been successfully located locally (avoiding system call out to look at filesystem)
author Chris Cannam
date Fri, 14 Nov 2008 10:10:05 +0000
parents 3ffce691c9bf
children 82ab61fa9223
line wrap: on
line diff
--- a/rdf/SimpleSPARQLQuery.h	Thu Nov 13 14:23:23 2008 +0000
+++ b/rdf/SimpleSPARQLQuery.h	Fri Nov 14 10:10:05 2008 +0000
@@ -54,11 +54,16 @@
                                    QString query,
                                    QString binding);
 
-    enum ImplementationPreference {
-        UseDirectParser, // rasqal (default because it's simpler if seldom used)
-        UseDatastore     // redland
+    enum BackEndPreference {
+        AutoSelectBackEnd,   // pick based on likely speed of available storage
+        DirectParserBackEnd, // use rasqal (simpler if seldom used)
+        DatastoreBackEnd,    // use redland (faster if version not too old)
     };
-    static void setImplementationPreference(ImplementationPreference);
+    /**
+     * Select the preferred query back end.  This should be called
+     * before any queries are made.  The default is AutoSelectBackEnd.
+     */
+    static void setBackEnd(BackEndPreference);
 
 protected:
     class Impl;