Re: [Tracker] Result of GetMetadata DBUS Method
- From: Nikolaus Rath <Nikolaus rath org>
- To: tracker-list gnome org
- Subject: Re: [Tracker] Result of GetMetadata DBUS Method
- Date: Sat, 24 Sep 2011 18:50:06 -0400
Adrien Bustany <abustany-rDKQcyrBJuzYtjvyW6yDsg public gmane org> writes:
In tracker 0.8.17, an example result of the GetMetadata DBUS
method is
Âa nfo:PaginatedTextDocument ;
    nie:title "SV Meldung" ;
    nco:creator [ a nco:Contact ;
    nco:fullname "nikratio"] ;
    nie:contentCreated "2011-08-10T20:12:38Z" ;
    nao:hasTag [ a nao:Tag ;
    nao:prefLabel "()"] ;
    dc:format "application/pdf" ;
    nie:description "()" ;
    nfo:pageCount 1 ;
    nie:plainTextContent "blablabla" .
With tracker 0.10.21, however, the same document now gives
Âa nfo:PaginatedTextDocument ;
    nie:title "SV Meldung" ;
    nco:creator [ a nco:Contact ;
    nco:fullname "nikratio"] ;
    nie:contentCreated "2011-08-10T20:12:38Z" ;
    dc:format "application/pdf" ;
    nie:description "()" ;
    nao:hasTag ?tag1 ;
    nfo:pageCount 1 ;
    nie:plainTextContent "blablabla" .
} } WHERE { {
?tag1 a nao:Tag ; nao:prefLabel "()" .
I don't know enough about the syntax used here, so I won't claim
that it's wrong. However, rdflib fails to parse this and thus
breaks my application.
Can someone tell me if this is a bug in tracker or in rdflib?
Could you share the error message that rdflib gives you?
Sure, it's at http://code.google.com/p/rdflib/issues/detail?id=190
Most likely rdflib doesn't like the fact that the WHERE of the INSERT
is not closed?
rdflib actually tries to parse this as Turtle RDF. But unless I'm
reading the specs wrong, Turtle does not have a WHERE, so am I right to
assume that GetMetadata has been changed to no longer return valid
Turtle RDF, but partial SPARQL statements?
If so, this makes it very hard to use GetMetadata() for anything else
but tracker. Is there any way to get something that's easier to parse
from tracker-extract?
Thanks,
-Nikolaus
--
ÂTime flies like an arrow, fruit flies like a Banana.Â
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]