[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-active
Subject:    [Bug 284553] Searching for filetypes yields extra Nepomuk items
From:       Lamarque V. Souza <lamarque () kde ! org>
Date:       2012-01-04 13:29:51
Message-ID: E1RiQud-00018h-6g () bugs ! kde ! org
[Download RAW message or body]

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lamarque@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.
_______________________________________________
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic