This is an automated notification sent by LCG Savannah.
It relates to:
                task #7779, project CDS Invenio

==============================================================================
 LATEST MODIFICATIONS of task #7779:
==============================================================================

Update of task #7779 (project cdsware):

        Percent Complete:                     90% => 100%                   

    _______________________________________________________

Follow-up Comment #4:

API done. 
from invenio.bibformat import get_dynamic_kbs_dict
from invenio.bibformat import get_popular_values_based_on_kb

x=get_dynamic_kbs_dict()
{'dynamic duo': {'coll_id': 2, 'expression': 'Geneva', 'field': '270__a'}}


x = get_popular_values_based_on_kb("dynamic duo")
(('1211 Geneve 4, SWITZERLAND', 5), ('7, Route de Drize', 5), ('Battelle -
Geneva Research Center', 5), ('CH-1227 Carouge/Geneva', 5), ('CMU - Rue
Michel-Servet 1', 5), ('Swiss Institute of Bioinformatics', 5),
('SWITZERLAND', 5))

x=get_popular_values_based_on_kb("dynamic duo","Carouge")
(('7, Route de Drize', 5), ('Battelle - Geneva Research Center', 5),
('CH-1227 Carouge/Geneva', 5), ('SWITZERLAND', 5))


==============================================================================
 OVERVIEW of task #7779:
==============================================================================

URL:
  <http://savannah.cern.ch/task/?7779>

                 Summary: Support dynamic knowledge bases
                 Project: CDS Invenio
            Submitted by: man
            Submitted on: 2008-09-05 09:41
         Should Start On: 2008-09-05 00:00
   Should be Finished on: 2008-10-05 00:00
                Category: BibFormat
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 100%
             Assigned to: man
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 5.00

    _______________________________________________________



Allow the admin user to configure a collection as a source of a knowledge
base.



    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: 2008-10-03 16:49              By: Marko Niinimaki <man>
API done. 
from invenio.bibformat import get_dynamic_kbs_dict
from invenio.bibformat import get_popular_values_based_on_kb

x=get_dynamic_kbs_dict()
{'dynamic duo': {'coll_id': 2, 'expression': 'Geneva', 'field': '270__a'}}


x = get_popular_values_based_on_kb("dynamic duo")
(('1211 Geneve 4, SWITZERLAND', 5), ('7, Route de Drize', 5), ('Battelle -
Geneva Research Center', 5), ('CH-1227 Carouge/Geneva', 5), ('CMU - Rue
Michel-Servet 1', 5), ('Swiss Institute of Bioinformatics', 5),
('SWITZERLAND', 5))

x=get_popular_values_based_on_kb("dynamic duo","Carouge")
(('7, Route de Drize', 5), ('Battelle - Geneva Research Center', 5),
('CH-1227 Carouge/Geneva', 5), ('SWITZERLAND', 5))


-------------------------------------------------------
Date: 2008-10-03 12:50              By: Marko Niinimaki <man>
GUI done. Still needed an addtion to API so that the functionality can be
easily used by bibedit.

-------------------------------------------------------
Date: 2008-09-22 09:04              By: Tibor Simko <simko>
This new KB type should not be based solely on 'collection' queries only, but
should allow any kind of 'dynamic lookup' search queries, as discussed IRL.

E.g. my example was:

   /export_kb?name=instname&country=canada&format=kba

which could be translated behind the scenes to

   perform_request_search(p='canada', c='Institutes')

giving you the list of recIDs, out of which you would construct inst
names and output them.

This would allow us to construct KBs out of any search, including
boolean one, which may be very handy at times, because we are unlimited
in possibilites and we don't have to set up any explicit predefined
collection for the purpose.

Example: a dynamic in-house lookup `knowledge base' of all SLAC authors
can be constructed via p_r_s(p='100__u:"SLAC" OR 700__u:"SLAC"'), if
BibCheck and friends need such a KB one day.


-------------------------------------------------------
Date: 2008-09-19 15:07              By: Marko Niinimaki <man>
Coding finished. A test case to be added in demo.





    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
1576                                | -COM-
3346                                | -SUB-




==============================================================================

This item URL is:
  <http://savannah.cern.ch/task/?7779>

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/


Reply via email to