FORMAT: 1A HOST: https://hypothes.is
Hypothes.is provides an implementation of the Annotator Storage API.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> | |
<title>Apache Annotator (incubating)</title> | |
<link rel="stylesheet" href="http://semantic-ui.com/dist/semantic.min.css" /> | |
</head> |
FORMAT: 1A HOST: https://hypothes.is
Hypothes.is provides an implementation of the Annotator Storage API.
Wirking on exploring this issue: w3c/wptserve#84
$ pip install wptserve
$ python test.py
<http://example.org/anno1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/oa#Annotation> . | |
<http://example.org/anno1> <http://www.w3.org/ns/oa#hasBody> <http://example.org/post1> . | |
<http://example.org/anno1> <http://www.w3.org/ns/oa#hasTarget> <http://example.com/page1> . |
var seek = require('dom-seek'); | |
var text = 'ipsum'; | |
// Find the text. | |
var offset = document.body.textContent.indexOf(text); | |
var length = text.length | |
// Create a NodeIterator. | |
var iter = document.createNodeIterator(document.body, NodeFilter.SHOW_TEXT); |
This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:
http://json-ld.org/playground#/gist/<gist id>
module.exports.getConversationsForUser = function (user, cb) { | |
db.query( | |
function (doc) { | |
if (doc.author) { | |
emit(doc.author) | |
} | |
}, | |
{include_docs: true, key: user.userId} | |
).then(function (response) { | |
// response.doc should have the whole doc |
<html> | |
<head> | |
<title>Hypothes.is Annotation in RDFa</title> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/mustache.js/2.1.2/mustache.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/superagent/1.2.0/superagent.min.js"></script> | |
<script src="index.js"></script> | |
</head> | |
<body> | |
</body> |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>Hypothes.is Stream</title> | |
<subtitle>The Web. Annotated</subtitle> | |
<link href="http://hypothes.is/stream.atom" rel="self" /> | |
<link href="http://hypothes.is/stream" /> | |
<id>http://hypothes.is/stream</id> | |
<updated>2014-09-18T21:43:16.353744+00:00</updated> |