[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/scribo/plugins/pimo
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-11-22 15:19:55
Message-ID: 20101122151955.A7D59AC8A2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1199741 by trueg:
Build the tree from everything that has a nao:prefLabel
M +2 -3 pimotextmatchplugin.cpp
--- trunk/playground/base/nepomuk-kde/scribo/plugins/pimo/pimotextmatchplugin.cpp \
#1199740:1199741 @@ -103,10 +103,9 @@
{
if(!m_tokenTree) {
m_tokenTree = new TokenTree();
- // populatre tree
+ // populatre tree with all resources that have a nao:prefLabel - urgh, this \
could be big! Nepomuk::Query::Query query(
- Nepomuk::Query::ResourceTypeTerm( \
Nepomuk::Vocabulary::PIMO::Thing() ) ||
- Nepomuk::Query::ResourceTypeTerm( \
Soprano::Vocabulary::NAO::Tag() ) + \
Nepomuk::Query::ComparisonTerm( Soprano::Vocabulary::NAO::prefLabel(), \
Nepomuk::Query::Term()) );
query.addRequestProperty(Nepomuk::Query::Query::RequestProperty(Soprano::Vocabulary::NAO::prefLabel(), \
false));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic