Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.0.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Apr 18, 2019
2 parents 8dd1ed0 + b39cda0 commit f58377a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Notes:
## API Structure

### Publication identifiers as URIs
The translation service stores all work (publication) identifiers as URIs, therefore when querying/populating the database you must use the relevant [URI scheme][7]. When multiple identifiers of the same scheme are associated with the same work, you may set one and only one canonical URI per URI scheme, which will be the returned value when the `strict` flag is used.
The translation service stores all work (publication) identifiers as URIs, therefore when querying/populating the database you must use the relevant [URI scheme][7].

| Identifier | URI Scheme | Example |
| ---------- | ---------- | --------------------------------------------- |
Expand All @@ -77,6 +77,13 @@ The translation service stores all work (publication) identifiers as URIs, there
| URL | http | http://www.openbookpublishers.com/product/3 |
| URL | https | https://www.openbookpublishers.com/product/3 |

#### The canonical flag
When multiple identifiers of the same scheme are associated with the same work, **you may set one and only one canonical URI per URI scheme and work**, which will be the returned value when the `strict` flag is used.

The `/translate` path attempts to retrieve a unique identifier of the chosen URI scheme (e.g. translating from a urn:isbn to a info:doi), if more than one identifier of the same URI scheme is found the API will complain that it is not able to translate properly. The canonical flag makes sure that in such a case the API is able to translate to the desired canonical URI of that particular scheme.

A work can have at most one canonical URI of each URI scheme (e.g. one canonical URL, one canonical ISBN, one canonical DOI, etc.).

### API routes
The following methods are allowed:

Expand Down

0 comments on commit f58377a

Please sign in to comment.