Retrieval of annotations by URI

Function name: get-annotationByURI

Parameters:

  • uri  URL of the annotation

  • callback  (optional) name of the callback function

Returns: the annotation serialized in JSON format or an empty page if it does not exist or is not public. If callback function is defined the result is a JSONP (the annotation serialized in JSON format wrapped by the function).

Example: https://eudml.org/api/get-annotationByURI?uri=http://eudml.eu/services/annotation/Annotation1359104375259&callback=MyFunction

returns

MyFunction(
{"id":"http://eudml.eu/services/annotation/Annotation1359104375259",
"type":"http://eudml.eu/annotations/correction",
"owner":"urn:namespace:user:a08186203c62a0d4013c6bb94f560013",
"status":"urn:type:created",
"target":null,
"visibility":"public",
"created":1359104375259,
"primaryTarget":"urn:eudml:doc:39484",
"annotationBody":
{"content":"testing the correction\r\n"}
});

 

Note: Annotation IDs are contained in the code of each EuDML page.