Apache CouchDB's HTTP API is quite similar to the Web Annotation Protocol except the later is specific to Annotation.
This project closes the loop by providing a set of CouchApp
functions (_update
, _show
, etc) that add the remaining
Web Annotation Protocol specific semantics.
npm install && npm install -g gulp
- Copy
config.json.sample
toconfig.json
- Change
config.json
to match your setup. gulp
(or onlygulp apps
orgulp docs
)- Send Web Annotation Protocol requests to the URL you set in
config.json
plus_design/anno/_rewrite/
- (optional) Setup a Virtual Host to make the URL above prettier.
Assuming your setup matches mine 😺
- http://localhost:5984/annotations/_design/anno/_rewrite/
- returns a Turtle representation of the Basic Container (which references the documents contained in this container.
- http://localhost:5984/annotations/_design/anno/_rewrite/a
- returns a JSON-LD representation of the
a
document + the Web Annotation Data Model JSON-LD Context.
- returns a JSON-LD representation of the
Apache License 2.0