On Fri, 2011-08-05 at 12:34 +0530, suparno.b...@wipro.com wrote: > That’s kool. > Hey man can you help me with where to find the source code of SPAQL ??
SPARQL isn't a software but a specification that has multiple implementations. Tracker has its own SPARQL parser and implementation, but there are others too. Tracker's can be found in libtracker-data If you mean QSparql then: http://maemo.gitorious.org/maemo-af/qsparql > Is there any more dependencies?? > > Thnks > Suparno > > -----Original Message----- > From: Adrien Bustany [mailto:abust...@gnome.org] > Sent: Friday, August 05, 2011 12:28 PM > To: Suparno Bose (WT01 - Manufacturing & Hi Tech) > Cc: tracker-list@gnome.org > Subject: RE: [Tracker] Tracker-WARNING **: file is encrypted or is not a > database > > If you can compile a Qt app with your tools, you should be able to compile > QSparql as well :) > > On Fri, 5 Aug 2011 11:49:41 +0530, suparno.b...@wipro.com wrote: > > Adrien. > > Actually am working on Automotive linux platform . We can only use > > the Host cross platform tools provided To me only. So no qsparql is > > provided but only tracker-sparql . > > > > I am also fond of Qt only. Is there any way I can compile the qsparql > > library with my application only? > > > > Thanks > > Suparno > > > > -----Original Message----- > > From: Adrien Bustany [mailto:abust...@gnome.org] > > Sent: Friday, August 05, 2011 11:43 AM > > To: Suparno Bose (WT01 - Manufacturing & Hi Tech) > > Cc: tracker-list@gnome.org > > Subject: Re: [Tracker] Tracker-WARNING **: file is encrypted or is not > > a database > > > > Note: don't forget to click "Reply to all" so that your answer goes > > back to the list too. CC-ing back the list > > > > The SPARQL query you pasted is correct, so not sure why you would get > > this error. Can you see a file named 38-nmm.ontology in > > $prefix/share/tracker/ontologies ? I think that query worked for you > > if ran with the tracker-sparql tool, so it should work all the same if > > ran using libtracker-sparql. > > > > I might be a bit stubborn, but QSparql works all fine on ARM, both > > Harmattan and MeeGo use it. I'm insisting a bit because: > > 1. The asynchronous models of GLib and Qt are a bit different, QSparql > > abstracts that nicely. > > 2. QSparql will make your memory management more c++-y, with objects > > on > > stack freed automatically etc. The example code you pasted presents > > various memory management errors (leaks). > > 3. QSparql allow you do deal with bindings, so that you don't have to > > escape the data you pass to your queries, and other niceties. > > > > Compiling/packaging QSparql is easy, and it does not take much space. > > If you want to make it minimal, you can enable only the driver you > > need (most likely QTRACKER_DIRECT), and maybe even compile it in > > statically (iirc). > > > > Cheers > > > > Adrien > > > > Le Fri, 5 Aug 2011 11:28:23 +0530, > > <suparno.b...@wipro.com> a écrit : > > > >> Hello Adrien, > >> > >> Thanks for you concern. I am developing on an arm > >> platform where qsparql is not available. > >> > >> > >> > >> I am also getting an error as > >> > >> > >> > >> Error Message 1.44: syntax error, use of undefined prefix `nmm' > >> > >> Can you enlighten me on this error, why we get this error?? > >> > >> > >> > >> Thnks > >> > >> Suparno > >> > >> > >> > >> > >> > >> -----Original Message----- > >> From: Adrien Bustany [mailto:abust...@gnome.org] > >> Sent: Friday, August 05, 2011 11:20 AM > >> To: Suparno Bose (WT01 - Manufacturing & Hi Tech) > >> Cc: mar...@lanedo.com; tracker-list@gnome.org > >> Subject: Re: [Tracker] Tracker-WARNING **: file is encrypted or is > >> not a database > >> > >> > >> > >> Hello Suparno! > >> > >> > >> > >> Did you have a look at QSparql? It'll give you access to Tracker in > >> a > >> much more Qt-ish way. In any case, you can have a look at the > >> examples > >> for either library, that might help you get started: > >> > >> libtracker-sparql (not so simple one): > >> > >> > >> http://git.gnome.org/browse/tracker/tree/examples/libtracker-sparql/as > >> ync-connection.c > >> > >> <http://git.gnome.org/browse/tracker/tree/examples/libtracker-sparql/a > >> sync-connection.c> > >> > >> qsparql: > >> > >> > >> https://maemo.gitorious.org/maemo-af/qsparql/blobs/master/examples/spa > >> rql/simple/main.cpp > >> > >> <https://maemo.gitorious.org/maemo-af/qsparql/blobs/master/examples/sp > >> arql/simple/main.cpp> > >> > >> > >> > >> In your case, not sure why tracker_sparql_connection_get would > >> fail... > >> > >> What platform are you developing on? Are there special restrictions > >> to > >> the DB access? > >> > >> > >> > >> Cheers > >> > >> > >> > >> Adrien > >> > >> > >> > >> Le Fri, 5 Aug 2011 10:05:28 +0530, > >> > >> <suparno.b...@wipro.com <mailto:suparno.b...@wipro.com> > a écrit : > >> > >> > >> > >> > Hi Martyn, > >> > >> > > >> > >> > Here is what am doing inside my application : > >> > >> > > >> > >> > > >> > >> > > >> > >> > g_type_init(); > >> > >> > > >> > >> > GError *error = NULL; > >> > >> > > >> > >> > m_connection = tracker_sparql_connection_get_direct(&error); > >> > >> > > >> > >> > qDebug() << error->message; > >> > >> > > >> > >> > if(m_connection != NULL) > >> > >> > > >> > >> > { > >> > >> > > >> > >> > gchar *query; > >> > >> > > >> > >> > query = g_strdup_printf ("SELECT ?url WHERE { ?song a > >> > >> > nmm:MusicPiece ; nie:isStoredAs ?as . ?as nie:url ?url . }"); > >> > >> > > >> > >> > if(0 != query) > >> > >> > > >> > >> > m_cursor = tracker_sparql_connection_query (m_connection, > >> > >> > query, NULL, &error); > >> > >> > > >> > >> > else > >> > >> > > >> > >> > printf("Query is null \n"); > >> > >> > > >> > >> > > >> > >> > > >> > >> > if(0 != error) > >> > >> > > >> > >> > { > >> > >> > > >> > >> > g_print("Error Message %s\n", error->message); > >> > >> > > >> > >> > //qDebug() << error->message; > >> > >> > > >> > >> > g_free (query); > >> > >> > > >> > >> > } > >> > >> > > >> > >> > else > >> > >> > > >> > >> > printf("No error returned from the SPARQL\n"); > >> > >> > > >> > >> > > >> > >> > > >> > >> > if(0 != m_cursor) > >> > >> > > >> > >> > print_cursor (m_cursor, "No classes were found to match > >> > search > >> > >> > term", "Classes", TRUE, l_list); > >> > >> > > >> > >> > else > >> > >> > > >> > >> > printf("cursor is NULL \n"); > >> > >> > > >> > >> > } > >> > >> > > >> > >> > else > >> > >> > > >> > >> > { > >> > >> > > >> > >> > qDebug() << "connection not establisheds"; > >> > >> > > >> > >> > } > >> > >> > > >> > >> > > >> > >> > > >> > >> > -----Original Message----- > >> > >> > From: Martyn Russell [mailto:mar...@lanedo.com] > >> > >> > Sent: Thursday, August 04, 2011 6:53 PM > >> > >> > To: Suparno Bose (WT01 - Manufacturing & Hi Tech) > >> > >> > Cc: tracker-list@gnome.org > >> > >> > Subject: Re: [Tracker] Tracker-WARNING **: file is encrypted or is > >> > not > >> > >> > a database > >> > >> > > >> > >> > > >> > >> > > >> > >> > On 04/08/11 13:31, suparno.b...@wipro.com > >> > <mailto:suparno.b...@wipro.com> > >> > >> > <mailto:suparno.b...@wipro.com <mailto:suparno.b...@wipro.com> > > >> > wrote: > >> > >> > > >> > >> > > Attaching the file > >> > >> > > >> > >> > > >> > >> > > >> > >> > Thanks, > >> > >> > > >> > >> > > >> > >> > > >> > >> > > -----Original Message----- > >> > >> > > >> > >> > > From: Suparno Bose (WT01 - Manufacturing& Hi Tech) > >> > >> > > >> > >> > > Sent: Thursday, August 04, 2011 6:00 PM > >> > >> > > >> > >> > > To: 'Martyn Russell' > >> > >> > > >> > >> > > Cc: tracker-list@gnome.org <mailto:tracker-list@gnome.org> > >> > >> > > >> > >> > > Subject: RE: [Tracker] Tracker-WARNING **: file is encrypted or > >> is > >> > >> > > not > >> > >> > > >> > >> > > >> > >> > > a database > >> > >> > > >> > >> > > > >> > >> > > >> > >> > > Sorry Martyn , > >> > >> > > >> > >> > > I did some mistake. Please find my new log attached. > >> > >> > > >> > >> > > This time it worked fine from the command line but not from the > >> > >> > > >> > >> > > application . > >> > >> > > >> > >> > > >> > >> > > >> > >> > I see, so how are you doing it form the application then? The > >> > command > >> > >> > line tools are there to help you sanity check what you're > >> > application > >> > >> > might be doing. > >> > >> > > >> > >> > > >> > >> > > >> > >> > -- > >> > >> > > >> > >> > Regards, > >> > >> > > >> > >> > Martyn > >> > >> > > >> > >> > > >> > >> > > >> > >> > Founder and CEO of Lanedo GmbH. > >> > >> > > >> > >> > >> > > _______________________________________________ > tracker-list mailing list > tracker-list@gnome.org > http://mail.gnome.org/mailman/listinfo/tracker-list -- Philip Van Hoof freelance software developer Codeminded BVBA - http://codeminded.be _______________________________________________ tracker-list mailing list tracker-list@gnome.org http://mail.gnome.org/mailman/listinfo/tracker-list