GithubHelp home page GithubHelp logo

eddo888 / knowledgebase Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 55 KB

Knowledge Base Builder tools to support the wonderful https://inforapid.org/webapp/login.php

License: MIT License

Python 100.00%

knowledgebase's Introduction

useful tools for the KnowledgeBase

KnowledgeBase by Ingo Straub

knowldge.py

tool to read/modify kdb files

$ knowledge.py -h
usage: knowledge.py [-h] [-D DATABASE] [-e EXPORTDIR] [-k] [-v]
                    {categories,categorise,clean,deArrow,import,load_excel,load_opml,query,replace,sort,step_in,step_out,to_csv,args}
                    ...

tool to inspect, query and edit Knowledge Base sqlite files

positional arguments:
  {categories,categorise,clean,deArrow,import,load_excel,load_opml,query,replace,sort,step_in,step_out,to_csv,args}
                        operations
    categories          inspect the structure for categories for the templates in the KDB
    categorise          change the category from asis to tobe, empty string "" for None
    clean               remote html tags from descriptions
    deArrow             remove -> arrows from descriptions
    import              import cloud outliner cod file to a node parent
    load_excel          load an excel sheet into the KDB file
    load_opml           load OPML xml format into the KDB
    query               query a value, and filter by category
    replace             search and replace in item names
    sort                sort an items child items
    step_in             todo
    step_out            todo
    to_csv              export data to directory as tables of raw KDB types
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -D DATABASE, --database DATABASE
                        Knowledge Base database, default=Empty.kdb
  -e EXPORTDIR, --exportdir EXPORTDIR
                        output to export dir, default=export
  -k, --klobber         klobber db
  -v, --verbose         verbose logging

usage

to query a kdb do the following; note the '%' for sql like patten globbing

$ pip3 install --upgrade KnowledgeBase

$ knowledge.py -D Recipies.kdb query '%' 
Recipies
Fetachini Pesto
Corn fritters

or you can inspect with filter parameters

$ knowledge.py query -h
usage: knowledge.py query [-h] [-d] [-u] [-a] [-r {i,o,b}] [-c CATEGORIES [CATEGORIES ...]] name

query a value, and filter by category

positional arguments:
  name                  string to search in name for

optional arguments:
  -h, --help            show this help message and exit
  -d, --description     include description
  -u, --url             include url
  -a, --attachments     include attachments
  -r {i,o,b}, --references {i,o,b}
                        include references
  -c CATEGORIES [CATEGORIES ...], --categories CATEGORIES [CATEGORIES ...]
                        restrict to categories

knowledgebase's People

Contributors

dave-stibo avatar eddo888 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.