Beispiel #1
0
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype='s'):
    """
    Returns an array of keys.
       @param kb_name: the name of the knowledge base
       @param searchkey: search using this key
       @param searchvalue: search using this value
       @param searchtype: s = substring, e=exact
   """
    return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey,
                                               searchvalue, searchtype)
Beispiel #2
0
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype='s'):
    """
    Returns an array of keys.
       @param kb_name: the name of the knowledge base
       @param searchkey: search using this key
       @param searchvalue: search using this value
       @param searchtype: s = substring, e=exact
   """
    return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey, searchvalue,
                                               searchtype)
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype="s"):
    """
    Return a tuple of values from key-value mapping kb.

    @param kb_name:     the name of the knowledge base
    @param searchkey:   search using this key
    @param searchvalue: search using this value
    @param searchtype:  s=substring; e=exact
   """
    return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey, searchvalue, searchtype)
Beispiel #4
0
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype='s'):
    """
    Return a tuple of values from key-value mapping kb.

    @param kb_name:     the name of the knowledge base
    @param searchkey:   search using this key
    @param searchvalue: search using this value
    @param searchtype:  s=substring; e=exact
   """
    return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey, searchvalue,
                                               searchtype)
Beispiel #5
0
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype='s',
                   use_memoise=False):
    """
    Return a tuple of values from key-value mapping kb.

    @param kb_name:     the name of the knowledge base
    @param searchkey:   search using this key
    @param searchvalue: search using this value
    @param searchtype:  s=substring; e=exact
    @param use_memoise: can we memoise while doing lookups?
    @type use_memoise:  bool
   """
    if use_memoise:
        return bibknowledge_dblayer.get_kbr_values_memoised(kb_name, searchkey,
                                                            searchvalue, searchtype,
                                                            use_memoise)
    else:
        return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey,
                                                   searchvalue, searchtype,
                                                   use_memoise)
Beispiel #6
0
def get_kbr_values(kb_name, searchkey="", searchvalue="", searchtype='s',
                   use_memoise=False):
    """
    Return a tuple of values from key-value mapping kb.

    @param kb_name:     the name of the knowledge base
    @param searchkey:   search using this key
    @param searchvalue: search using this value
    @param searchtype:  s=substring; e=exact
    @param use_memoise: can we memoise while doing lookups?
    @type use_memoise:  bool
   """
    if use_memoise:
        return bibknowledge_dblayer.get_kbr_values_memoised(kb_name, searchkey,
                                                            searchvalue, searchtype,
                                                            use_memoise)
    else:
        return bibknowledge_dblayer.get_kbr_values(kb_name, searchkey,
                                                   searchvalue, searchtype,
                                                   use_memoise)