-
Notifications
You must be signed in to change notification settings - Fork 2
Notification API
Raul Palma edited this page Feb 3, 2016
·
5 revisions
intro
dfadf
dfadf
- Motivation
- A checklist service evaluation change. This can be a service that is down or a hypothesis added.
- A resource that is a part of an RO is in an obsolete format and an update is recommended.
- The workflow is no longer runnable according to the workflow runner...
- API Usage
- Getting the notification feed
- API Usage
- ro - the research object URI. If set, only notifications related to this RO will be returned.
- from - the timestamp of the oldest notification that should be returned. The timestamp should be an ISO 8601 date time format (wikipedia).
- to - the timestamp of the most recent notification that should be returned. The timestamp should be an ISO 8601 date time format (wikipedia).
- source - URI of the producer of notifications.
- limit - the maximum number of results to be returned.
- Finding related resources
- Link relations
Also used in the Research Object resource in the ?RO API 6 as a Link header to point to the notification resource of that particular RO.
Used in the feed entry (i.e. the notification) to link the feed with the Research Object it describes. Used in the feed entry (i.e. the notification) to link the feed with the checklist evaluation result that is related to it.- HTTP Methods
- Resources and formats
- Service description
- Resources and formats
ro - the research object URI. If set, only notifications related to this RO will be returned. from - the timestamp of the oldest notification that should be returned. to - the timestamp of the most recent notification that should be returned. source - URI of the producer of notifications. limit - the maximum number of results to be returned. If neither "from", "to" nor "limit" are set, the service should return no more than 10 notifications.
- Notifications
An example:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Notifications for Research Object "myGenes"</title>
<subtitle>Notifications between 2000-06-13T16:20:02Z and
2006-06-13T16:20:02Z
</subtitle>
<!-- link to this feed -->
<link
href="http://example.org/rodl/notifications?ro=/rodl/ROs/myGenes/&from=2000-06-13T16:20:02Z&to=2006-06-13T16:20:02Z"
="self" />
<!-- link to RO -->
<link href="http://example.org/rodl/ROs/myGenes/" rel="http://www.openarchives.org/ore/terms/describes" />
<!-- id is the feed URI -->
<id>http://example.org/rodl/notifications?ro=/rodl/ROs/myGenes/&from=2000-06-13T16:20:02Z&to=2006-06-13T16:20:02Z
</id>
<updated>2005-06-13T16:20:02Z</updated>
<author>
<name>Research Object Digital Library</name>
<email>http://sandbox.wf4ever-project.org/rodl</email>
</author>
<!-- each entry is a notification -->
<entry>
<title>Quality improvement</title>
<!-- link to RO, only if you ask for feeds for more than one RO (all ROs) -->
<link href="http://example.org/rodl/ROs/myGenes/" rel="http://www.openarchives.org/ore/terms/describes" />
<!-- the source of this notification is the checklist service -->
<link href="http://sandbox.wf4ever-project.org/roevaluate/" rel="http://purl.org/dc/terms/source" />
<!-- an internal entry id, consistent across different feeds -->
<id>urn:X-rodl:13</id>
<published>2005-06-13T16:20:02Z</published>
<!-- here goes the notification message -->
<summary type="html"><p>Lorem ipsum</p></summary>
</entry>
</feed>- References
- Atom format spec: http://www.atomenabled.org/developers/syndication/atom-format-spec.php
- Atom RFC: http://tools.ietf.org/html/rfc5023
- ISO 8601 date time standard: Numeric representation of Dates and Time