Skip to content

Commit

Permalink
note on non-document services (issue #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Apr 15, 2013
1 parent b184081 commit d38607c
Showing 1 changed file with 45 additions and 32 deletions.
77 changes: 45 additions & 32 deletions paia.md
Expand Up @@ -458,53 +458,53 @@ In most cases, each document will have an item URI for a particular copy, but
users may also have requested an edition.


## renew
## request

purpose
: renew one or more documents usually held by the patron. PAIA servers
MAY also allow renewal of reserved, ordered, and provided documents.
: Request one or more items for reservation or delivery.
HTTP verb and URL
: POST https://example.org/core/**{uri_escaped_patron_identifier}**/renew
: POST https://example.org/core/**{uri_escaped_patron_identifier}**/request
scope
: write_item
request parameters
: ------------- ------ -------- ------------------------------
doc 1..n list of documents to renew
doc.item 0..1 URI URI of a particular item
doc.edition 0..1 URI URI of a particular edition
------------- ------ -------- -----------------------------
: name occ data type description
--------------- ------ ----------- ------------------------------
doc 1..n list of documents to renew
doc.item 0..1 URI URI of a particular item
doc.edition 0..1 URI URI of a particular edition
doc.storage 0..1 string Requested pickup location
doc.storageid 0..1 URI Requested pickup location
--------------- ------ ----------- ------------------------------
response fields
: name occ data type description
------ ------ ----------- -----------------------------------------
doc 1..n document list of documents (order is irrelevant)
----- ------ ------------ -----------------------------------------
doc 1..n document list of documents (order is irrelevant)
------ ------ ----------- -----------------------------------------

The response SHOULD include the same documents as requested. A client MAY also
use the [items](#items) method to get the service status after renewal.


## request
## renew

purpose
: Request one or more items for reservation or delivery.
: renew one or more documents usually held by the patron. PAIA servers
MAY also allow renewal of reserved, ordered, and provided documents.
HTTP verb and URL
: POST https://example.org/core/**{uri_escaped_patron_identifier}**/request
: POST https://example.org/core/**{uri_escaped_patron_identifier}**/renew
scope
: write_item
request parameters
: name occ data type description
--------------- ------ ----------- ------------------------------
doc 1..n list of documents to renew
doc.item 0..1 URI URI of a particular item
doc.edition 0..1 URI URI of a particular edition
doc.storage 0..1 string Requested pickup location
doc.storageid 0..1 URI Requested pickup location
--------------- ------ ----------- ------------------------------
: ------------- ------ -------- ------------------------------
doc 1..n list of documents to renew
doc.item 0..1 URI URI of a particular item
doc.edition 0..1 URI URI of a particular edition
------------- ------ -------- -----------------------------
response fields
: name occ data type description
------ ------ ----------- -----------------------------------------
doc 1..n document list of documents (order is irrelevant)
------ ------ ----------- -----------------------------------------
doc 1..n document list of documents (order is irrelevant)
----- ------ ------------ -----------------------------------------

The response SHOULD include the same documents as requested. A client MAY also
use the [items](#items) method to get the service status after renewal.
Expand Down Expand Up @@ -554,15 +554,16 @@ response fields
fee.feeid 0..1 URI URI of the type of fee
------------- ------ ----------- ----------------------------------------

Note that `fee.feetype` MUST NOT refer to the individual fee but to the type of
If given, `fee.feetype` MUST NOT refer to the individual fee but to the type of
fee. A PAIA server MUST return identical values of `fee.feetype` for identical
`fee.feeid`. The default value of `fee.feeid` is:

* <http://purl.org/ontology/dso#DocumentService> if `fee.item` is set,
* <http://purl.org/ontology/dso#DocumentService> if `fee.item` or `fee.edition` is set,
* <http://purl.org/ontology/ssso#ServiceEvent> otherwise.

If a fee was caused by an item (`fee.feeid`), the value of `fee.feeid` SHOULD
be a class URI from the [Document Service Ontology].
If a fee was caused by a document (`fee.item` or `fee.edition`), the value of
`fee.feeid` SHOULD be a class URI from the [Document Service Ontology].


# PAIA auth

Expand Down Expand Up @@ -816,10 +817,6 @@ following rules of thumb may help:
document can be used by multiple patrons at the same time, and `held` should
be used when the document can exclusively be used by the patron.

## Library services not related to documents

Libraries also provide services not related to documents, such as reservation
of a cabin. PAIA can also be used for such services.

## PAIA ontology in RDF

Expand Down Expand Up @@ -892,6 +889,22 @@ Fee

The type of fee is represented by a class from the [Document Service Ontology].


# PAIA core extensions to non-document services

A future version of PAIA may be extended to support services not related to
documents. For instance a patron may reserve a cabin or some other facility.
The following methods may be added to PAIA core for this purpose:

## services

List non-document services related to a patron - similar to method [items].

## servictypes

Get a list of services that a patron may request, each with URI, name, and
short description.

------

# References
Expand Down

0 comments on commit d38607c

Please sign in to comment.