Code Monkey home page Code Monkey logo

braindump's Introduction

Description

Braindump is a semantic wiki. Each page has three parts:

  1. a set of key/value pairs where the key is an attribute and the value is another page in the wiki. An example key/value pair on a page called "apple" could be "color: red"
  2. a textual description, which is textilized.
  3. a set of backlinks. If the "apple" page has the attribute "color: red", the "red" page automatically has the backlink "color of apple".

Pages can be filtered based on key/value pairs with a simple query language that's accessible through the web interface as well as the graphstore API. For example, to list all pages with a "color" attribute that has a value of "red", type "color is red" into the filter box. "is" is just one operator -- there's >, <, >=, <=, "is not", "matches" [regular expression], and even "is before", "is after" (uses dateutil to parse and compare dates), "is north|south|east|west of" and "is within x miles of" (uses geopy and the Google Maps API). Comparison operators are pluggable, so adding a new one is as easy as writing a Python function.

It's persisted in SQLite. If I have time I'll port it to run on top of RDFlib so a braindump wiki can be part of the semantic web.

Installation

  1. easy_install everything in dependencies.txt
  2. cd into the directory
  3. python braindump.py
  4. open http://localhost:8080/, and you should be good to go.

To clear out everything in the development database, just go to http://localhost:8080/delete_everything. (Releases won't have that feature lol)

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.