Warning:
This wiki has been archived and is now read-only.

SE Free text tagging a Image

From Open Annotation Community Group
Jump to: navigation, search

Tagging a webpage with free text

A Tag is a non-hierarchical keyword or term assigned to someone or something. Tags are typically used to categorize or describe resources by attaching some free text label to them (sources: Wikipedia, Why do users tag?).

<< Back to the Cookbook

Example of Tag

We here represent the tagging of a figure depicting the 'Amyloid Beta Protein' and we provide the label 'Amyloid Beta Protein'.

Error creating thumbnail: Unable to save thumbnail to destination

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 motivation oa:tagging.

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

Error creating thumbnail: Unable to save thumbnail to destination

In RDF format:

ex:anno a oa:Annotation ;
   oa:hasTarget <http://alturl.com/wxidq> ;
   oa:hasBody ex:uuid ;
   oa:motivatedBy oa:tagging ;
   oa:annotatedAt ex:person1 ;
   oa:annotatedBy "2012-02-12T15:02:14Z" ;
   oa:serializedBy ex:software1 ;
   oa:serializedAt "2012-02-12T15:02:14Z" .
 
<http://alturl.com/wxidq> a dctypes:Image ;
   dc:format "image/jpeg" .
 
ex:uuid a cnt:ContentAsText, oa:Tag ;
   cnt:chars "Amyloid Beta Protein" ;
   dc:format "text/plain" ;
   cnt:characterEncoding "utf-8" .
 
ex:person1 a foaf:Person ;
   foaf:mbox <mailto:john.doe@example.org>  ;
   foaf:name "John Doe" .
 
ex:software1 a prov:SoftwareAgent;
   foaf:name "ExAnnotator" .

Some SPARQL queries

Select all the annotations for the target http://alturl.com/wxidq

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://alturl.com/wxidq> . 
}
=> ex:anno

Select all the annotations by ex:person1 for the target http://alturl.com/wxidq

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://alturl.com/wxidq> . 
   ?anno oa:annotatedBy ex:person1 . 
}
=> ex:anno

Select all the tags by ex:person1

SELECT ?anno WHERE { 
   ?anno oa:motivatedby oa:tagging .
   ?anno oa:annotatedBy ex:person1 .  
}
=> ex:anno

Select all the tags for the target http://alturl.com/wxidq

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://alturl.com/wxidq> . 
   ?anno oa:motivatedby oa:tagging . 
}
=> ex:anno


CREATOR: Paolo Ciccarese
LAST UPDATED: January 30, 2013

<< Back to the Cookbook