[Bug 284553] Searching for filetypes yields extra Nepomuk items

Lamarque V. Souza lamarque at kde.org
Wed Jan 4 13:29:51 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=284553


Lamarque V. Souza <lamarque at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lamarque at kde.org




--- Comment #5 from Lamarque V. Souza <lamarque kde org>  2012-01-04 13:29:50 ---
(In reply to comment #4)
> (In reply to comment #3)
> > Created an attachment (id=67421)
 --> (http://bugs.kde.org/attachment.cgi?id=67421) [details] [details]
> > Filter matches we do not want
> > 
> > Add some "and not isOfType" terms to the nepomuk query to filter resources we
> > do not want.
> 
> Please get rid of that propertyUrl method. It is ugly. We have namespaces which
> hide the URL strings for exactly that purpose: Nepomuk::Vocabulary::NIE and
> friends. Just include <Nepomuk/Vocabulary/NIE> and so on.

I am having difficult to understand how to use NIE. There are just functions in
that namespace and none of them accept parameters. How can I get the url of the
resources I am not interested in if I cannot pass any parameter?

> Also instead of adding a type term for files use FileQuery which is optimized
> for file queries.

I am not searching for files in my second patch. In the second patch I am
creating a query passing the resources I am not interested in and retrieve
everything else. There are non-file resources that are interesting for us, like
bookmarks.

In my notebook nepomuksearch does not return those "extra items". I am
wondering if there is something wrong somewhere else that makes those "extra
items" to appear.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Active mailing list