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

SE Bookmarking and Tagging a Webpage

From Open Annotation Community Group
Jump to: navigation, search

Bookmarking and Tagging a Webpage

In the context of the World Wide Web, a bookmark is a locally stored Uniform Resource Identifier (URI). All modern web browsers include bookmark features (source: Wikipedia). Typically the URI is associated with a textual descriptions (or name or label) for improving human readability. In some browsers/applications tags can be associated to improve bookmarks search and sorting.

<< Back to the Cookbook

Example of Bookmark with Semantic Tags

We here represent the bookmark of the 'Amyloid precursor protein' Wikipedia webpage. We provide the label 'Amyloid precursor protein (APP) on Wikipedia' and two tags identified by two URis from OMIM (Online Mendelian Inheritance in Man) 'OMIM:104760' and MGI (Mouse Genome Informatics) 'MGI: 88059'. While the textual description is meant for improving human readability, the two associated tags are identified by URIs (semantic tags) so that the associated concepts/resources are uniquely identifiable by humans and machines.

Error creating thumbnail: Unable to save thumbnail to destination

Open Annotation Representation

The Target of the annotation is the webpage identified by the URI http://en.wikipedia.org/wiki/Amyloid_precursor_protein. The Body of the annotation consists in the textual label 'Official page of the Open Annotation Community Group', also two tags identified by URIs are associated. The Motivations driving the creation of the annotation are 'Bookmarking' and 'Tagging'. As tags are specified through a different relationship 'oa:hasSemanticTag', the motivation 'Tagging' is not always necessary and its usage is up to the annotation annotator/generator.


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.

Error creating thumbnail: Unable to save thumbnail to destination

In RDF format:

ex:Anno a oa:Annotation ;
   oa:hasTarget <http://en.wikipedia.org/wiki/Amyloid_precursor_protein> ;
   oa:hasBody ex:uuid ;
   oa:hasMotivation oax:Bookmarking ;
   oa:hasMotivation oax:Tagging ;
   oa:hasSemanticTag MGI:88059;
   oa:hasSemanticTag OMIM:104760;
   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 precursor protein (APP) on Wikipedia" ;
   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://en.wikipedia.org/wiki/Amyloid_precursor_protein

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://en.wikipedia.org/wiki/Amyloid_precursor_protein> . 
}
=> ex:Anno

Select all the annotations by ex:Person1 for the target http://en.wikipedia.org/wiki/Amyloid_precursor_protein

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://en.wikipedia.org/wiki/Amyloid_precursor_protein> . 
   ?anno oa:annotator ex:Person1 . 
}
=> ex:Anno

Select all the bookmarks by ex:Person1

SELECT ?anno WHERE { 
   ?anno oa:annotator ex:Person1 . 
   ?anno oa:hasMotivation oax:Bookmarking . 
}
=> ex:Anno

Select all the bookmarks for the target http://en.wikipedia.org/wiki/Amyloid_precursor_protein

SELECT ?anno WHERE { 
   ?anno oa:hasTarget <http://en.wikipedia.org/wiki/Amyloid_precursor_protein> . 
   ?anno oa:hasMotivation oax:Bookmarking . 
}
=> ex:Anno

Select all the annotation targets tagged with OMIM:104760

SELECT ?target WHERE {  
   ?anno oa:hasTarget ?target .
   ?anno oa:hasSemanticTag OMIM:104760 . 
}
=> <http://en.wikipedia.org/wiki/Amyloid_precursor_protein>

<< Back to the Cookbook