Warning:
This wiki has been archived and is now read-only.
Annotating a Webpage with a Webpage
Contents
Annotating a Webpage with another Webpage
A very common scenario consists in annotating webpages with other webpages or, in other words, in relating pages through annotation.
Example of annotation of a Webpage with another Webpage
For example, if we want to say that a page is about one of the Wikipedia topics, we could say that the first page is about a Wikipedia page.
Open Annotation Representation
The Target of the annotation is a webpage containing a big picture taken on Venice Beach in California and depicting the musician Harry Perry. The Body of the annotation is a Wikipedia page about Harry Perry.
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.
In RDF format:
ex:Anno a oa:Annotation ; oa:hasTarget <http://www.foaffy.org/gallery2/main.php?g2_itemId=11496> ; oa:hasBody <http://en.wikipedia.org/wiki/Harry_Perry_%28musician%29> ; oa:annotatedBy ex:Person1 ; oa:annotatedAt "2012-02-12T15:02:14Z" ; oa:serializedBy ex:Software1 ; oa:serializedAt "2012-02-12T15:02:14Z" . <http://www.foaffy.org/gallery2/main.php?g2_itemId=11496> dc:format "text/html" . <http://en.wikipedia.org/wiki/Harry_Perry_%28musician%29> dc:format "text/html" . 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.foaffy.org/gallery2/main.php?g2_itemId=11496
SELECT ?anno WHERE { ?anno oa:hasTarget <http://www.foaffy.org/gallery2/main.php?g2_itemId=11496> . } => ex:Anno
or
SELECT ?anno WHERE { ?anno rdf:type oa:Annotation . ?anno oa:hasTarget <http://www.foaffy.org/gallery2/main.php?g2_itemId=11496> . } => ex:Anno
Select all the annotations by ex:Person1 for the target http://www.foaffy.org/gallery2/main.php?g2_itemId=11496
SELECT ?anno WHERE { ?anno oa:hasTarget <http://www.foaffy.org/gallery2/main.php?g2_itemId=11496> . ?anno oa:annotatedBy ex:Person1 . } => ex:Anno
Select all the annotations by ex:Person1 with body the Wikipedia page http://en.wikipedia.org/wiki/Harry_Perry_%28musician%29
SELECT ?anno WHERE { ?anno rdf:type oa:Annotation . ?anno oa:hasBody <http://en.wikipedia.org/wiki/Harry_Perry_%28musician%29> . ?anno oa:annotatedBy ex:Person1 . } => ex:Anno
Notes
The annotation could have been more precise and the target could have been the picture of Harry Perry only. The RDF would have been similar with the URI of the Image replacing the one of the website.
CREATOR: Paolo Ciccarese |
LAST UPDATED: March 05, 2013 |