MemeBrane is a web-based Flask application that browses a public TheBrain graph database.
meme (n.) - a small particle of human culture.
brane (n.) - an object that generalizes the notion of a point particle to higher dimensions.
Clone this repo and cd into its directory.
Set up a Python virtual environment with venv
orvirtualenv
:
virtualenv -p python3 venv
source venv/bin/activate
Install libraries:
pip install -r requirements.txt
Run application:
flask run
Visit the application at http://localhost:5000/ It will lead you to the default thought for the default brain. (We need to use the brain list instead.)
It is also possible to ask for the data in 'text/csv' or 'application/json' with Accept: mimetype header. The following list shows what information is included in the views. The defaults are given for the html view; the data views include more links by default.
json
(False): Show the raw json in the html view.parents
(True): Show the parents of the nodechildren
(True): Show the children of the nodesiblings
(True): Show siblings of the node (unless the parent is a type)jumps
(True): Show jump links starting from the nodetags
(True): Show tag nodes associated with the nodeof_tags
(True): Show nodes with that tag (on a tag node)same_type
(False): Show other nodes sharing the types of this node (siblings through type)text_links
(False): Show nodes linked to this node through a link in the body texttext_backlinks
(False): Show nodes that link to this node through a link in the body textwith_attachments
(False): Include attachment information for all related nodesgate_counts
(False): Includegate_counts
in json data
The defaults given can be changed either directly with GET arguments (?arg1=true&arg2=false
), or in the form of a single argument ?show=arg1,-arg2,...
- allow user to enter
brain_id
andhome_thought_id
- add CSS and better web page layout
- add caching of retrieved thoughts
- do show/hide client side, rather than server side
- add “bread crumb” trail of visited thoughts
- do better with attachments that aren’t type 3