Annotating a Webpage with a Textual Note

From Open Annotation Community Group
Jump to: navigation, search

Annotating a Webpage with a Textual Note

A very common scenario consists in annotating webpages with a textual note.

<< Back to the Cookbook

Example of annotation of a Webpage with a Textual Note

For example, we can annotate the homepage of the Open Annotation Community Group with a note that says: 'This is the result of the merging process of Annotation Ontology (AO) and Open Annotation Collaboration (OAC)' .

Open Annotation Annotating a Webpage with a Textual Note Intro.png

Open Annotation Representation

The Target of the annotation is the homepage of the Open Annotation Community Group. The Body of the annotation is the inline textual note 'This is the result of the merging process of Annotation Ontology (AO) and Open Annotation Collaboration (OAC)'.

The Annotation instance exhibits an oa:annotator - the agent responsible for entering the information that is used to generate the Annotation - and a oa:generator - the agent, likely software, generating the serialization of the Annotation's graph. Annotation and generation dates are also associated.

Open Annotation-Annotating a Webpage with a Textual Note-In OA format.png

In RDF format:

ex:Anno a oax:Annotation ;
   oa:hasTarget <http://www.w3.org/community/openannotation/> ;
   oa:hasBody ex:uuid ;
   oa:annotatedBy ex:Person1 ;
   oa:annotatedAt "2012-02-12T15:02:14Z" ;
   oa:serializedBy ex:Software1 ;
   oa:serializedAt "2012-02-12T15:02:14Z"  .
 
<http://www.w3.org/community/openannotation/>
   dc:format "text/html" .
 
ex:uuid a cnt:ContentAsText ;
  cnt:chars "This is the result of the merging process of Annotation Ontology (AO) and Open Annotation Collaboration (OAC)" ;
  cnt:characterEncoding "utf-8" .
 
ex:Person1 a foaf:Person ;
   foaf:mbox "john.doe@example.org" ;
   foaf:name "John Doe" .
 
ex:Software1 
   foaf:name "ExAnnotator" .

Some SPARQL queries

Select all the annotations for the target http://www.w3.org/community/openannotation/

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://www.w3.org/community/openannotation/> . 
}
=> ex:Anno

Select all the annotations by ex:Person1 for the target http://www.w3.org/community/openannotation/

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://www.w3.org/community/openannotation/> . 
   ?anno oa:annotatedBy ex:Person1 . 
}
=> ex:Anno

Select all annotations by ex:Person1

SELECT ?anno WHERE { 
   ?anno a oa:Annotation .
   ?anno oa:annotatedBy ex:Person1 .  
}
=> ex:Anno


CREATOR: Paolo Ciccarese
LAST UPDATED: March 05, 2013

<< Back to the Cookbook