Export CouchDB documents as triples, using the following conventions:
- Subject =
doc._id - Predicate =
attribute - Object =
doc.attribute - Default namespace =
database name
Requires CouchDB and your data.
Replicate from iriscouch into your DB.
Make a local clone of this repository and couchapp push http://username:pass@localhost:5984/somedb.
Needless to say, this option requires CouchApp.
Use the nice HTML export interface at http://localhost:5984/somedb/_design/couch2rdf/index.html
OR do things the manual way:
- Visit
http://localhost:5984/somedb/_design/couch2rdf/_list/triples/spo - OR for N3:
curl -H "Accept: text/n3" http://localhost:5984/somedb/_design/couch2rdf/_list/triples/spo - OR for RDF:
curl -H "Accept: application/rdf+xml" http://localhost:5984/somedb/_design/couch2rdf/_list/triples/spo
Where somedb is your database name, and spo can be replaced with osp or pos.
- @jalmeida for the original "documents are triples" idea.
- @agrueneberg for general goodness in Sessel.