comparison 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
comparison
equal deleted inserted replaced
480:3ffce691c9bf 481:a82645e788fc
52 // first result that has a value for it 52 // first result that has a value for it
53 static Value singleResultQuery(QString fromUri, 53 static Value singleResultQuery(QString fromUri,
54 QString query, 54 QString query,
55 QString binding); 55 QString binding);
56 56
57 enum ImplementationPreference { 57 enum BackEndPreference {
58 UseDirectParser, // rasqal (default because it's simpler if seldom used) 58 AutoSelectBackEnd, // pick based on likely speed of available storage
59 UseDatastore // redland 59 DirectParserBackEnd, // use rasqal (simpler if seldom used)
60 DatastoreBackEnd, // use redland (faster if version not too old)
60 }; 61 };
61 static void setImplementationPreference(ImplementationPreference); 62 /**
63 * Select the preferred query back end. This should be called
64 * before any queries are made. The default is AutoSelectBackEnd.
65 */
66 static void setBackEnd(BackEndPreference);
62 67
63 protected: 68 protected:
64 class Impl; 69 class Impl;
65 Impl *m_impl; 70 Impl *m_impl;
66 }; 71 };