Open Annotation RDFa using Hypothes.is JSON
The Open Annotation Core Data Model is something we’re keen to include in future Hypothes.is releases. We’re exploring using it via JSON-LD natively in AnnotatorJS. Along the way, we’re experimenting and growing our understanding of the specification.
RDFa allows us to mix the Open Annotation Core Data Model into existing HTML markup. In an effort to understand how this all might work, I built a small RequireBin to see how far I could get using the existing Hypothes.is/AnnotatorJS JSON object.
Here’s the result (or view it on RequireBin):
<textarea> contents are the most interesting part (so far). There some minimal HTML markup with some explanatory RDFa attributes that use the Open Annotation Core Data Model to “explain” the data in the markup.
Feedback extremely welcome!