{"repo":"arun1729/cog","free":true,"listed":false,"github":"https://github.com/arun1729/cog","clone":"git clone https://github.com/arun1729/cog.git","description":"Embedded Graph Database for Python. Lives inside your Python process. Quick setup. No server. Runs in notebooks, apps, even your browser.","language":"Python","stars":369,"topics":["nosql","python","graph-database","graph","linkeddata","network-graph","python-graph-database","triples","embedded-database","database"],"license":"MIT","category":"databases-storage","readme_excerpt":"A persistent graph database that lives inside your Python process. Quick setup. No server. Runs in notebooks, apps, even your browser. --- Quick Start Full documentation at cogdb.io --- Overview CogDB is a persistent, embedded graph database implemented in Python. It comes with its own graph traversal language called Torque. Torque is a fluent, chainable API that lives in your Python code. There are no query strings and no context switching, you write graph queries the same way you write normal Python. CogDB is designed to be easy to use and quick to integrate. There is no server to run and no setup overhead. You simply import it into your Python application. CogDB also works well in interactive environments such as IPython and Jupyter notebooks. CogDB is a triple store. It models data as Node → Edge → Node (eg: Alice → Follows → Bob ). Key-value pairs let you store facts; triples let you store relationships. With a source, a destination, and a label, you get the full expressive power of a graph with only one step more structure than a key-value store. Documentation Creating a graph Using put to insert triples Drop Edge ### Using putj to insert JSONs Using updatej to update JSONs Torque query examples Scan vertices {'result': [{'id': 'bob'}, {'id': 'emily'}, {'id': 'charlie'}]} Scan edges {'result': [{'id': 'status'}, {'id': 'follows'}]} Starting from a vertex, follow all outgoing edges and list all vertices {'result': [{'id': '5'}, {'id': 'fred'}, {'id': 'cool person'}]} Eve","default_branch":null,"files":null,"tree":[],"storefront":"/r/arun1729","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/arun1729/cog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}