|
QuickAPI
Quick intro to the feedgraph API
What is FeedGraph?FeedGraph provides a powerful real-time graph database for storing knowledge graphs, social networks, or arbitrary data. Clients can subscribe to changes in the graph, including when new nodes or relations are added. What is FeedGraph good for?Consider using FeedGraph if you are building:
TerminologyGrapha collection of nodes, edges, and the relations between them. Nodestores arbitrary JSON data. Each node has a unique URI. e.g. GET /users/ryanne --> {"Name":"Ryanne", "Age":27} Relationa set of edges with a common source node and RelationType. e.g. GET /users/ryanne?friends --> ["/users/sarah":{"Name":"Sarah", ...}, ... ] Edgea directed link between two nodes. Each edge has a RelationType and connects a source node to a sink node. e.g. PUT /source/node?relation&/sink/node Mailboxa message queue. Each node has an implicit mailbox. e.g. POST /users/ryanne <-- {"testing":123} e.g. GET /users/ryanne.inbox --> [{"YouGot":"Mail"}, ...] CollectionsNodes can be organized into hierarchical collections. e.g. /users/ryanne, /companies/google, /universities/missouri/mu Nodes representing collections, e.g. /users, are automatically created and linked to their members using the members relation. AttachmentsNodes can have raw data attached to them. Currently, HTML, CSS, JS, and Markdown are supported attachment types. Request the data attached to a node by appending an extension to the URI: e.g. GET /p/home.html TemplatesNodes can have templates attached to them, which are used to render other nodes in HTML: e.g. GET /people/justin-case.html?t=/t/span/name RequestsIf you know the path to a node, you can request it directly. The API will return the arbitrary JSON object data stored in the node. e.g. GET /path/to/node --> {"JSON":"data"} If you wish to find a set of nodes which matches some criterion (a "search"), you must do so via a relation. Notice that this implies that someone linked the nodes with the given relation at a previous point in time. e.g. GET /fruit?red --> {"/fruit/apple":{"color":"red"}, ...} It's also possible to combine relations for more powerful searches. e.g. GET /fruit?red+delicious // red AND delicious e.g. GET /fruit?red|green // red OR green GET Requests
PUT Requests
POST Requests
JavaScript APISource the following script in your webpage: <script src="http://www.feedgraph.com/js/feedgraph.js"></script> | |||||||||||||||||||||||||||||||||||||||