Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bigbluehat/ldp-on-couchdb

[EXPERIMENTAL] Linked Data Platform on Apache CouchDB
https://github.com/bigbluehat/ldp-on-couchdb

Last synced: 12 days ago
JSON representation

[EXPERIMENTAL] Linked Data Platform on Apache CouchDB

Awesome Lists containing this project

README

        

# LDP on CouchDB

[Apache CouchDB](http://couchdb.apache.org/)'s HTTP API is quite
similar to LDP's Basic Container system.

This project closes the loop by providing a set of CouchApp
functions (`_update`, `_show`, etc) that add the remaining
LDP specific semantics.

## Usage

0. `npm install && npm install -g gulp`
1. Copy `config.json.sample` to `config.json`
2. Change `config.json` to match your setup.
3. `gulp` (or only `gulp apps` or `gulp docs`)
4. Send LDP requests to the URL you set in `config.json`
plus `_design/ldp/_rewrite/`
5. (optional) Setup a Virtual Host to make the URL above
prettier.

## Sample Requests

Assuming your setup matches mine :smiley_cat:

* http://localhost:5984/ldp-on-couchdb/_design/ldp/_rewrite/
* returns a Turtle representation of the Basic Container (which references
the documents contained in this container.
* http://localhost:5984/ldp-on-couchdb/_design/ldp/_rewrite/a
* returns a JSON-LD representation of the `a` document + the
[Web Annotation Data Model JSON-LD Context](http://www.w3.org/TR/annotation-model/#json-ld-context).

## License

Apache License 2.0