Warning:
This wiki has been archived and is now read-only.
SE Free text tagging a Webpage
Contents
Tagging a webpage with free text
A Tag is a label attached to someone or something for identification or other information. Typically tags are created attaching a free text label to a resource.
Example of Tag
We here represent the tagging of a figure depicting the 'Amyloid Beta Protein' and we provide the label 'Amyloid Beta Protein'.
Open Annotation Representation
The Target of the annotation is the image identified by the URI http://alturl.com/wxidq. The Body of the annotation consists in the textual label 'Amyloid Beta Protein'. The nature of the annotation is encoded by the annotation type oax:Tag.
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.
In RDF format:
ex:Anno a oax:Tag ; oa:hasTarget <http://alturl.com/wxidq> ; oa:hasBody ex:uuid ; oa:annotator ex:Person1 ; oa:annotated "2012-02-12T15:02:14Z" ; oa:generator ex:Software1 ; oa:generated "2012-02-12T15:02:14Z" ; oa:modelVersion <Version1> . ex:uuid a cnt:ContentAsText ; cnt:chars "Amyloid Beta Protein" ; 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:annotator ex:Person1 . } => ex:Anno
Select all the bookmarks by ex:Person1
SELECT ?anno WHERE { ?anno a oax:Bookmark . ?anno oa:annotator ex:Person1 . } => ex:Anno
Select all the bookmarks for the target http://www.w3.org/community/openannotation/
SELECT ?anno WHERE { ?anno oa:hasTarget <http://www.w3.org/community/openannotation/> . ?anno oa:hasMotivation oax:Bookmarking . } => ex:Anno